Saturday, 21 November 2015

Angularjs and lazy loading

Today I noticed that all DOM model is loaded, even if it is not shown on page ( is ngHiden) and I don't need it. I searched a little in google and I found that there is a other attribute which I should use for this block code - "ngIf".

If it is false, it doesn't include element and children into a DOM model and it wait for change state to true.

No comments:

Post a Comment