Closed harshes53 closed 7 years ago
Basically, what withServerTransition
API does is removes all the CSS from the page once the client/browser finishes bootstrapping the app. If you notice you will find the style
elements with ng-transition="<appId>"
in the server-side rendered html.
Here's a couple relevant source files:
https://github.com/angular/angular/blob/master/packages/platform-browser/src/browser/server-transition.ts https://github.com/angular/angular/blob/master/packages/platform-browser/src/browser.ts
It looks like you could register other 'transitions' if you really needed. The only thing I could think of is maybe some kind of timing instrumentation, but you could just as well do that somewhere else.
@justindujardin
Also, how can I pass
appId
insidewithServerTransition
api ??Thanks for putting a demo app!