Closed st-clair-clarke closed 3 years ago
Not quite sure what's going on here, but it doesn't look like it's actually using any of this library's code. The changes
observable doesn't fire during ngAfterViewInit, so maybe you just need to add a startsWith
operator.
this.queryList.changes.pipe(startsWith(this.queryList)).subscribe((list) => {
list.forEach((instance) => console.log('target is: ', instance.target))
})
Thanks
I have this peculiar issue that involves angular Material Expansion panel.
path.component.html
path.component.ts
class....
end path.component.ts
The issue is that by placing the inside the it becomes lazy - it only is instantiated when the expansion panel is opened! How can I access the instantiated using ViewChildren and ng-effects - afterall, ngAfterViewInit has already run when the panel is opened (instantiated)