We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15ca23 commit 74be3d3Copy full SHA for 74be3d3
1 file changed
modules/angular2/src/core/application_ref.ts
@@ -456,11 +456,10 @@ export class ApplicationRef_ extends ApplicationRef {
456
});
457
return completer.promise.then(_ => {
458
let c = this._injector.get(Console);
459
- let modeDescription =
460
- assertionsEnabled() ?
461
- "in the development mode. Call enableProdMode() to enable the production mode." :
462
- "in the production mode. Call enableDevMode() to enable the development mode.";
463
- c.log(`Angular 2 is running ${modeDescription}`);
+ if (assertionsEnabled()) {
+ c.log(
+ "Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
+ }
464
return _;
465
466
}
0 commit comments