This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

isDevMode

Returns whether Angular is in development mode. After called once, the value is locked and won't change any more.

See more...

isDevMode(): boolean
      
      isDevMode(): boolean
    

Parameters

There are no parameters.

Returns

boolean

Description

By default, this is true, unless a user calls enableProdMode before calling this.