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
LVL 9
Seven priceFull StackAsked:
Who is Participating?
 
Rainer JeschorConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.