docs: Fix platform-detection example for Universal (#21796)
PR Close #21796
This commit is contained in:
parent
c83c4168ca
commit
eeab433c8d
|
@ -53,7 +53,7 @@ export class AppModule {
|
|||
@Inject(PLATFORM_ID) private platformId: Object,
|
||||
@Inject(APP_ID) private appId: string) {
|
||||
const platform = isPlatformBrowser(platformId) ?
|
||||
'on the server' : 'in the browser';
|
||||
'in the browser' : 'on the server';
|
||||
console.log(`Running ${platform} with appId=${appId}`);
|
||||
}
|
||||
// #enddocregion platform-detection
|
||||
|
|
Loading…
Reference in New Issue