W3cubDocs

/Angular

isDevMode

function

Returns whether Angular is in development mode.

See more...

isDevMode(): boolean

Parameters

There are no parameters.

Returns

boolean

See also

Description

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.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/isDevMode