Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 736
  • Last Modified:

angularjs remove all table data

is it possible to remove on click all angular ng-bind data
on load. I know how to remove row by row but how can you remove all rows at once. clicking a button
0
Seven price
Asked:
Seven price
  • 2
1 Solution
 
Rainer JeschorCommented:
Hi,
I think I did not fully understand your question, but normally you would reset your scope data like in this sample (where the data is an array):
http://jsfiddle.net/EE_RainerJ/6nu0oy4s/

Does this help?
If not, could you perhaps explain and share a little bit more info about your controller/model/data?
Thanks and HTH
Rainer
0
 
Seven priceFull StackAuthor Commented:
ok how can i use this to remove the data onload.
0
 
Seven priceFull StackAuthor Commented:
gret thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now