I am new to angularJs and facing some issue while i want to bind checkbox list with auto-selected property when page is get render.
var app = angular.module("myApp", []);
app.controller('catContlr', function ($scope, $http) {
var results = [];
$http.get('Home/GetSelectedValue')
.success(function (response) {
$scope.item = response;
});
angular.forEach($scope.item.ProdList, function (c) {
if (c.Active) {
results.push(c);
}
});
return results;
}
Please help me

Sumit JoshiPosted Aug 17, 2015, 12:37 AM