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

ngRoute.$route.$routeUpdate

$routeUpdate The reloadOnSearch property has been set to false, and we are reusing the same instance of the Controller. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object current Route Current/previous route information.

ngRoute.$route.$routeChangeSuccess

$routeChangeSuccess Broadcasted after a route change has happened successfully. The resolve dependencies are now available in the current.locals property. ngView listens for the directive to instantiate the controller and render the view. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object. current Route Current route information. previous RouteUndefined Previous route information, or undefined if current is first ro

ngRoute.$route.$routeChangeStart

$routeChangeStart Broadcasted before a route change. At this point the route services starts resolving all of the dependencies needed for the route change to occur. Typically this involves fetching the view template as well as any dependencies defined in resolve route property. Once all of the dependencies are resolved $routeChangeSuccess is fired. The route change (and the $location change that triggered it) can be prevented by calling preventDefault method of the event. See $rootScope.Scope

ngRoute.$route.$routeChangeError

$routeChangeError Broadcasted if any of the resolve promises are rejected. Type: broadcast Target: root scope Parameters Param Type Details angularEvent Object Synthetic event object current Route Current route information. previous Route Previous route information. rejection Route Rejection of the promise. Usually the error of the failed promise.

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

ngRoute

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

ngResource.service

Name Description $resource A factory which creates a resource object that lets you interact with RESTful server-side data sources.

ngResource.$resource

service in module ngResource A factory which creates a resource object that lets you interact with RESTful server-side data sources. The returned resource object has action methods which provide high-level behaviors without the need to interact with the low level $http service. Requires the ngResource module to be installed. By default, trailing slashes will be stripped from the calculated URLs, which can pose problems with server backends that do not expect that behavior. This can be disa

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