Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1229 lines (1229 sloc) 69.5 KB
---
redirect_from: /docs/1.0.0-beta.2/modules/ng1.html
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ng1 | UI-Router</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/typedoctheme.css">
<script src="../assets/js/modernizr.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">UI-Router</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="ng1.html">ng1</a>
</li>
</ul>
<h1>External module ng1</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<h1 id="ui-router-for-angular-1">UI-Router for Angular 1</h1>
</div>
<ul>
<li>Provides an implementation for the <a href="../interfaces/common.coreservices.html">CoreServices</a> API, based on angular 1 services.</li>
<li>Also registers some services with the angular 1 injector.</li>
<li>Creates and bootstraps a new <a href="../classes/core.uirouter.html">UIRouter</a> object. Ties it to the the angular 1 lifecycle.</li>
</ul>
</div>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-not-exported">
<h3>Modules</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.____common_interface_.html" class="tsd-kind-icon">"../common/interface"</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Classes</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/ng1.ng1viewconfig.html" class="tsd-kind-icon">Ng1<wbr>View<wbr>Config</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Interfaces</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported"><a href="../interfaces/ng1.bindingtuple.html" class="tsd-kind-icon">Binding<wbr>Tuple</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/ng1.ng1controller.html" class="tsd-kind-icon">Ng1<wbr>Controller</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/ng1.ng1statedeclaration.html" class="tsd-kind-icon">Ng1<wbr>State<wbr>Declaration</a></li>
<li class="tsd-kind-interface tsd-parent-kind-external-module"><a href="../interfaces/ng1.ng1viewdeclaration.html" class="tsd-kind-icon">Ng1<wbr>View<wbr>Declaration</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-not-exported">
<h3>Variables</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_state" class="tsd-kind-icon">$state</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_stateparams" class="tsd-kind-icon">$state<wbr>Params</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_stateprovider" class="tsd-kind-icon">$state<wbr>Provider</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_transitions" class="tsd-kind-icon">$transitions</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_transitionsprovider" class="tsd-kind-icon">$transitions<wbr>Provider</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_urlmatcherfactory" class="tsd-kind-icon">$url<wbr>Matcher<wbr>Factory</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_urlmatcherfactoryprovider" class="tsd-kind-icon">$url<wbr>Matcher<wbr>Factory<wbr>Provider</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_urlrouter" class="tsd-kind-icon">$url<wbr>Router</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_urlrouterprovider" class="tsd-kind-icon">$url<wbr>Router<wbr>Provider</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#id" class="tsd-kind-icon">id</a></li>
<li class="tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#router" class="tsd-kind-icon">router</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Functions</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_viewscrollprovider" class="tsd-kind-icon">$<wbr>View<wbr>Scroll<wbr>Provider</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_uirouter" class="tsd-kind-icon">$ui<wbr>Router</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#annotatecontroller" class="tsd-kind-icon">annotate<wbr>Controller</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#getbindings" class="tsd-kind-icon">get<wbr>Bindings</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#getcomponentinputs" class="tsd-kind-icon">get<wbr>Component<wbr>Inputs</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#getlocals" class="tsd-kind-icon">get<wbr>Locals</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#getstatehookbuilder" class="tsd-kind-icon">get<wbr>State<wbr>Hook<wbr>Builder</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#getstateprovider" class="tsd-kind-icon">get<wbr>State<wbr>Provider</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#gettransitionsprovider" class="tsd-kind-icon">get<wbr>Transitions<wbr>Provider</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#geturlrouterprovider" class="tsd-kind-icon">get<wbr>Url<wbr>Router<wbr>Provider</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#ng1viewconfigfactory" class="tsd-kind-icon">ng1<wbr>View<wbr>Config<wbr>Factory</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#ng1viewsbuilder" class="tsd-kind-icon">ng1<wbr>Views<wbr>Builder</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#runblock" class="tsd-kind-icon">run<wbr>Block</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#scopebindings" class="tsd-kind-icon">scope<wbr>Bindings</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="ng1.html#watchdigests" class="tsd-kind-icon">watch<wbr>Digests</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-not-exported">
<h3>Object literals</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-object-literal tsd-parent-kind-external-module tsd-is-not-exported"><a href="ng1.html#_resolve" class="tsd-kind-icon">$resolve</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
<h2>Variables</h2>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_state" class="tsd-anchor"></a>
<!---->
<!--<h3>$state</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$state<span class="tsd-signature-symbol">:</span> <a href="../classes/state.stateservice.html" class="tsd-signature-type">StateService</a> <div class="tsd-header">
<p> An injectable service used to query for current state information. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service used to query for current state information.</p>
</div>
<p>This angular service exposes the <a href="../classes/state.stateservice.html">StateService</a> singleton.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L387">ng1/services.ts:387</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_stateparams" class="tsd-anchor"></a>
<!---->
<!--<h3>$state<wbr>Params</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$state<wbr>Params<span class="tsd-signature-symbol">:</span> <a href="../classes/params.stateparams.html" class="tsd-signature-type">StateParams</a> <div class="tsd-header">
<p> An injectable service object which has the current state parameters </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service object which has the current state parameters</p>
</div>
<p>This angular service (singleton object) holds the current state parameters.
The values in <code>$stateParams</code> are not updated until <em>after</em> a <a href="../classes/transition.transition-1.html">Transition</a> successfully completes.</p>
<p>This object can be injected into other services.</p>
<dl class="tsd-comment-tags">
<dt>example</dt>
<dd><pre><code class="lang-js">
SomeService.$inject = [<span class="hljs-string">'$http'</span>, <span class="hljs-string">'$stateParams'</span>];
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">SomeService</span>(<span class="hljs-params">$http, $stateParams</span>) </span>{
<span class="hljs-keyword">return</span> {
getUser: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">return</span> $http.get(<span class="hljs-string">'/api/users/'</span> + $stateParams.username);
}
}
};
angular.service(<span class="hljs-string">'SomeService'</span>, SomeService);
</code></pre>
<h3 id="deprecation-warning-">Deprecation warning:</h3>
<p>When <code>$stateParams</code> is injected into transition hooks, resolves and view controllers, they receive a different
object than this global service object. In those cases, the injected object has the parameter values for the
<em>pending</em> Transition.</p>
<p>Because of these confusing details, this service is deprecated.</p>
</dd>
<dt>deprecated</dt>
<dd><p>Instead of using <code>$stateParams, inject the current &lt;a href=&quot;../classes/transition.transition-1.html&quot;&gt;Transition&lt;/a&gt; as</code>$transition$` and use <a href="../classes/transition.transition-1.html#params">Transition.params</a></p>
<pre><code class="lang-js">MyController.$inject = [<span class="hljs-string">'$transition$'</span>];
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">MyController</span>(<span class="hljs-params">$transition$</span>) </span>{
<span class="hljs-keyword">var</span> username = $transition$.params().username;
<span class="hljs-comment">// .. do something with username</span>
}
</code></pre>
</dd>
</dl>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L362">ng1/services.ts:362</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_stateprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>$state<wbr>Provider</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$state<wbr>Provider<span class="tsd-signature-symbol">:</span> <a href="../classes/state.stateprovider.html" class="tsd-signature-type">StateProvider</a> <div class="tsd-header">
<p> A config-time injectable provider used to register states. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A config-time injectable provider used to register states.</p>
</div>
<p>This angular service exposes the <a href="../classes/state.stateprovider.html">StateProvider</a> singleton.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L394">ng1/services.ts:394</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_transitions" class="tsd-anchor"></a>
<!---->
<!--<h3>$transitions</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$transitions<span class="tsd-signature-symbol">:</span> <a href="../classes/transition.transitionservice.html" class="tsd-signature-type">TransitionService</a> <div class="tsd-header">
<p> An injectable service primarily used to register transition hooks </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service primarily used to register transition hooks</p>
</div>
<p>This angular service exposes the <a href="../classes/transition.transitionservice.html">TransitionService</a> singleton, which is primarily used to add transition hooks.</p>
<p>The same object is also exposed as <a href="ng1.html#_transitionsprovider">$transitionsProvider</a> for injection during angular config time.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L371">ng1/services.ts:371</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_transitionsprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>$transitions<wbr>Provider</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$transitions<wbr>Provider<span class="tsd-signature-symbol">:</span> <a href="../classes/transition.transitionservice.html" class="tsd-signature-type">TransitionService</a> <div class="tsd-header">
<p> A config-time injectable provider primarily used to register transition hooks </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A config-time injectable provider primarily used to register transition hooks</p>
</div>
<p>This angular provider exposes the <a href="../classes/transition.transitionservice.html">TransitionService</a> singleton, which is primarily used to add transition hooks.</p>
<p>The same object is also exposed as <a href="ng1.html#_transitions">$transitions</a> for injection at runtime.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L380">ng1/services.ts:380</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_urlmatcherfactory" class="tsd-anchor"></a>
<!---->
<!--<h3>$url<wbr>Matcher<wbr>Factory</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$url<wbr>Matcher<wbr>Factory<span class="tsd-signature-symbol">:</span> <a href="../classes/url.urlmatcherfactory.html" class="tsd-signature-type">UrlMatcherFactory</a> <div class="tsd-header">
<p> An injectable service used to configure the URL. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service used to configure the URL.</p>
</div>
<p>This service is used to set url mapping options, and create <a href="../classes/url.urlmatcher.html">UrlMatcher</a> objects.</p>
<p>This angular service exposes the <a href="../classes/url.urlmatcherfactory.html">UrlMatcherFactory</a> singleton.
The singleton is also exposed at config-time as the <a href="ng1.html#_urlmatcherfactoryprovider">$urlMatcherFactoryProvider</a>.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L418">ng1/services.ts:418</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_urlmatcherfactoryprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>$url<wbr>Matcher<wbr>Factory<wbr>Provider</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$url<wbr>Matcher<wbr>Factory<wbr>Provider<span class="tsd-signature-symbol">:</span> <a href="../classes/url.urlmatcherfactory.html" class="tsd-signature-type">UrlMatcherFactory</a> <div class="tsd-header">
<p> An injectable service used to configure the URL. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service used to configure the URL.</p>
</div>
<p>This service is used to set url mapping options, and create <a href="../classes/url.urlmatcher.html">UrlMatcher</a> objects.</p>
<p>This angular service exposes the <a href="../classes/url.urlmatcherfactory.html">UrlMatcherFactory</a> singleton at config-time.
The singleton is also exposed at runtime as the <a href="ng1.html#_urlmatcherfactory">$urlMatcherFactory</a>.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L428">ng1/services.ts:428</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_urlrouter" class="tsd-anchor"></a>
<!---->
<!--<h3>$url<wbr>Router</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$url<wbr>Router<span class="tsd-signature-symbol">:</span> <a href="../classes/url.urlrouter.html" class="tsd-signature-type">UrlRouter</a> <div class="tsd-header">
<p> An injectable service used to configure URL redirects. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An injectable service used to configure URL redirects.</p>
</div>
<p>This angular service exposes the <a href="../classes/url.urlrouter.html">UrlRouter</a> singleton.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L408">ng1/services.ts:408</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_urlrouterprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>$url<wbr>Router<wbr>Provider</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$url<wbr>Router<wbr>Provider<span class="tsd-signature-symbol">:</span> <a href="../classes/url.urlrouterprovider.html" class="tsd-signature-type">UrlRouterProvider</a> <div class="tsd-header">
<p> A config-time injectable provider used to manage the URL. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A config-time injectable provider used to manage the URL.</p>
</div>
<p>This angular service exposes the <a href="../classes/url.urlrouterprovider.html">UrlRouterProvider</a> singleton.</p>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L401">ng1/services.ts:401</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="id" class="tsd-anchor"></a>
<!---->
<!--<h3>id</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L112">ng1/statebuilders/views.ts:112</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a name="router" class="tsd-anchor"></a>
<!---->
<!--<h3>router</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">router<span class="tsd-signature-symbol">:</span> <a href="../classes/core.uirouter.html" class="tsd-signature-type">UIRouter</a></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L160">ng1/services.ts:160</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Functions</h2>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_viewscrollprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>$<wbr>View<wbr>Scroll<wbr>Provider</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">$<wbr>View<wbr>Scroll<wbr>Provider<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>ngdoc</dt>
<dd><p>object</p>
</dd>
<dt>name</dt>
<dd><p>ui.router.state.$uiViewScrollProvider</p>
</dd>
<dt>description</dt>
<dd><p>Provider that returns the {@link ui.router.state.$uiViewScroll} service function.</p>
</dd>
</dl>
</div>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/viewScroll.ts#L13">ng1/viewScroll.ts:13</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_uirouter" class="tsd-anchor"></a>
<!---->
<!--<h3>$ui<wbr>Router</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">$ui<wbr>Router<span class="tsd-signature-symbol">(</span>$locationProvider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ILocationProvider</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
<li class="tsd-header">
<p> This angular 1 provider instantiates a Router and exposes its services via the angular injector </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>This angular 1 provider instantiates a Router and exposes its services via the angular injector</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>$locationProvider: <span class="tsd-signature-type">ILocationProvider</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L164">ng1/services.ts:164</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="annotatecontroller" class="tsd-anchor"></a>
<!---->
<!--<h3>annotate<wbr>Controller</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">annotate<wbr>Controller<span class="tsd-signature-symbol">(</span>controllerExpression<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
<li class="tsd-header">
<p> Annotates a controller expression (may be a controller function(), a &quot;controllername&quot;,
or &quot;controllername as name&quot;) </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Annotates a controller expression (may be a controller function(), a &quot;controllername&quot;,
or &quot;controllername as name&quot;)</p>
</div>
<ul>
<li>Temporarily decorates $injector.instantiate.</li>
<li>Invokes $controller() service<ul>
<li>Calls $injector.instantiate with controller constructor</li>
</ul>
</li>
<li>Annotate constructor</li>
<li>Undecorate $injector</li>
</ul>
<p>returns an array of strings, which are the arguments of the controller expression</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>controllerExpression: <span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L140">ng1/services.ts:140</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="getbindings" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>Bindings</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">get<wbr>Bindings<span class="tsd-signature-symbol">(</span>def<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>def: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L100">ng1/statebuilders/views.ts:100</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="getcomponentinputs" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>Component<wbr>Inputs</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">get<wbr>Component<wbr>Inputs<span class="tsd-signature-symbol">(</span>$injector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IInjectorService</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>$injector: <span class="tsd-signature-type">IInjectorService</span></h5>
</li>
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L106">ng1/statebuilders/views.ts:106</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="getlocals" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>Locals</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">get<wbr>Locals<span class="tsd-signature-symbol">(</span>ctx<span class="tsd-signature-symbol">: </span><a href="../classes/resolve.resolvecontext.html" class="tsd-signature-type">ResolveContext</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>ctx: <a href="../classes/resolve.resolvecontext.html" class="tsd-signature-type">ResolveContext</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../interfaces/common.typedmap.html" class="tsd-signature-type">TypedMap</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L291">ng1/services.ts:291</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="getstatehookbuilder" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>State<wbr>Hook<wbr>Builder</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">get<wbr>State<wbr>Hook<wbr>Builder<span class="tsd-signature-symbol">(</span>hookName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"onEnter"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"onExit"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"onRetain"</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">stateHookBuilder</span></li>
<li class="tsd-header">
<p> This is a <a href="../classes/state.statebuilder.html#builder">StateBuilder.builder</a> function for angular1 <code>onEnter</code>, <code>onExit</code>,
<code>onRetain</code> callback hooks on a <a href="../interfaces/ng1.ng1statedeclaration.html">Ng1StateDeclaration</a>. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>This is a <a href="../classes/state.statebuilder.html#builder">StateBuilder.builder</a> function for angular1 <code>onEnter</code>, <code>onExit</code>,
<code>onRetain</code> callback hooks on a <a href="../interfaces/ng1.ng1statedeclaration.html">Ng1StateDeclaration</a>.</p>
</div>
<p>When the <a href="../classes/state.statebuilder.html">StateBuilder</a> builds a <a href="../classes/state.state-1.html">State</a> object from a raw <a href="../interfaces/state.statedeclaration.html">StateDeclaration</a>, this builder
ensures that those hooks are injectable for angular-ui-router (ng1).</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>hookName: <span class="tsd-signature-type">"onEnter"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"onExit"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"onRetain"</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">stateHookBuilder</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/onEnterExitRetain.ts#L19">ng1/statebuilders/onEnterExitRetain.ts:19</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="getstateprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>State<wbr>Provider</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">get<wbr>State<wbr>Provider<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/state.stateprovider.html" class="tsd-signature-type">StateProvider</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../classes/state.stateprovider.html" class="tsd-signature-type">StateProvider</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L252">ng1/services.ts:252</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="gettransitionsprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>Transitions<wbr>Provider</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">get<wbr>Transitions<wbr>Provider<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/transition.transitionservice.html" class="tsd-signature-type">TransitionService</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../classes/transition.transitionservice.html" class="tsd-signature-type">TransitionService</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L268">ng1/services.ts:268</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="geturlrouterprovider" class="tsd-anchor"></a>
<!---->
<!--<h3>get<wbr>Url<wbr>Router<wbr>Provider</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">get<wbr>Url<wbr>Router<wbr>Provider<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/url.urlrouterprovider.html" class="tsd-signature-type">UrlRouterProvider</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="../classes/url.urlrouterprovider.html" class="tsd-signature-type">UrlRouterProvider</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L239">ng1/services.ts:239</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="ng1viewconfigfactory" class="tsd-anchor"></a>
<!---->
<!--<h3>ng1<wbr>View<wbr>Config<wbr>Factory</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">ng1<wbr>View<wbr>Config<wbr>Factory<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/path.pathnode.html" class="tsd-signature-type">PathNode</a><span class="tsd-signature-symbol">&gt;</span>, view<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_ViewDeclaration</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/ng1.ng1viewconfig.html" class="tsd-signature-type">Ng1ViewConfig</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/path.pathnode.html" class="tsd-signature-type">PathNode</a><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
<li>
<h5>view: <span class="tsd-signature-type">_ViewDeclaration</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/ng1.ng1viewconfig.html" class="tsd-signature-type">Ng1ViewConfig</a><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L18">ng1/statebuilders/views.ts:18</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="ng1viewsbuilder" class="tsd-anchor"></a>
<!---->
<!--<h3>ng1<wbr>Views<wbr>Builder</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">ng1<wbr>Views<wbr>Builder<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="../classes/state.state-1.html" class="tsd-signature-type">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span></li>
<li class="tsd-header">
<p> This is a <a href="../classes/state.statebuilder.html#builder">StateBuilder.builder</a> function for angular1 <code>views</code>. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>This is a <a href="../classes/state.statebuilder.html#builder">StateBuilder.builder</a> function for angular1 <code>views</code>.</p>
</div>
<p>When the <a href="../classes/state.statebuilder.html">StateBuilder</a> builds a <a href="../classes/state.state-1.html">State</a> object from a raw <a href="../interfaces/state.statedeclaration.html">StateDeclaration</a>, this builder
handles the <code>views</code> property with logic specific to angular-ui-router (ng1).</p>
<p>If no <code>views: {}</code> property exists on the <a href="../interfaces/state.statedeclaration.html">StateDeclaration</a>, then it creates the <code>views</code> object
and applies the state-level configuration to a view named <code>$default</code>.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>state: <a href="../classes/state.state-1.html" class="tsd-signature-type">State</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">object</span></h4>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><a href="../interfaces/ng1.ng1viewdeclaration.html" class="tsd-signature-type">Ng1ViewDeclaration</a></h5>
</li>
</ul>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L30">ng1/statebuilders/views.ts:30</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="runblock" class="tsd-anchor"></a>
<!---->
<!--<h3>run<wbr>Block</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">run<wbr>Block<span class="tsd-signature-symbol">(</span>$injector<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IInjectorService</span>, $q<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IQService</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>$injector: <span class="tsd-signature-type">IInjectorService</span></h5>
</li>
<li>
<h5>$q: <span class="tsd-signature-type">IQService</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L224">ng1/services.ts:224</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="scopebindings" class="tsd-anchor"></a>
<!---->
<!--<h3>scope<wbr>Bindings</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">scope<wbr>Bindings<span class="tsd-signature-symbol">(</span>bindingsObj<span class="tsd-signature-symbol">: </span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ng1.bindingtuple.html" class="tsd-signature-type">BindingTuple</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>bindingsObj: <a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ng1.bindingtuple.html" class="tsd-signature-type">BindingTuple</a><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/statebuilders/views.ts#L93">ng1/statebuilders/views.ts:93</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="watchdigests" class="tsd-anchor"></a>
<!---->
<!--<h3>watch<wbr>Digests</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">watch<wbr>Digests<span class="tsd-signature-symbol">(</span>$rootScope<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IScope</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>$rootScope: <span class="tsd-signature-type">IScope</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/services.ts#L286">ng1/services.ts:286</a></li>
</ul>
</aside> </li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
<h2>Object literals</h2>
<section class="tsd-panel tsd-member tsd-kind-object-literal tsd-parent-kind-external-module tsd-is-not-exported">
<a name="_resolve" class="tsd-anchor"></a>
<!---->
<!--<h3>$resolve</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">$resolve<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span> <div class="tsd-header">
<p> Implementation of the legacy <code>$resolve</code> service for angular 1. </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Implementation of the legacy <code>$resolve</code> service for angular 1.</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/legacy/resolveService.ts#L11">ng1/legacy/resolveService.ts:11</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported">
<a name="_resolve.resolve" class="tsd-anchor"></a>
<!---->
<!--<h3>resolve</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-object-literal tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">resolve<span class="tsd-signature-symbol">(</span>invocables<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span>, locals<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">object</span>, parent<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-header">
<p> Asynchronously injects a resolve block. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Asynchronously injects a resolve block.</p>
</div>
<p>This emulates most of the behavior of the ui-router 0.2.x $resolve.resolve() service API.</p>
<p>Given an object <code>invocables</code>, where keys are strings and values are injectable functions,
injects each function, and waits for the resulting promise to resolve.
When all resulting promises are resolved, returns the results as an object.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>invocables: <span class="tsd-signature-type">object</span></h5>
: <div class="tsd-comment tsd-typography">
<div class="lead">
<p>an object which looks like an [[StateDefinition.resolve]] object; keys are resolve names and values are injectable functions</p>
</div>
</div>
<ul class="tsd-parameters">
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
</li>
<li>
<h5>locals <span class="tsd-flag ts-flagDefault value">Default value</span>: <span class="tsd-signature-type">object</span><span class="tsd-signature-symbol"> =&nbsp;{}</span></h5>
: <div class="tsd-comment tsd-typography">
<div class="lead">
<p>key/value pre-resolved data (locals)</p>
</div>
</div>
<ul class="tsd-parameters">
</ul>
</li>
<li>
<h5>parent <span class="tsd-flag ts-flagOptional">Optional</span>: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5>
: <div class="tsd-comment tsd-typography">
<div class="lead">
<p>a promise for a &quot;parent resolve&quot;</p>
</div>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/common.obj.html" class="tsd-signature-type">Obj</a><span class="tsd-signature-symbol">&gt;</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/4d86ca2/src/ng1/legacy/resolveService.ts#L41">ng1/legacy/resolveService.ts:41</a></li>
</ul>
</aside> </li>
</ul>
</section>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class=" tsd-kind-external-module">
<a href="common.html">common</a>
</li>
<li class=" tsd-kind-external-module">
<a href="common_hof.html">common_<wbr>hof</a>
</li>
<li class=" tsd-kind-external-module">
<a href="common_predicates.html">common_<wbr>predicates</a>
</li>
<li class=" tsd-kind-external-module">
<a href="common_strings.html">common_<wbr>strings</a>
</li>
<li class=" tsd-kind-external-module">
<a href="core.html">core</a>
</li>
<li class=" tsd-kind-external-module">
<a href="hooks.html">hooks</a>
</li>
<li class=" tsd-kind-external-module">
<a href="justjs.html">justjs</a>
</li>
<li class="current tsd-kind-external-module">
<a href="ng1.html">ng1</a>
<ul>
<li class=" tsd-kind-module tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.____common_interface_.html">"../common/interface"</a>
</li>
</ul>
</li>
<li class=" tsd-kind-external-module">
<a href="ng1_directives.html">ng1_<wbr>directives</a>
</li>
<li class=" tsd-kind-external-module">
<a href="ng1_state_events.html">ng1_<wbr>state_<wbr>events</a>
</li>
<li class=" tsd-kind-external-module">
<a href="ng2.html">ng2</a>
</li>
<li class=" tsd-kind-external-module">
<a href="ng2_directives.html">ng2_<wbr>directives</a>
</li>
<li class=" tsd-kind-external-module">
<a href="params.html">params</a>
</li>
<li class=" tsd-kind-external-module">
<a href="path.html">path</a>
</li>
<li class=" tsd-kind-external-module">
<a href="resolve.html">resolve</a>
</li>
<li class=" tsd-kind-external-module">
<a href="state.html">state</a>
</li>
<li class=" tsd-kind-external-module">
<a href="trace.html">trace</a>
</li>
<li class=" tsd-kind-external-module">
<a href="transition.html">transition</a>
</li>
<li class=" tsd-kind-external-module">
<a href="url.html">url</a>
</li>
<li class=" tsd-kind-external-module">
<a href="view.html">view</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="../classes/ng1.ng1viewconfig.html" class="tsd-kind-icon">Ng1<wbr>View<wbr>Config</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../interfaces/ng1.bindingtuple.html" class="tsd-kind-icon">Binding<wbr>Tuple</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/ng1.ng1controller.html" class="tsd-kind-icon">Ng1<wbr>Controller</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/ng1.ng1statedeclaration.html" class="tsd-kind-icon">Ng1<wbr>State<wbr>Declaration</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/ng1.ng1viewdeclaration.html" class="tsd-kind-icon">Ng1<wbr>View<wbr>Declaration</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_state" class="tsd-kind-icon">$state</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_stateparams" class="tsd-kind-icon">$state<wbr>Params</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_stateprovider" class="tsd-kind-icon">$state<wbr>Provider</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_transitions" class="tsd-kind-icon">$transitions</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_transitionsprovider" class="tsd-kind-icon">$transitions<wbr>Provider</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_urlmatcherfactory" class="tsd-kind-icon">$url<wbr>Matcher<wbr>Factory</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_urlmatcherfactoryprovider" class="tsd-kind-icon">$url<wbr>Matcher<wbr>Factory<wbr>Provider</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_urlrouter" class="tsd-kind-icon">$url<wbr>Router</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_urlrouterprovider" class="tsd-kind-icon">$url<wbr>Router<wbr>Provider</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#id" class="tsd-kind-icon">id</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#router" class="tsd-kind-icon">router</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_viewscrollprovider" class="tsd-kind-icon">$<wbr>View<wbr>Scroll<wbr>Provider</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_uirouter" class="tsd-kind-icon">$ui<wbr>Router</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#annotatecontroller" class="tsd-kind-icon">annotate<wbr>Controller</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#getbindings" class="tsd-kind-icon">get<wbr>Bindings</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#getcomponentinputs" class="tsd-kind-icon">get<wbr>Component<wbr>Inputs</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#getlocals" class="tsd-kind-icon">get<wbr>Locals</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#getstatehookbuilder" class="tsd-kind-icon">get<wbr>State<wbr>Hook<wbr>Builder</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#getstateprovider" class="tsd-kind-icon">get<wbr>State<wbr>Provider</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#gettransitionsprovider" class="tsd-kind-icon">get<wbr>Transitions<wbr>Provider</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#geturlrouterprovider" class="tsd-kind-icon">get<wbr>Url<wbr>Router<wbr>Provider</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#ng1viewconfigfactory" class="tsd-kind-icon">ng1<wbr>View<wbr>Config<wbr>Factory</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#ng1viewsbuilder" class="tsd-kind-icon">ng1<wbr>Views<wbr>Builder</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#runblock" class="tsd-kind-icon">run<wbr>Block</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#scopebindings" class="tsd-kind-icon">scope<wbr>Bindings</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="ng1.html#watchdigests" class="tsd-kind-icon">watch<wbr>Digests</a>
</li>
<li class=" tsd-kind-object-literal tsd-parent-kind-external-module tsd-is-not-exported">
<a href="ng1.html#_resolve" class="tsd-kind-icon">$resolve</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>
You can’t perform that action at this time.