Angularjs

Remove Item From Array With Angular Js

Posted by Weston Ganger on August 20, 2014

Turns out splice works on $index:


<div ng-repeat="post in posts">
  <button type="button" ng-click="posts.splice($index,1)">
</div>

Posted in Angular and Tagged with angularjs array splice 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts