Created
June 7, 2015 03:05
-
-
Save ckng/a08805c5cbf81e82c569 to your computer and use it in GitHub Desktop.
AngularJS: Disable Debug Info for production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ref: https://docs.angularjs.org/guide/production#! | |
app.config(['$compileProvider', function ($compileProvider) { | |
// disable debug info | |
$compileProvider.debugInfoEnabled(false); | |
}]); | |
// Enabled back in browser console | |
angular.reloadWithDebugInfo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment