$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

$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.

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

$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

$animate.leave()

leave(element, [options]); Triggers an animation and then removes the element from the DOM. When the function is called a promise is returned that will be resolved during the next digest once the animation has completed. Parameters Param Type Details element DOMElement the element which will be removed from the DOM options (optional) object an optional collection of options/styles that will be applied to the element Returns Promise the animation callback promise

angular.equals

function in module ng Determines if two objects or two values are equivalent. Supports value types, regular expressions, arrays and objects. Two objects or values are considered equivalent if at least one of the following is true: Both objects or values pass === comparison. Both objects or values are of the same type and all of their properties are equal by comparing them with angular.equals. Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal) Bot

$location.search()

search(search, [paramValue]); This method is getter / setter. Return search part (as object) of current url when called without any parameter. Change search part when called with parameter and return $location. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var searchObject = $location.search(); // => {foo: 'bar', baz: 'xoxo'} // set foo to 'yipee' $location.search('foo', 'yipee'); // $location.search() => {foo: 'yipee', baz: 'xoxo'} Parameters Param Type Details se

ngController

directive in module ng The ngController directive attaches a controller class to the view. This is a key aspect of how angular supports the principles behind the Model-View-Controller design pattern. MVC components in angular: Model â Models are the properties of a scope; scopes are attached to the DOM where scope properties are accessed through bindings. View â The template (HTML with data bindings) that is rendered into the View. Controller â The ngController directive specifies a Contro

ngMock.angular.mock.inject

function in module ngMock NOTE: This function is also published on window for easy access.NOTE: This function is declared ONLY WHEN running tests with jasmine or mocha The inject function wraps a function into an injectable function. The inject() creates new instance of $injector per test, which is then used for resolving references. Resolving References (Underscore Wrapping) Often, we would like to inject a reference once, in a beforeEach() block and reuse this in multiple it() clauses. T

ngComponentRouter.ngOutlet

directive in module ngComponentRouter The directive that identifies where the Router should render its Components. Directive Info This directive executes at priority level 400 restrict: AE. Usage as attribute: <ANY> ... </ANY>