Thursday, November 2, 2017

Angular is running in the development mode. Call enableProdMode() to enable the production mode.

Are you sick of seeing this in the console? Me too! In your outermost main.ts file outside of even your outermost module, use this to make this message go away:

enableProdMode();

 
 

In order for this line of code to work you must have this line of code somewhere above it in main.ts:

import { enableProdMode } from '@angular/core';

No comments:

Post a Comment