onCheck

(const)

Notify a directive when it has been checked.

This method is called right after the directive's bindings have been checked, and before any of its children's bindings have been checked.

It is invoked every time even when none of the directive's bindings has changed.

.l-main-section h2 Example: pre(class="prettyprint linenums") code. @Directive({ selector: '[class-set]', lifecycle: [onCheck] }) class ClassSet { onCheck() { } }