Angular Directive For Deferring Element Compilation

Author: nikolay-lesko
Views Total: no views
Official Page: Go to website
Publish Date: December 26, 2015
License: MIT


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.


Angular Directive For Deferring Element Compilation

You Might Be Interested In:


Add Comment