Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

enableProdMode

Disable Angular's development mode, which turns off assertions and other checks within the framework.

See more...

      
      enableProdMode(): void
    
Parameters

There are no parameters.

Returns

void

See also

Description

One important assertion this disables verifies that a change detection pass 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.