In the example below we can use @ViewChildren(Base) to get instances of Foo and Bar . abstract class Base {} @Component({ selector: 'foo', providers: [{ provide ...
確定! 回上一頁