TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pramod Thakur
274
6.8k
2.3m
Bind checkbox while edit the product angularJS
Aug 16 2015 8:45 PM
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.
<tr ng-repeat="pr in ProdList">
<td><input type="checkbox" id="{{pr.Id}}" value="{{pr.Id}}" name="chkProd" /></td>
<td>{{pr.Name}}</td>
</tr>
<script>
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;
}
</script>
Please help me
Reply
Answers (
1
)
Upload File On Server
Validate a booking form with more than one user record