ngRoute.$routeProvider.caseInsensitiveMatch

caseInsensitiveMatch A boolean property indicating if routes defined using this provider should be matched using a case insensitive algorithm. Defaults to false.

ngRoute.$route.current

current Object Reference to the current route definition. The route definition contains: controller: The controller constructor as defined in the route definition. locals: A map of locals which is used by $controller service for controller instantiation. The locals contain the resolved values of the resolve map. Additionally the locals also contain: $scope - The current route scope. $template - The current route template HTML. The locals will be assigned to the route scope's $resolve prope

ngMock.$httpBackend.whenPOST()

whenPOST(url, [data], [headers], [keys]); Creates a new backend definition for POST requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. data (optional) stringRegExpfunction(string) HTTP request body or function that receives data string and returns true if the data is as expected. headers (optional) Objectfunction(Object) HTTP hea

$rootScope.Scope.$eval()

$eval([expression], [locals]); Executes the expression on the current scope and returns the result. Any exceptions in the expression are propagated (uncaught). This is useful when evaluating Angular expressions. var scope = ng.$rootScope.Scope(); scope.a = 1; scope.b = 2; expect(scope.$eval('a+b')).toEqual(3); expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3); Parameters Param Type Details expression (optional) stringfunction() An angular expression to be ex

ngMock.$rootScope.Scope.$countWatchers()

$countWatchers(); Counts all the watchers of direct and indirect child scopes of the current scope. The watchers of the current scope are included in the count and so are all the watchers of isolate child scopes. Returns number Total number of watchers.

$cacheFactory.Cache.destroy()

destroy(); Destroys the Cache object entirely, removing it from the $cacheFactory set.

ngRoute.$route

$routeProvider service in module ngRoute $route is used for deep-linking URLs to controllers and views (HTML partials). It watches $location.url() and tries to map the path to an existing route definition. Requires the ngRoute module to be installed. You can define routes through $routeProvider's API. The $route service is typically used in conjunction with the ngView directive and the $routeParams service. Dependencies $location $routeParams Methods reload(); Causes $route service t

auto.$provide.constant()

constant(name, value); Register a constant service with the $injector, such as a string, a number, an array, an object or a function. Like the value, it is not possible to inject other services into a constant. But unlike value, a constant can be injected into a module configuration function (see angular.Module) and it cannot be overridden by an Angular decorator. Parameters Param Type Details name string The name of the constant. value * The constant value. Returns Object regi

ngMousemove

directive in module ng Specify custom behavior on mousemove event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-mousemove="expression"> ... </ANY> Arguments Param Type Details ngMousemove expression Expression to evaluate upon mousemove. (Event object is available as $event)

$rootScope.Scope.$digest()

$digest(); Processes all of the watchers of the current scope and its children. Because a watcher's listener can change the model, the $digest() keeps calling the watchers until no more listeners are firing. This means that it is possible to get into an infinite loop. This function will throw 'Maximum iteration limit exceeded.' if the number of iterations exceeds 10. Usually, you don't call $digest() directly in controllers or in directives. Instead, you should call $apply() (typically from wi