$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. |
Please login to continue.