Solved

angularjs remove all table data

Posted on 2015-01-21
3
243 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

786 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