observeOnScope
Last updated
Was this helpful?
Last updated
Was this helpful?
Creates a factory which allows the user to observe a property on a given scope to check for old and new values.
scope
(Scope): The scope to apply the watch function.
watchExpression
: Expression that is evaluated on each $digest
cycle. A change in the return value triggers a call to the listener.
string
: Evaluated as expression
function(scope)
: called with current scope as a parameter.
[objectEquality]
: (Function): Compare object for equality rather than for reference.
(Rx): The root of RxJS