rangle / angular-ssr

Angular 4+ server-side rendering solution compatible with @angular/material, jQuery, and other libraries that touch the DOM (as well as providing a rich feature set!)
BSD 2-Clause "Simplified" License
279 stars 38 forks source link

Unable to load lazy load module #40

Closed vlodkow closed 7 years ago

vlodkow commented 7 years ago

When I try to load url from lazy load module server return right response, but when client code loaded, after few seconds content disappear (no errors in console).

When I remove lazy loading or reload page without cache all working fine.

Tested on browsers: Safari (v 10.1.1) and Chrome (v 58.0.3029.81)

vlodkow commented 7 years ago

When I removed preboot from AppModule constructor all working right.. preboot remove incorrect tag when call prebootClient().complete();

clbond commented 7 years ago

If it's getting the wrong tag ID you can specify it yourself using builder.preboot({appRoot: 'my-tag-id'})