Values emitted from the “changes” of QueryList are of type “any”
See original GitHub issue🚀 feature request
Relevant Package
This feature request is for @angular/core
.
Description
QueryList<T>
emits changes as Observable<any>
instead of Observable<QueryList<T>>
.
Describe the solution you’d like
public readonly changes: Observable<QueryList<T>> = new EventEmitter();
Describe alternatives you’ve considered
Manual casting.
Breaking change
Kinda?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
QueryList changes subscribe does not work - Stack Overflow
So you just don't have a chance to subscribe to its changes before ... Does this SAE conversion map work for any tools...
Read more >QueryList - Angular
first: T, Read-Only. last: T, Read-Only. changes: Observable<any>, Read-Only. Returns Observable of QueryList notifying the subscriber of changes.
Read more >QueryList changes event not triggered by changes in children.
QueryList changes event not triggered by changes in children. ... childrenNoTrackBy.changes.subscribe((changes: any) => { // never triggered }.
Read more >Angular - Understanding How To Use QueryList Properly.
Any time a child element is added, removed, or moved, the query list will be updated, and the changes observable in the query-list...
Read more >Understanding ViewChildren, ContentChildren, and QueryList ...
Any time a child element is added, removed, or moved, the query list will be updated, and the changes observable of the query...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And this is a duplicate of the existing issue #30296 Closing as a duplicate of #30296
There is already a PR for this: #30375