Angular Directive For Deferring Element Compilation

Author: nikolay-lesko
Publish Date:
Official Page: Go to website
Views Total: 987
License: MIT

Description:

Angular directive for deferring element compilation. This will improve startup in some cases as there won’t be initial expenses on compiling invisible elements.

This directive will immediately compiles visible elements(based on value of ng-deferred-show), but defers compilation of invisible elements for specified time (compile-timeout attribute). All elements with the same timeout will be compiled in batch. After element has been compiled, its visibility will be changed by adding/removing class ng-hide.

Preview:

Angular Directive For Deferring Element Compilation

Tags:

Leave a Reply