$compile.directive.Attributes.$observe()

$observe(key, fn);

Observes an interpolated attribute.

The observer function will be invoked once during the next $digest following compilation. The observer is then invoked whenever the interpolated value changes.

Parameters

Param Type Details
key string

Normalized key. (ie ngAttribute) .

fn function(interpolatedValue)

Function that will be called whenever the interpolated value of the attribute changes. See the Interpolation guide for more info.

Returns

function()

Returns a deregistration function for this observer.

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

Please login to continue.