Edd
Edd

Reputation: 1988

How to ignore ng-non-bindable for a child element (angularjs)

So if I have something like this:

<section ng-non-bindable>
    <!-- Lots of elements -->
    <p my-amazing-directive></p>
</section>

How can I make sure that my-amazing-directive gets compiled?

Upvotes: 0

Views: 282

Answers (1)

georgeawg
georgeawg

Reputation: 48948

There is not a simple way to accomplish what you want.

Under the hood, the ng-non-bindable directive uses:

`terminal: true`

From the Docs:

terminal

If set to true then the current priority will be the last set of directives which will execute (any directives at the current priority will still execute as the order of execution on same priority is undefined). Note that expressions and other directives used in the directive's template will also be excluded from execution.

AngularJS Comprehensive Directive API Reference - terminal

For more information, see

Upvotes: 1

Related Questions