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.

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

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.$cookies.getAll()

getAll(); Returns a key value object with all the cookies Returns Object All cookies

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.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.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.$rootRouter

service in module ngComponentRouter The singleton instance of the RootRouter type, which is associated with the top level $routerRootComponent.