Angularjs Examples

AJS Examples


AngularJS Scope Reference

AngularJS Scope APIs is used to watch single scope properties, creates a new child scope, removes the current scope,value changes in scope properties or variables and listens dispatched events of a given type. Complete reference of AngularJS Scope API's. Click on "Try Now" button to modify and test code yourself.

AngularJS Scope Reference

MethodDescription
$watch This method is used to watch value changes in scope properties or variables.
$watchGroup This method is used to watch value in scope array variable.
$watchCollection This method is used to observe properties on a single object.
$on This method is used to listens dispatched events of a given type
$emit This method is used to dispatches an event name upwards and travel up to $rootScope.scope listeners.
$broadcast This method is used to dispatches an event name downward to all child scopes notify the registered $rootScope listeners.
$new This scope object method creates a new child scope.
$digest This scope method processes all of the watchers of the current scope and its children.
$eval This scope method is used to executes the expression on the current scope and returns the result.
$apply This scope method is used to execute an expression in angular from outside of the angular framework.