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

enableProdMode

npm Package @angular/core
Module import { enableProdMode } from '@angular/core';
Source core/src/application_ref.ts
      
      function enableProdMode(): void;
    

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).