-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md-tab error when using async pipe #574
Comments
This behaviour happens even if the array used in the ngFor directive isn't directly using the async pipe, but instead is being passed from another component that used the async pipe. For, for eg, we have SmartComponent described as above: ngOnInit() { getIncidentReports() { and the template: And it uses DumbComponent that actually has the tabs component, but accepts the array for the tabs as an input property: @component({ .... DumbComponent will error out with the same errror |
@robertmesserle @jelbourn This doesn't seem to have fixed the issue, I'm still getting the error using:
|
@RicardoVaranda Can you provide a plunker or some way for us to see your code failing? We include async tabs in our demo app, which is still working properly, so we'll need to see your app to determine what is different. |
It's been fixed, Update just required @angular/forms which was not met and caused the upgrade to fail and I missed it. Thanks :) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug:
What is the expected behavior?
No console error
What is the current behavior?
zone.js:260 Uncaught TypeError: Cannot read property 'elementRef' of undefined
What are the steps to reproduce?
`
ngOnInit() {
this.weeks = this.inicidentReportService.getIncidentReports();
}
getIncidentReports() {
return this.http.get(
WebAPI.url() + '/api/incidentReport')
.map(request => request.json());
}
`
md-tab *ngFor="let w of weeks | async"
The text was updated successfully, but these errors were encountered: