填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

enableProdMode

禁用 Angular 的開發模式,該模式將關閉框架中的斷言和其他檢查。

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

檢視"說明"...

      
      enableProdMode(): void
    
引數

沒有引數。

返回值

void

說明

一個重要的斷言,它禁用了對變更檢測不會導致對任何繫結的(也稱為單向資料流)額外更改的驗證。

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