$rootScope.Scope.$watchGroup()

$watchGroup(watchExpressions, listener); A variant of $watch() where it watches an array of watchExpressions. If any one expression in the collection changes the listener is executed. The items in the watchExpressions array are observed via standard $watch operation and are examined on every call to $digest() to see if any items changes. The listener is called whenever any expression in the watchExpressions array changes. Parameters Param Type Details watchExpressions Array.<string|Func

$rootScope.Scope.$watchCollection()

$watchCollection(obj, listener); Shallow watches the properties of an object and fires whenever any of the properties change (for arrays, this implies watching the array items; for object maps, this implies watching the properties). If a change is detected, the listener callback is fired. The obj collection is observed via standard $watch operation and is examined on every call to $digest() to see if any items have been added, removed, or moved. The listener is called whenever anything within

$rootScope.Scope.$watch()

$watch(watchExpression, listener, [objectEquality]); Registers a listener callback to be executed whenever the watchExpression changes. The watchExpression is called on every call to $digest() and should return the value that will be watched. (watchExpression should not change its value when executed multiple times with the same input because it may be executed multiple times by $digest(). That is, watchExpression should be idempotent. The listener is called only when the value from the curren

$rootScope.Scope.$root

$root Reference to the root scope.

$rootScope.Scope.$parent

$parent Reference to the parent scope.

$rootScope.Scope.$on()

$on(name, listener); Listens on events of a given type. See $emit for discussion of event life cycle. The event listener function format is: function(event, args...). The event object passed into the listener has the following attributes: targetScope - {Scope}: the scope on which the event was $emit-ed or $broadcast-ed. currentScope - {Scope}: the scope that is currently handling the event. Once the event propagates through the scope hierarchy, this property is set to null. name - {string}:

$rootScope.Scope.$new()

$new(isolate, parent); Creates a new child scope. The parent scope will propagate the $digest() event. The scope can be removed from the scope hierarchy using $destroy(). $destroy() must be called on a scope when it is desired for the scope and its child scopes to be permanently detached from the parent and thus stop participating in model change detection and listener notification by invoking. Parameters Param Type Details isolate boolean If true, then the scope does not prototypically

$rootScope.Scope.$id

$id Unique scope ID (monotonically increasing) useful for debugging.

$rootScope.Scope.$evalAsync()

$evalAsync([expression], [locals]); Executes the expression on the current scope at a later point in time. The $evalAsync makes no guarantees as to when the expression will be executed, only that: it will execute after the function that scheduled the evaluation (preferably before DOM rendering). at least one $digest cycle will be performed after expression execution. Any exceptions from the execution of the expression are forwarded to the $exceptionHandler service. Note: if this function is ca

$rootScope.Scope.$eval()

$eval([expression], [locals]); Executes the expression on the current scope and returns the result. Any exceptions in the expression are propagated (uncaught). This is useful when evaluating Angular expressions. var scope = ng.$rootScope.Scope(); scope.a = 1; scope.b = 2; expect(scope.$eval('a+b')).toEqual(3); expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3); Parameters Param Type Details expression (optional) stringfunction() An angular expression to be ex