I am having an array with objects like [{...}, {...}] which I am outputting with ng-repeat. Then I have a delete button with a function to delete it.
Is there a simple way to delete it in AngularJS, perhaps with $index? Or I need to specify an ID on every object as an property?
If you don't apply a filter to reorder or filter your array, you can do this:
And the delete function:
Another way to do it without filter problems: (ONLY IE9+)
And the delete function:
http://jsfiddle.net/oymo9g2f/2/