[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/enableProdMode [Back]  [Original]

enableProdMode Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

enableProdMode

function
stable

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

ng build

On this page

    arrow_upward_alt Back to the top

    API

    function enableProdMode(): void;
    @returnsvoid

    Description

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

    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.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page