• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 825
  • 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
Seven price
Seven price
  • 2
1 Solution
Rainer JeschorCommented:
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):

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

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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