Guide: Running in Production

Improve this DocRunning an AngularJS App in Production

There are a few things you might consider when running your AngularJS application in production.

Disabling Debug Data

By default AngularJS attaches information about binding and scopes to DOM nodes, and adds CSS classes to data-bound elements:

  • As a result of ngBind, ngBindHtml or {{...}} interpolations, binding data and CSS class ng-binding are attached to the corresponding element.

  • Where the compiler has created a new scope, the scope and either ng-scope or ng-isolated-scope<