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 f2e923edd8
commit e0022ae9cd

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