ngMock.$httpBackend.whenRoute()

whenRoute(method, url); Creates a new backend definition that compares only with the requested route. Parameters Param Type Details method string HTTP method. url string HTTP url string that supports colon param matching. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You can save this object for later use and invoke respond again in order to change how a matched request is handled. See #when for more info.

$sce.trustAs()

trustAs(type, value); Delegates to $sceDelegate.trustAs. As such, returns an object that is trusted by angular for use in specified strict contextual escaping contexts (such as ng-bind-html, ng-include, any src attribute interpolation, any dom event binding attribute interpolation such as for onclick, etc.) that uses the provided value. See * $sce for enabling strict contextual escaping. Parameters Param Type Details type string The kind of context in which this value is safe for use. e.

ngResource

Installation First include angular-resource.js in your HTML: <script src="angular.js"> <script src="angular-resource.js"> You can download this file from the following places: Google CDN e.g. //ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-resource.js Bower e.g. bower install angular-resource@X.Y.Z code.angularjs.org e.g. "//code.angularjs.org/X.Y.Z/angular-resource.js" where X.Y.Z is the AngularJS version you are running. Then load the module in your application by

orderBy

filter in module ng Orders a specified array by the expression predicate. It is ordered alphabetically for strings and numerically for numbers. Note: if you notice numbers are not being sorted as expected, make sure they are actually being saved as numbers and not strings. Array-like values (e.g. NodeLists, jQuery objects, TypedArrays, Strings, etc) are also supported. Usage In HTML Template Binding {{ orderBy_expression | orderBy : expression : reverse}} In JavaScript $filter('orderBy')

ngComponentRouter.ComponentInstruction

type in module ngComponentRouter A ComponentInstruction represents the route state for a single component. An Instruction is composed of a tree of these ComponentInstructions. ComponentInstructions is a public API. Instances of ComponentInstruction are passed to route lifecycle hooks, like $routerCanActivate. You should not modify this object. It should be treated as immutable.

ngCookies.$cookies

$cookiesProvider service in module ngCookies Provides read/write access to browser's cookies. Up until Angular 1.3, $cookies exposed properties that represented the current browser cookie values. In version 1.4, this behavior has changed, and $cookies now provides a standard api of getters, setters etc. Requires the ngCookies module to be installed. Methods get(key); Returns the value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns

auto.$provide.provider()

provider(name, provider); Register a provider function with the $injector. Provider functions are constructor functions, whose instances are responsible for "providing" a factory for a service. Service provider names start with the name of the service they provide followed by Provider. For example, the $log service has a provider called $logProvider. Service provider objects can have additional methods which allow configuration of the provider and its service. Importantly, you can configure wh

ngComponentRouter.directive

Name Description ngOutlet The directive that identifies where the Router should render its Components.

angular.Module.constant()

constant(name, object); Because the constants are fixed, they get applied before other provide methods. See $provide.constant(). Parameters Param Type Details name string constant name object * Constant value.

ngMock.$exceptionHandlerProvider.mode()

mode(mode); Sets the logging mode. Parameters Param Type Details mode string Mode of operation, defaults to rethrow. log: Sometimes it is desirable to test that an error is thrown, for this case the logmode stores an array of errors in `$exceptionHandler.errors`, to allow later assertion of them. See assertEmpty() and reset() rethrow: If any errors are passed to the handler in tests, it typically means that thereis a bug in the application or test, so this mock will make these tests