UNPKG

11 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * The current (or pending) State Parameters
5 *
6 * An injectable global **Service Object** which holds the state parameters for the latest **SUCCESSFUL** transition.
7 *
8 * The values are not updated until *after* a `Transition` successfully completes.
9 *
10 * **Also:** an injectable **Per-Transition Object** object which holds the pending state parameters for the pending `Transition` currently running.
11 *
12 * ### Deprecation warning:
13 *
14 * The value injected for `$stateParams` is different depending on where it is injected.
15 *
16 * - When injected into an angular service, the object injected is the global **Service Object** with the parameter values for the latest successful `Transition`.
17 * - When injected into transition hooks, resolves, or view controllers, the object is the **Per-Transition Object** with the parameter values for the running `Transition`.
18 *
19 * Because of these confusing details, this service is deprecated.
20 *
21 * ### Instead of using the global `$stateParams` service object,
22 * inject [[$uiRouterGlobals]] and use [[UIRouterGlobals.params]]
23 *
24 * ```js
25 * MyService.$inject = ['$uiRouterGlobals'];
26 * function MyService($uiRouterGlobals) {
27 * return {
28 * paramValues: function () {
29 * return $uiRouterGlobals.params;
30 * }
31 * }
32 * }
33 * ```
34 *
35 * ### Instead of using the per-transition `$stateParams` object,
36 * inject the current `Transition` (as [[$transition$]]) and use [[Transition.params]]
37 *
38 * ```js
39 * MyController.$inject = ['$transition$'];
40 * function MyController($transition$) {
41 * var username = $transition$.params().username;
42 * // .. do something with username
43 * }
44 * ```
45 *
46 * ---
47 *
48 * This object can be injected into other services.
49 *
50 * #### Deprecated Example:
51 * ```js
52 * SomeService.$inject = ['$http', '$stateParams'];
53 * function SomeService($http, $stateParams) {
54 * return {
55 * getUser: function() {
56 * return $http.get('/api/users/' + $stateParams.username);
57 * }
58 * }
59 * };
60 * angular.service('SomeService', SomeService);
61 * ```
62 * @deprecated
63 */
64var $stateParams;
65/**
66 * Global UI-Router variables
67 *
68 * The router global state as a **Service Object** (injectable during runtime).
69 *
70 * This object contains globals such as the current state and current parameter values.
71 */
72var $uiRouterGlobals;
73/**
74 * The UI-Router instance
75 *
76 * The [[UIRouter]] singleton (the router instance) as a **Service Object** (injectable during runtime).
77 *
78 * This object is the UI-Router singleton instance, created by angular dependency injection during application bootstrap.
79 * It has references to the other UI-Router services
80 *
81 * #### Note: This object is also exposed as [[$uiRouterProvider]] for injection during angular config time.
82 */
83var $uiRouter;
84/**
85 * The UI-Router instance
86 *
87 * The [[UIRouter]] singleton (the router instance) as a **Provider Object** (injectable during config phase).
88 *
89 * This object is the UI-Router singleton instance, created by angular dependency injection during application bootstrap.
90 * It has references to the other UI-Router services
91 *
92 * #### Note: This object is also exposed as [[$uiRouter]] for injection during runtime.
93 */
94var $uiRouterProvider;
95/**
96 * Transition debug/tracing
97 *
98 * The [[Trace]] singleton as a **Service Object** (injectable during runtime).
99 *
100 * Enables or disables Transition tracing which can help to debug issues.
101 */
102var $trace;
103/**
104 * The Transition Service
105 *
106 * The [[TransitionService]] singleton as a **Service Object** (injectable during runtime).
107 *
108 * This angular service exposes the [[TransitionService]] singleton, which is primarily
109 * used to register global transition hooks.
110 *
111 * #### Note: This object is also exposed as [[$transitionsProvider]] for injection during the config phase.
112 */
113var $transitions;
114/**
115 * The Transition Service
116 *
117 * The [[TransitionService]] singleton as a **Provider Object** (injectable during config phase)
118 *
119 * This angular service exposes the [[TransitionService]] singleton, which is primarily
120 * used to register global transition hooks.
121 *
122 * #### Note: This object is also exposed as [[$transitions]] for injection during runtime.
123 */
124var $transitionsProvider;
125/**
126 * The current [[Transition]] object
127 *
128 * The current [[Transition]] object as a **Per-Transition Object** (injectable into Resolve, Hooks, Controllers)
129 *
130 * This object returns information about the current transition, including:
131 *
132 * - To/from states
133 * - To/from parameters
134 * - Transition options
135 * - States being entered, exited, and retained
136 * - Resolve data
137 * - A Promise for the transition
138 * - Any transition failure information
139 * - An injector for both Service and Per-Transition Objects
140 */
141var $transition$;
142/**
143 * The State Service
144 *
145 * The [[StateService]] singleton as a **Service Object** (injectable during runtime).
146 *
147 * This service used to manage and query information on registered states.
148 * It exposes state related APIs including:
149 *
150 * - Start a [[Transition]]
151 * - Imperatively lazy load states
152 * - Check if a state is currently active
153 * - Look up states by name
154 * - Build URLs for a state+parameters
155 * - Configure the global Transition error handler
156 *
157 * This angular service exposes the [[StateService]] singleton.
158 */
159var $state;
160/**
161 * The State Registry
162 *
163 * The [[StateRegistry]] singleton as a **Service Object** (injectable during runtime).
164 *
165 * This service is used to register/deregister states.
166 * It has state registration related APIs including:
167 *
168 * - Register/deregister states
169 * - Listen for state registration/deregistration
170 * - Get states by name
171 * - Add state decorators (to customize the state creation process)
172 *
173 * #### Note: This object is also exposed as [[$stateRegistryProvider]] for injection during the config phase.
174 */
175var $stateRegistry;
176/**
177 * The State Registry
178 *
179 * The [[StateRegistry]] singleton as a **Provider Object** (injectable during config time).
180 *
181 * This service is used to register/deregister states.
182 * It has state registration related APIs including:
183 *
184 * - Register/deregister states
185 * - Listen for state registration/deregistration
186 * - Get states by name
187 * - Add state decorators (to customize the state creation process)
188 *
189 * #### Note: This object is also exposed as [[$stateRegistry]] for injection during runtime.
190 */
191var $stateRegistryProvider;
192/**
193 * The View Scroll provider
194 *
195 * The [[UIViewScrollProvider]] as a **Provider Object** (injectable during config time).
196 *
197 * This angular service exposes the [[UIViewScrollProvider]] singleton and is
198 * used to disable UI-Router's scroll behavior.
199 */
200var $uiViewScrollProvider;
201/**
202 * The View Scroll function
203 *
204 * The View Scroll function as a **Service Object** (injectable during runtime).
205 *
206 * This is a function that scrolls an element into view.
207 * The element is scrolled after a `$timeout` so the DOM has time to refresh.
208 *
209 * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor,
210 * this can be enabled by calling [[UIViewScrollProvider.useAnchorScroll]].
211 *
212 * Note: this function is used by the [[directives.uiView]] when the `autoscroll` expression evaluates to true.
213 */
214var $uiViewScroll;
215/**
216 * The StateProvider
217 *
218 * An angular1-only [[StateProvider]] as a **Provider Object** (injectable during config time).
219 *
220 * This angular service exposes the [[StateProvider]] singleton.
221 *
222 * The `StateProvider` is primarily used to register states or add custom state decorators.
223 *
224 * ##### Note: This provider is a ng1 vestige.
225 * It is a passthrough to [[$stateRegistry]] and [[$state]].
226 */
227var $stateProvider;
228/**
229 * The URL Service Provider
230 *
231 * The [[UrlService]] singleton as a **Provider Object** (injectable during the angular config phase).
232 *
233 * A service used to configure and interact with the URL.
234 * It has URL related APIs including:
235 *
236 * - register custom Parameter types `UrlService.config.type` ([[UrlConfigApi.type]])
237 * - add URL rules: `UrlService.rules.when` ([[UrlRulesApi.when]])
238 * - configure behavior when no url matches: `UrlService.rules.otherwise` ([[UrlRulesApi.otherwise]])
239 * - delay initial URL synchronization [[UrlService.deferIntercept]].
240 * - get or set the current url: [[UrlService.url]]
241 *
242 * ##### Note: This service can also be injected during runtime as [[$urlService]].
243 */
244var $urlServiceProvider;
245/**
246 * The URL Service
247 *
248 * The [[UrlService]] singleton as a **Service Object** (injectable during runtime).
249 *
250 * Note: This service can also be injected during the config phase as [[$urlServiceProvider]].
251 *
252 * Used to configure the URL.
253 * It has URL related APIs including:
254 *
255 * - register custom Parameter types `UrlService.config.type` ([[UrlConfigApi.type]])
256 * - add URL rules: `UrlService.rules.when` ([[UrlRulesApi.when]])
257 * - configure behavior when no url matches: `UrlService.rules.otherwise` ([[UrlRulesApi.otherwise]])
258 * - delay initial URL synchronization [[UrlService.deferIntercept]].
259 * - get or set the current url: [[UrlService.url]]
260 *
261 * ##### Note: This service can also be injected during the config phase as [[$urlServiceProvider]].
262 */
263var $urlService;
264/**
265 * The URL Router Provider
266 *
267 * ### Deprecation warning: This object is now considered internal. Use [[$urlServiceProvider]] instead.
268 *
269 * The [[UrlRouter]] singleton as a **Provider Object** (injectable during config time).
270 *
271 * #### Note: This object is also exposed as [[$urlRouter]] for injection during runtime.
272 *
273 * @deprecated
274 */
275var $urlRouterProvider;
276/**
277 * The Url Router
278 *
279 * ### Deprecation warning: This object is now considered internal. Use [[$urlService]] instead.
280 *
281 * The [[UrlRouter]] singleton as a **Service Object** (injectable during runtime).
282 *
283 * #### Note: This object is also exposed as [[$urlRouterProvider]] for injection during angular config time.
284 *
285 * @deprecated
286 */
287var $urlRouter;
288/**
289 * The URL Matcher Factory
290 *
291 * ### Deprecation warning: This object is now considered internal. Use [[$urlService]] instead.
292 *
293 * The [[UrlMatcherFactory]] singleton as a **Service Object** (injectable during runtime).
294 *
295 * This service is used to set url mapping options, define custom parameter types, and create [[UrlMatcher]] objects.
296 *
297 * #### Note: This object is also exposed as [[$urlMatcherFactoryProvider]] for injection during angular config time.
298 *
299 * @deprecated
300 */
301var $urlMatcherFactory;
302/**
303 * The URL Matcher Factory
304 *
305 * ### Deprecation warning: This object is now considered internal. Use [[$urlService]] instead.
306 *
307 * The [[UrlMatcherFactory]] singleton as a **Provider Object** (injectable during config time).
308 *
309 * This service is used to set url mapping options, define custom parameter types, and create [[UrlMatcher]] objects.
310 *
311 * #### Note: This object is also exposed as [[$urlMatcherFactory]] for injection during runtime.
312 *
313 * @deprecated
314 */
315var $urlMatcherFactoryProvider;
316//# sourceMappingURL=injectables.js.map
\No newline at end of file