How to enable production mode?

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 which are pointed out here.

In the console I can see ....Call enableProdMode() to enable the production mode. However, I’m not sure instance of which type should I call that method on.

Can somebody answer this question?

19 Answers
19

Leave a Comment