$compileProvider.debugInfoEnabled()

debugInfoEnabled([enabled]);

Call this method to enable/disable various debug runtime information in the compiler such as adding binding information and a reference to the current scope on to DOM elements. If enabled, the compiler will add the following to DOM elements that have been bound to the scope

  • ng-binding CSS class
  • $binding data property containing an array of the binding expressions

You may want to disable this in production for a significant performance boost. See Disabling Debug Data for more.

The default value is true.

Parameters

Param Type Details
enabled
(optional)
boolean

update the debugInfoEnabled state if provided, otherwise just return the current debugInfoEnabled state

Returns

*

current value if used as getter or itself (chaining) if used as setter

doc_AngularJS
2016-03-29 16:10:17
Comments
Leave a Comment

Please login to continue.