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
Go to src/enviroments/enviroments.ts and enable the production mode
src/enviroments/enviroments.ts
export const environment = { production: true };
for Angular 2