Skip to content

Instantly share code, notes, and snippets.

@ckng
Created June 7, 2015 03:05
Show Gist options
  • Save ckng/a08805c5cbf81e82c569 to your computer and use it in GitHub Desktop.
Save ckng/a08805c5cbf81e82c569 to your computer and use it in GitHub Desktop.
AngularJS: Disable Debug Info for production
// 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