A set of directives to postpone your angular application from rendering elements outside the viewport.
npm install ng-lazy-renderA set of directives to help using lazy-rendering techniques easily.
Attributes:
- lazyModule: templateUrl of a placeholder to render while the module is not visible or while being rendered.
- lazyIf: use an angular expression here to set a condition on whether you want this directive to take action or be ignored.
Example:
``html`
Attributes:
- lazyRepeater: number of initially shown items. This number is doubled every time the user sees the end of the list.
- lazyTemplate: template (or templateUrl) to be shown at the end of the list.
- lazyIf: use an angular expression here to set a condition on whether you want this directive to take action or be ignored.
Example:
`html``
lazy-repeater="10"
lazy-placeholder="templateUrl"
lazy-if="ctrl.acceleratePageLoad">
{{obj.data}}