StefanM StefanM - 1 year ago 92
AngularJS Question

Setting up Angular for production

I have been trying to follow the suggestions for running an angular app in production. However I have been struggling to disable the comment and css class directives:


When I try to add these commands to the config block I receive the error:

$compileProvider.commentDirectivesEnabled is not a function

The codepen below demonstrates my issue, if you comment out the two lines then the code runs without any problem:

Answer Source

These two methods don't exist in the 1.5.8 version of angular that you're using.

They exist in the 1.6.0-rc.0 version though.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download