How to delete an item or object from an array using ng-click?

Posted by Rohit Kumar | Updated on

If you want to delete an item or object from an array using ng-click? To remove item you need to remove it from array and can pass bday item to your remove function in markup. Then in controller look up the index of item and remove from array

Then in controller:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers