From 19e65382f77911a292e7c3566340a61080bdcafd Mon Sep 17 00:00:00 2001 From: Jake Garelick Date: Fri, 20 May 2016 10:01:39 -0700 Subject: [PATCH] fix(core): accurate dev mode message for dart (#8403) --- modules/@angular/core/src/application_ref.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/@angular/core/src/application_ref.ts b/modules/@angular/core/src/application_ref.ts index c23ed73f21..5ada6bcaed 100644 --- a/modules/@angular/core/src/application_ref.ts +++ b/modules/@angular/core/src/application_ref.ts @@ -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; });