hi Developer,
(Angular 1.x.x)
$scope.moveAll = function(from, to) {
* angular.forEach(from, function(item) { to.push(item);
});*
from.length = 0;
};
(Angular 2.0)
moveAll(from,to){
*//foreach ??????*
from.length = 0;
}
How to write foreach (as above code) in angular 2?
I am waiting for your response.
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.