Solved

angularjs remove all table data

Posted on 2015-01-21
3
399 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:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Seven price
ID: 40562947
ok how can i use this to remove the data onload.
0
 
LVL 9

Author Closing Comment

by:Seven price
ID: 40563259
gret thanks
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
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…

717 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