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:
Andrew Kushnir
2023-04-05 18:37:49 -07:00
parent 3d69abb224
commit 755b52faf8
+1 -2
View File
@@ -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;
}