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 {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 {Injector, Injectable} from './di';
|
||||||
import {PLATFORM_INITIALIZER, APP_INITIALIZER} from './application_tokens';
|
import {PLATFORM_INITIALIZER, APP_INITIALIZER} from './application_tokens';
|
||||||
import {PromiseWrapper, ObservableWrapper} from '../src/facade/async';
|
import {PromiseWrapper, ObservableWrapper} from '../src/facade/async';
|
||||||
@ -361,8 +361,9 @@ export class ApplicationRef_ extends ApplicationRef {
|
|||||||
this._loadComponent(compRef);
|
this._loadComponent(compRef);
|
||||||
let c: Console = this._injector.get(Console);
|
let c: Console = this._injector.get(Console);
|
||||||
if (assertionsEnabled()) {
|
if (assertionsEnabled()) {
|
||||||
c.log(
|
let prodDescription = IS_DART ? "Production mode is disabled in Dart." :
|
||||||
"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
|
"Call enableProdMode() to enable the production mode.";
|
||||||
|
c.log(`Angular 2 is running in the development mode. ${prodDescription}`);
|
||||||
}
|
}
|
||||||
return compRef;
|
return compRef;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user