I was reading related questions and I found this one, but my question is how can I switch from development to production mode. There are some differences between the modes w
This worked for me, using the latest release of Angular 2 (2.0.0-rc.1):
main.ts
import {enableProdMode} from '@angular/core'; enableProdMode(); bootstrap(....);
Here is the function reference from their docs: https://angular.io/api/core/enableProdMode