It's not another question about resolve I think. I would like to have simple, complex method to wait for Ajax data before rendering component in Angular 2. I will have about fifty routes, so creating resolve for each route would be pain.
Can someone share his way to wait for data before rendering view?
isReady = trueonce your async call is complete and in the template wrap everything with<div *ngIf="isReady">...</div>. Or are you looking for something more involved?dataparam attached to the route, to decide which data it should load.