Simple to-do list, but with a delete button on list page for each item:
Relevant template HTML:
10条回答 时光说笑 (楼主) 2020-11-27 09:51 Angular have a built-in function called arrayRemove, in your case the method can simply be: arrayRemove($scope.persons, person) 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Angular have a built-in function called arrayRemove, in your case the method can simply be:
arrayRemove
arrayRemove($scope.persons, person)