Skip to content

Commit

Permalink
fixup! fix(core): update isDevMode to rely on ngDevMode
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 committed Sep 20, 2022
1 parent 94e273e commit 489dca2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/util/is_dev_mode.ts
Expand Up @@ -11,7 +11,9 @@ import {global} from './global';
/**
* Returns whether Angular is in development mode.
*
* By default, this is true, unless a user calls `enableProdMode` before calling this.
* By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the
* application is built using the Angular CLI with the `optimization` option.
* @see {@link guicli/build ng build}
*
* @publicApi
*/
Expand All @@ -27,6 +29,10 @@ export function isDevMode(): boolean {
* does not result in additional changes to any bindings (also known as
* unidirectional data flow).
*
* Using this method is discouraged as the Angular CLI will set production mode when using the
* `optimization` option.
* @see {@link guicli/build ng build}
*
* @publicApi
*/
export function enableProdMode(): void {
Expand Down

0 comments on commit 489dca2

Please sign in to comment.