Based on this host attribute post, I've created this Plunker.
After reading the github issue, my understanding is that we should be able to use [attr.someDirective]
to conditionally apply a directive attribute to an element.
It does appear to add/remove the directive attribute as one would expect. However, the Plunker demonstrates that - when using attr
- even when the directive arribute is added to the element, the directive never gets applied.
Am I missing something here, or is this not the way the attr
host attribute works?