mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
8488279659
An earlier commit that introduced tracking of selectorless directives to the template binder made it so `getDirectivesOfNode` returns _all_ of the matched directives while a new method called `getOwnedDirectives` would return only the ones brought in by the specific node. In hindsight, this is likely to cause bugs in the future, because it's unclear whether to reach for `getDirectivesOfNode` or `getOwnedDirectives`. These changes remove `getOwnedDirectives` and make it so in selectorless `getDirectivesOfNode` accepts the directive AST node itself. Another goal of this refactor is that the TCB shouldn't have to check the `selectorlessEnabled` config option. PR Close #61018