Link to home
Start Free TrialLog in
Avatar of Sandy V
Sandy V

asked on

loop through an AngularJS object & remove data

I have an Ienumerable object that i am storing in AngularJS $scope(say Product), i need to loop through the $scope.Product object & remove some data if it meets a particular criteria. How do i do that( let's say if $scope.Product.ID = 5 then remove it from Ienumerable object)
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

Probably that you are looking for let propKey in $scope.Product and delete function.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial