docs: Fix platform-detection example for Universal (#21796)

PR Close #21796
This commit is contained in:
Enzo Volkmann 2018-01-26 06:51:09 +01:00 committed by Jason Aden
parent c83c4168ca
commit eeab433c8d
1 changed files with 1 additions and 1 deletions

View File

@ -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