This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Provide a way to turn off debugging info in production #8423
Closed
Description
angular sets ng-binding class and other classes as well as adds $binding
object to jqLite/jQuery data storage. This info is not needed in production and is only used by tools like batarang and protractor but are causing performance issues for apps with lots of bindings.
These tools can already intercept the angular bootstrap and change configuration of the app if needed, so they could turn on the debugging info on demand.
I'm thinking that to control the behavior we could use $compileProvider
and expose a setter like debugMode()
that tools could use.
The debugging info should be off by default in production.
Open questions:
- should we disable this in non-minified angular by default? are the css classes useful for development?