Reputation: 302
Could anyone help me to solve an issue when using an angular material table with Angular4 and Routing module.
I've created a punkler that illustrate my issue. The code was almoste copied form the original tutorial from material.angular.io.
As you can see, I expect to have a table displayed juste below the Hello Angular! v4.3.0 title.
Regards,
Upvotes: 0
Views: 200
Reputation: 26
You can do this workaround to fix your issue waiting for bug to be fixed by angular material team: https://github.com/angular/material2/issues/5593. Preferred workaround: force detectionChange in your component.
ngOnInit() {
//data initialization
this.changeDetector.detectChanges();
}
Upvotes: 1