angularjs - Angular performance with tabs and tables -


i build new single page web application think main view quite complex , tring decide whether use angular.js. concern whether there data-binding causing performance of ui become sluggish.

the app have view consisting of 2 panels. 1 have 8 tabs each containing table 3 cols, 40 rows , 1 col in each row having list of numbers (upto 4 numbers) each number clickable (clicking number causes happen in other pane). considering using ng-repeat directive dynamically create tabs , tables , list of numbers data provided backend content different different users. think mean 8 * (2 + 4) * 40 (1920) items having watches added $watch list. think means lot of things checked each time round $digest loop although these items never change once have been created first time.

the 2nd pane have other tabs , items although not many in first pane on there on 2000 items involved data-binding if use angularjs , ng-repeat.

is many items 1 view when using angularjs i.e. ui performance become sluggish number of items?

are there alternative ways of dynamically creating tabs , tables using angularjs don't use ng-repeat in order keep number of data-binding items down?

some optimizations can suggest of

  • look @ bindonce directive. not create watch once data bounded. should fix of issues.
  • use directives ng-if these destroy\create dom based on conditions. if tab not in focus point having data bounded it. binding in time. , maybe destroy page dom once focus on tab lost (with ng-if) only.

also test app dummy data, verify how real performance , whether makes sense try second option have mentioned.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -