[AngularJS] Re: calling function in ng-repeat to form dynamic data table

2015-05-28 Thread Sander Elias
Hi Jitender, Don't use an ng-init, use a function on your controller to update the array inside the controller. Then put an onchange on your input, that fires off this function. That's all. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS

[AngularJS] Re: calling function in ng-repeat to form dynamic data table

2015-05-28 Thread Jitender Saini
Hi Sander, Thank you very much for your prompt response, It will be great if you can post a small example for the same. I'm new to Angular, I agreed that ng-repeat every time call the function, But my concern is if I prebuild the table and iterate with ngrepeat then how data will change in tabl

[AngularJS] Re: calling function in ng-repeat to form dynamic data table

2015-05-28 Thread Sander Elias
Hi Jitender, This will never work. You are rebuilding the data you are traversing. So, angular has to start over iterating when the data changed, which is on every row of your table. It has to throw away what it has build, and start again. That is an endless loop. Prebuild the table in your co