Angular Is Running In The Development Mode. Call Enableprodmode() To Enable The Production Mode.
👤 By Angular2 | 📆
While running your angular 2 scripts, you noticed a warning message on your console that says:
Angular is running in the development mode. Call enableProdMode() to enable the production mode
Where do you put enableProdMode()? Usually you would put this code in your main.ts file just before calling bootstrap
import {enableProdMode,exampleComponent} from '@angular/core'; // ADD enableProdMode(); BEFORE BOOTSTRAP enableProdMode(); platformBrowserDynamic() .bootstrapModule( AppModule);
After you add this code, you will not see the message anymore.
Hope that helps