问题
I'm trying to get nested directives from a parent directive with @ContentChildren
, but not being populated, occurs when parent directive is placed over a component, component template has child directives.
example 1 (@ContentChildren not populated):
https://plnkr.co/edit/Zdxp017V3zwNYTOR11dR?p=preview
example 2, works fine:
https://plnkr.co/edit/ryIomfokiO40Sw8X6Axd?p=preview
there any way to make it work example 1? or wait for "some-component" content?
thanks in advance
来源:https://stackoverflow.com/questions/39924148/angular-2-contentchildren-not-populated-directive-in-component