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 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts