mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: Fix platform-detection example for Universal (#21796)
PR Close #21796
This commit is contained in:
parent
c83c4168ca
commit
eeab433c8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue