i have the following components: Base component A. Components B and C are inherited from A.
@Component({
selector: 'A',
template: `<div>A</div>`
})
export class A {}
@Component({
selector: 'B',
template: `<div>B</div>`
})
export class B extends A {}
@Component({
selector: 'C',
template: `<div>C</div>`
})
export class C extends A {}
And there is a component class which contains all of the A, B and C components:
<A></A>
<B></B>
<C></C>
My question is how can i get the querylist of all A, B and C?
I've tried
@ViewChildren(A) components: QueryList<A>;
but it gives me only A
component.
Here's also plunkr that demonstrates the issue.
Thank you in advance.