Skip to content

bahmutov/angular_react_directive_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is just a little sandbox for me to play with React + Angular together.

To run the demo:

cd angular_react_directive_example
npm install
npm run dev
Browse to http://localhost:8090

Performance improvement tags

  • step-0 - the original example
  • step-1 - set random timeout to 0 for every cell

Seems like the digest cycle runs many times (after each $timeout call). Confirmed using ng-monitor-digest-cycle-simple.js - while loading the table, the digest runs 1493 times!

  • step-2 - removed full digest run after each $timeout in each cell by using

    $timeout(..., ms, false);

This drops the time from 12 seconds to 0.5 seconds.

Packages

No packages published

Languages

  • JavaScript 82.4%
  • CSS 12.8%
  • HTML 4.8%