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(PLATFORM_ID) private platformId: Object,
|
||||||
@Inject(APP_ID) private appId: string) {
|
@Inject(APP_ID) private appId: string) {
|
||||||
const platform = isPlatformBrowser(platformId) ?
|
const platform = isPlatformBrowser(platformId) ?
|
||||||
'on the server' : 'in the browser';
|
'in the browser' : 'on the server';
|
||||||
console.log(`Running ${platform} with appId=${appId}`);
|
console.log(`Running ${platform} with appId=${appId}`);
|
||||||
}
|
}
|
||||||
// #enddocregion platform-detection
|
// #enddocregion platform-detection
|
||||||
|
|
Loading…
Reference in New Issue