Aspnetcore-angular-universal: appId // make sure this matches with your Server NgModule

Created on 30 Apr 2018  路  2Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Don't quite get this.
https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/82afbb5781165081e6167e4679a89ed1caeba8b6/ClientApp/app/app.module.ts#L52

What should it match?
The selector of the Server NgModule bootstrapped component?

question

Most helpful comment

All 2 comments

This is just used to match up the IDs created during the server-render with the client-rendered version so that styles get reused/etc, otherwise you'd get a flicker from it.

Hope that helps!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

consigliory picture consigliory  路  18Comments

Gaulomatic picture Gaulomatic  路  26Comments

pjmagee picture pjmagee  路  17Comments

MarkPieszak picture MarkPieszak  路  41Comments

ketrex2 picture ketrex2  路  18Comments