fix(core): accurate dev mode message for dart (#8403)
This commit is contained in:
parent
5a9eda73b4
commit
19e65382f7
|
@ -1,5 +1,5 @@
|
|||
import {NgZone, NgZoneError} from './zone/ng_zone';
|
||||
import {Type, isBlank, isPresent, assertionsEnabled, lockMode, isPromise} from '../src/facade/lang';
|
||||
import {Type, isBlank, isPresent, assertionsEnabled, lockMode, isPromise, IS_DART} from '../src/facade/lang';
|
||||
import {Injector, Injectable} from './di';
|
||||
import {PLATFORM_INITIALIZER, APP_INITIALIZER} from './application_tokens';
|
||||
import {PromiseWrapper, ObservableWrapper} from '../src/facade/async';
|
||||
|
@ -361,8 +361,9 @@ export class ApplicationRef_ extends ApplicationRef {
|
|||
this._loadComponent(compRef);
|
||||
let c: Console = this._injector.get(Console);
|
||||
if (assertionsEnabled()) {
|
||||
c.log(
|
||||
"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
|
||||
let prodDescription = IS_DART ? "Production mode is disabled in Dart." :
|
||||
"Call enableProdMode() to enable the production mode.";
|
||||
c.log(`Angular 2 is running in the development mode. ${prodDescription}`);
|
||||
}
|
||||
return compRef;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue