-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Allow read of ChangeDetectorRef in queries #34347
Copy link
Copy link
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriesdesign complexity: low-hangingfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Milestone
Description
🐞 bug report
Affected Package
The issue is caused by package @angular/coreIs this a regression?
I don't think so, tested on Angular 7 and 8Description
Through `read` option of `ViewChild` we are able to retrieve services from Injector, for example if we add some service to our component's providers, we can read it. We can also read `ElementRef`, for example. However, we cannot retrieve `ChangeDetecotrRef`. We are getting undefined.🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-read-cdr🌍 Your Environment
Angular Version:
8Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriesdesign complexity: low-hangingfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration