Hello Sir,
I am trying to retriew data from couchDb.
Now i want to use jquery.couch.js to retriew data and then bind them with
angular model.
I got data in response and I am assigning it to $scope.model name but i am
not getting anything in html.
myapp.controller("myController",function($scope){
$.couch.db("test").view("fview/getDetails",{
success: function(response) {
console.log(response);
$scope.modelname = response.rows;
},
error: function(status) {
console.log(status);
},
reduce: false
});
});
});
my console also showing the response.
{"total_rows":1,"offset":0,"rows":[{"id":"0ce945c50e2036ff2bcd124f8a000009","key":1,"value":{"sname":"Nikita","sbranch":"MIT","ssemester":4,"spercentage":62}}]}
In my html i am using ng-repeat for modelname
<tr ng-repeat="x in modelname">
<td>{{x.key}}</td>
<td>{{x.value.sname}}</td>
<td>{{x.value.sbranch}}</td>
<td>{{x.value.ssemester}}</td>
<td>{{x.value.spercentage}}</td>
</tr>
But I am getting nothing in table row.also firebug not showing any errors.
Please help me with this.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.