Hi Domorodec, Do I get it correctly you want all id's inside a certain template? You should add an id directive: Something like:
import { Directive, Input } from '@angular/core'; @Directive({ selector: '[id]' }) export class IdDirective { @Input() id: string; } When you have that, you can query it like this in your component: @VewChildren(IdDirective) ids: QueryList<IdDirective>; ids$ = this.seAfterContentInit$.pipe( map(() => this.ids.map(idD => idD.id)), ); You can see it in action <https://stackblitz.com/github/SanderElias/Samples?file=src%2Fapp%2Fdirectives%2Fdirectives-sample%2Fdirectives-sample.component.ts>, (You might want to click 'Directive sample' in the side menu) Or check out the code in my GitHub repo <https://github.com/SanderElias/Samples/blob/master/src/app/directives/directives-sample/directives-sample.component.ts> Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.