I want to remove jquery from my app.. But I want substitute for $.each in angularjs... How can I loop around dom elements ?? Here I have added my code.. I want to convert i
you can use the loop statement angular.forEach()
var values = {name: 'misko', gender: 'male'};
angular.forEach(values, function(value, key){
console.log(key + ': ' + value);
});
angular.forEach(angular.element("li a"), function(value, key){
var a = angular.element(value);
a.addClass('ss');
});
You can convert it into object and then, you can use it..