Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat(ngDefer): new ngDefer directive to defer compilation until condition is met #16552

Closed
wants to merge 1 commit into from
Closed

Commits on May 4, 2018

  1. feat(ngDefer): new ngDefer directive to defer compilation until condi…

    …tion is met
    
    ngNonBindable can halt Angular compilation altogether at a certain point in the
    tree. This is a useful optimisation feature.
    But even more useful is to delay compilation until a certain condition is met
    so that parts of the tree can be compiled only when needed. E.g. content of
    pre-loaded popups or complex navigation dropdowns can be compiled only when
    they become visible.
    This new ngDefer directive halts comilation similar to ngNonBindable, but
    registers a watcher on the condition provided to the ngDefer attribute and
    will continue compilation once the condition returns a trueish value.
    wyrfel committed May 4, 2018
    Configuration menu
    Copy the full SHA
    228d498 View commit details
    Browse the repository at this point in the history