i am developing a demo with your reference available in git.
I am trying to retriew datafrom couchDb.
For that i am using $http of angular js and it works.
Now i want to use jquery.couch.js to just retriew data.
I got data in response and I am assigning it to $scope.model name
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.