$sce.getTrustedUrl()

getTrustedUrl(value); Shorthand method. $sce.getTrustedUrl(value) â $sceDelegate.getTrusted($sce.URL, value) Parameters Param Type Details value * The value to pass to $sce.getTrusted. Returns * The return value of $sce.getTrusted($sce.URL, value)

angular.Module.run()

run(initializationFn); Use this method to register work which should be performed when the injector is done loading all modules. Parameters Param Type Details initializationFn Function Execute this function after injector creation. Useful for application initialization.

ngMock.$animate.closeAndFlush()

closeAndFlush(); This method will close all pending animations (both Javascript and CSS) and it will also flush any remaining animation frames and/or callbacks.

ngMock.service

Name Description $exceptionHandler Mock implementation of $exceptionHandler that rethrows or logs errors passed to it. See $exceptionHandlerProvider for configuration information. $log Mock implementation of $log that gathers all logged messages in arrays (one array per logging level). These arrays are exposed as logs property of each of the level-specific log function, e.g. for level error the array is exposed as $log.error.logs. $interval Mock implementation of the $interval service. $a

ngModel.NgModelController.$setDirty()

$setDirty(); Sets the control to its dirty state. This method can be called to remove the ng-pristine class and set the control to its dirty state (ng-dirty class). A model is considered to be dirty when the control has been changed from when first compiled.

input

directive in module ng HTML input element control. When used together with ngModel, it provides data-binding, input state control, and validation. Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers. Note: Not every feature offered is available for all input types. Specifically, data binding and event handling via ng-model is unsupported for input[file]. Directive Info This directive executes at priority level 0. Usage as element: <

form.FormController.$error

$error Object Is an object hash, containing references to controls or forms with failing validators, where: keys are validation tokens (error names), values are arrays of controls or forms that have a failing validator for given error name. Built-in validation tokens: email max maxlength min minlength number pattern required url date datetimelocal time week month

$http.post()

post(url, data, [config]); Shortcut method to perform POST request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request data * Request content config (optional) Object Optional configuration object Returns HttpPromise Future object

ngDisabled

directive in module ng This directive sets the disabled attribute on the element if the expression inside ngDisabled evaluates to truthy. A special directive is necessary because we cannot use interpolation inside the disabled attribute. See the interpolation guide for more info. Directive Info This directive executes at priority level 100. Usage as attribute: <INPUT ng-disabled="expression"> ... </INPUT> Arguments Param Type Details ngDisabled expression If the exp

ng.type

Name Description angular.Module Interface for configuring angular modules. $cacheFactory.Cache A cache object used to store and retrieve data, primarily used by $http and the script directive to cache templates and other data. $compile.directive.Attributes A shared object between directive compile / linking functions which contains normalized DOM element attributes. The values reflect current binding state {{ }}. The normalization is needed since all of these are treated as equivalent in A