$rootScope.Scope.$broadcast()

$broadcast(name, args); Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners. The event life cycle starts at the scope on which $broadcast was called. All listeners listening for name event on this scope get notified. Afterwards, the event propagates to all direct and indirect scopes of the current scope and calls all registered listeners along the way. The event cannot be canceled. Any exception emitted from the listen

$window

service in module ng A reference to the browser's window object. While window is globally available in JavaScript, it causes testability problems, because it is a global variable. In angular we always refer to it through the $window service, so it may be overridden, removed or mocked for testing. Expressions, like the one defined for the ngClick directive in the example below, are evaluated with respect to the current scope. Therefore, there is no risk of inadvertently coding in a dependen

ngOpen

directive in module ng Sets the open attribute on the element, if the expression inside ngOpen is truthy. A special directive is necessary because we cannot use interpolation inside the open attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <DETAILS ng-open="expression"> ... </DETAILS> Arguments Param Type Details ngOpen expression If the expression is truthy, then special attribut

ngModel.NgModelController.$validate()

$validate(); Runs each of the registered validators (first synchronous validators and then asynchronous validators). If the validity changes to invalid, the model will be set to undefined, unless ngModelOptions.allowInvalid is true. If the validity changes to valid, it will set the model to the last available valid $modelValue, i.e. either the last parsed value or the last value set from the scope.

ngInit

directive in module ng The ngInit directive allows you to evaluate an expression in the current scope. This directive can be abused to add unnecessary amounts of logic into your templates. There are only a few appropriate uses of ngInit, such as for aliasing special properties of ngRepeat, as seen in the demo below; and for injecting data via server side scripting. Besides these few cases, you should use controllers rather than ngInit to initialize values on a scope. Note: If you have a

$timeout.cancel()

cancel([promise]); Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection. Parameters Param Type Details promise (optional) Promise Promise returned by the $timeout function. Returns boolean Returns true if the task hasn't executed yet and was successfully canceled.

$sce.getTrusted()

getTrusted(type, maybeTrusted); Delegates to $sceDelegate.getTrusted. As such, takes the result of a $sce.trustAs() call and returns the originally supplied value if the queried context type is a supertype of the created type. If this condition isn't satisfied, throws an exception. Parameters Param Type Details type string The kind of context in which this value is to be used. maybeTrusted * The result of a prior $sce.trustAs call. Returns * The value the was originally provide

$sce.parseAsJs()

parseAsJs(expression); Shorthand method. $sce.parseAsJs(value) â $sce.parseAs($sce.JS, value) Parameters Param Type Details expression string String expression to compile. Returns function(context, locals) a function which represents the compiled expression: context â {object} â an object against which any expressions embedded in the strings are evaluated against (typically a scope object). locals â {object=} â local variables context object, useful for overriding va

ngTouch.directive

Name Description ngClick DEPRECATION NOTICE: Beginning with Angular 1.5, this directive is deprecated and by default disabled. The directive will receive no further support and might be removed from future releases. If you need the directive, you can enable it with the $touchProvider#ngClickOverrideEnabled function. We also recommend that you migrate to FastClick. To learn more about the 300ms delay, this Telerik article gives a good overview. A more powerful replacement for the default ngC

ngInclude.$includeContentLoaded

$includeContentLoaded Emitted every time the ngInclude content is reloaded. Type: emit Target: the current ngInclude scope Parameters Param Type Details angularEvent Object Synthetic event object. src String URL of content to load.