Angular Directive For Deferring Element Compilation

Author: nikolay-lesko
Official Page: Go to website
Publish Date: December 26, 2015
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


You Might Be Interested In:

Tags:

Add Comment