I'm not able to access template reference variables using ViewChildren when they're placed inside a modal (and hence initially undefined). Even after the modal is inserted into the DOM, the QueryList of elements continues to have zero length.
- I've tried injecting ChangeDetectorRef and then manually detecting changes with detectChanges()
- I've tried using a setter for ViewChildren
Minimal reproducible example here: https://stackblitz.com/edit/angular-whsdr6
For the example above, I expect the console.log to return an object with a results property an array of length five (five paragraph tag elements).