Solved

angularjs remove all table data

Posted on 2015-01-21
3
279 Views
Last Modified: 2015-01-21
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
Comment
Question by:sevensnake77
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 40562887
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
 
LVL 9

Author Comment

by:sevensnake77
ID: 40562947
ok how can i use this to remove the data onload.
0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 40563259
gret thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question