i have included angular service in my project but the problem is it neither gives an error
nor called i don't know where is problem where as the second object is called
here is code for controller
var CreateController = ['$scope','$http', function ($scope, $http) {
$scope.model = {};
$scope.mydata = 'ajs works';
$http.get('/Testing/Index').success(function(data){
$scope.model = data;
});
}];
and here is my view where i manipulate the angular js
<div ng-controller="CreateController">
<table class="ui-sortable-handle">
<tr>
<td>
<input type="hidden" id="qid" value="{{model.Questions.AddQuestionID}}" />
</td>
</tr>
<tr>
<td>
<input type="hidden" id="complevel" value="{{model.Questions.ComplexityLevel}}" />
<input type="hidden" id="servcomplvl" value="{{model.servercomplevel}}" />
</td>
</tr>
<tr>
<td>
<h3>Question: {{model.Questions.Question}}</h3>
</td>
</tr>
<tr ng-repeat="item in model.Options">
<td class="switch radius">
<input id="{{item.Options}}" type="radio" name="selectedvalue" value="{{item.Options}}">
<label for="{{item.Options}}"></label>{{item.Options}}
</td>
</tr>
</table>
{{mydata}}
{{mydata}} this object works where as model object does not work please suggest what to do