147
rated 0 times
[
152]
[
5]
/ answers: 1 / hits: 21443
/ 10 Years ago, wed, march 19, 2014, 12:00:00
What is the alternative for jquery's $.each()
loop in Angular JS.
I have got the following in jquery (in my Angular JS based project):
$($scope.tasks).each(function(index, task){
if (task.isCompleted) {
task.showTask = true;
}
});
and I don't want to use the mix of jquery and angular, because they say it is a bad practice to do so (is it?). Is there any feature that angular provides like $.each()
? Or should I go with the plain javascript?
More From » jquery