How do I delete an item or object from an array using ng-click?
I am trying to write a function that enables me to remove an item when the button is clicked but I think I am getting confused with the function – do I use $digest? HTML & app.js: <ul ng-repeat=”bday in bdays”> <li> <span ng-hide=”editing” ng-click=”editing = true”>{{bday.name}} | {{bday.date}}</span> <form ng-show=”editing” ng-submit=”editing = false”> <label>Name:</label> … Read more