mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(core): drop a reference to enableProdMode() in a console.log (#49723)
New `ng new` apps no longer generate `enableProdMode` calls when an app is created. The prod mode is enabled via CLI flags (and configuration in the `angular.json` if needed). PR Close #49723
This commit is contained in:
@@ -1009,8 +1009,7 @@ export class ApplicationRef {
|
||||
this._loadComponent(compRef);
|
||||
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
||||
const _console = this._injector.get(Console);
|
||||
_console.log(
|
||||
`Angular is running in development mode. Call enableProdMode() to enable production mode.`);
|
||||
_console.log(`Angular is running in development mode.`);
|
||||
}
|
||||
return compRef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user