To delete multiple elements on click of a single buttonJithil John10yAsked Jan 20, 2016, 1:12 AM1.1kLearn iOS ProgrammingHow to delete multiple elements on click of a single button in Angular JS
Suraj Sahoo10y agoPosted Jan 20, 2016, 3:15 AM We can track using ng-model http://plnkr.co/edit/6lNo6R5EPsNGHUU6ufTE?p=preview The above link has the snippet where you can check and play around. 0
Jithil John10y agoPosted Jan 20, 2016, 2:57 AMHow we can track check box value and pass these values?0
Suraj Sahoo10y agoPosted Jan 20, 2016, 2:28 AMFollow the below url.Try this way, if does not work out for you, post your remove function in js I will review.http://stackoverflow.com/questions/22527655/delete-multiple-ng-repeat-elements-on-click-of-a-single-button Logic is add a remove function to the button or anything for ng-click. Then track for each row the check box value, if checked is true, then splice that row from ng-repeat model. Thanks 0
Jithil John10y agoPosted Jan 20, 2016, 2:17 AMI want to delete multiple records based on the value of the checkbox0
Jithil John10y agoPosted Jan 20, 2016, 2:15 AMI want to delete multiple records based on the value of the checkbox0
Jithil John10y agoPosted Jan 20, 2016, 2:13 AM yes, here is my full code IDTitle {{book.Id}} Remove Selected Rows 0Suraj Sahoo10y agoPosted Jan 20, 2016, 2:02 AMDo you have any ng-repeat to be used, for the second ? What exactly you want to remove here?0Jithil John10y agoPosted Jan 20, 2016, 1:49 AM Here is my code ID Title {{book.Id}} {{book.Title}} Remove Selected Rows0Suraj Sahoo10y agoPosted Jan 20, 2016, 1:22 AMHello, You can use, the ng-repeat in Angular directive in order to first track how many elements you want to delete/remove.Then you can use the array.splice method to individually delete/remove the element which will run in loop based on ng-repeat.Please follow the below discussion:http://stackoverflow.com/questions/18251814/angularjs-ngrepeat-element-removal http://team.158ltd.com/2014/08/31/adding-and-removing-list-items-with-angularjs/ Accept if helps.Thanks 0
Suraj Sahoo10y agoPosted Jan 20, 2016, 2:02 AMDo you have any ng-repeat to be used, for the second ? What exactly you want to remove here?0Jithil John10y agoPosted Jan 20, 2016, 1:49 AM Here is my code ID Title {{book.Id}} {{book.Title}} Remove Selected Rows0Suraj Sahoo10y agoPosted Jan 20, 2016, 1:22 AMHello, You can use, the ng-repeat in Angular directive in order to first track how many elements you want to delete/remove.Then you can use the array.splice method to individually delete/remove the element which will run in loop based on ng-repeat.Please follow the below discussion:http://stackoverflow.com/questions/18251814/angularjs-ngrepeat-element-removal http://team.158ltd.com/2014/08/31/adding-and-removing-list-items-with-angularjs/ Accept if helps.Thanks 0
Jithil John10y agoPosted Jan 20, 2016, 1:49 AM Here is my code ID Title {{book.Id}} {{book.Title}} Remove Selected Rows0
Suraj Sahoo10y agoPosted Jan 20, 2016, 1:22 AMHello, You can use, the ng-repeat in Angular directive in order to first track how many elements you want to delete/remove.Then you can use the array.splice method to individually delete/remove the element which will run in loop based on ng-repeat.Please follow the below discussion:http://stackoverflow.com/questions/18251814/angularjs-ngrepeat-element-removal http://team.158ltd.com/2014/08/31/adding-and-removing-list-items-with-angularjs/ Accept if helps.Thanks 0
Suraj SahooPosted Jan 20, 2016, 3:15 AM
Jithil JohnPosted Jan 20, 2016, 2:57 AM
Suraj SahooPosted Jan 20, 2016, 2:28 AM
Jithil JohnPosted Jan 20, 2016, 2:17 AM
Jithil JohnPosted Jan 20, 2016, 2:15 AM
Jithil JohnPosted Jan 20, 2016, 2:13 AM
Suraj SahooPosted Jan 20, 2016, 2:02 AM
Jithil JohnPosted Jan 20, 2016, 1:49 AM
Suraj SahooPosted Jan 20, 2016, 1:22 AM