ngCookies.$cookies.get()

get(key); Returns the value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns string Raw cookie value.

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

ngCookies

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

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

ngComponentRouter.type

Name Description Router A Router is responsible for mapping URLs to components. ChildRouter This type extends the Router. RootRouter This type extends the Router. ComponentInstruction A ComponentInstruction represents the route state for a single component. An Instruction is composed of a tree of these ComponentInstructions. RouteDefinition Each item in a the RouteConfig for a Routing Component is an instance of this type. It can have the following properties: RouteParams A map of pa

ngComponentRouter.service

Name Description $rootRouter The singleton instance of the RootRouter type, which is associated with the top level $routerRootComponent. $routerRootComponent The top level Routing Component associated with the $rootRouter.

ngComponentRouter.Router

type in module ngComponentRouter A Router is responsible for mapping URLs to components. Routers and "Routing Component" instances have a 1:1 correspondence. The Router holds reference to one or more of Outlets. There are two kinds of Router: RootRouter and ChildRouter. You can see the state of a router by inspecting the read-only field router.navigating. This may be useful for showing a spinner, for instance.

ngComponentRouter.RouteParams

type in module ngComponentRouter A map of parameters for a given route, passed as part of the ComponentInstruction to the Lifecycle Hooks, such as $routerOnActivate and $routerOnDeactivate.

ngComponentRouter.RouteDefinition

type in module ngComponentRouter Each item in a the RouteConfig for a Routing Component is an instance of this type. It can have the following properties: path or (regex and `serializer) - defines how to recognize and generate this route component, loader, redirectTo (requires exactly one of these) name - the name used to identify the Route Definition when generating links data (optional)

ngComponentRouter.RootRouter

type in module ngComponentRouter This type extends the Router. There is only one instance of this type in a Component Router application injectable as the $rootRouter service. This Router is associate with the Top Level Component ($routerRootComponent). It acts as the connection betweent he Routers and the Location.