@angular-wave/angular.ts 0.7.0-beta.0 → 0.7.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (881) hide show
  1. package/.husky/pre-commit +2 -0
  2. package/@types/animations/animate-children-directive.d.ts +4 -2
  3. package/@types/animations/animate-swap.d.ts +2 -2
  4. package/@types/animations/animate.d.ts +1 -1
  5. package/@types/animations/interface.d.ts +17 -0
  6. package/@types/animations/raf-scheduler.d.ts +29 -16
  7. package/@types/core/compile/attributes.d.ts +1 -1
  8. package/@types/core/compile/compile.d.ts +22 -15
  9. package/@types/core/controller/controller.d.ts +1 -1
  10. package/@types/core/di/internal-injector.d.ts +10 -6
  11. package/@types/core/di/ng-module.d.ts +3 -3
  12. package/@types/core/error-handler.d.ts +7 -0
  13. package/@types/core/exception-handler.d.ts +5 -10
  14. package/@types/core/filter/filter.d.ts +20 -4
  15. package/@types/core/interpolate/interpolate.d.ts +3 -3
  16. package/@types/core/location/location.d.ts +1 -1
  17. package/@types/core/parse/interface.d.ts +79 -0
  18. package/@types/core/parse/interpreter.d.ts +19 -8
  19. package/@types/core/parse/parse.d.ts +2 -94
  20. package/@types/core/parse/parser/parser.d.ts +2 -2
  21. package/@types/core/sanitize/interface.d.ts +10 -0
  22. package/@types/core/sanitize/sanitize-uri.d.ts +31 -44
  23. package/@types/core/sce/sce.d.ts +109 -32
  24. package/@types/core/scope/scope.d.ts +3 -3
  25. package/@types/directive/bind/bind.d.ts +6 -6
  26. package/@types/directive/channel/channel.d.ts +2 -2
  27. package/@types/directive/class/class.d.ts +3 -3
  28. package/@types/directive/cloak/cloak.d.ts +2 -2
  29. package/@types/directive/controller/controller.d.ts +2 -2
  30. package/@types/directive/events/events.d.ts +4 -4
  31. package/@types/directive/form/form.d.ts +1 -1
  32. package/@types/directive/if/if.d.ts +2 -2
  33. package/@types/directive/include/include.d.ts +2 -2
  34. package/@types/directive/init/init.d.ts +2 -2
  35. package/@types/directive/input/input.d.ts +4 -4
  36. package/@types/directive/model/model.d.ts +10 -10
  37. package/@types/directive/model-options/model-options.d.ts +1 -1
  38. package/@types/directive/non-bindable/non-bindable.d.ts +2 -2
  39. package/@types/directive/observe/observe.d.ts +2 -2
  40. package/@types/directive/options/options.d.ts +1 -1
  41. package/@types/directive/repeat/repeat.d.ts +2 -2
  42. package/@types/directive/script/script.d.ts +2 -2
  43. package/@types/directive/select/select.d.ts +2 -2
  44. package/@types/directive/setter/setter.d.ts +6 -3
  45. package/@types/directive/show-hide/show-hide.d.ts +4 -4
  46. package/@types/directive/style/style.d.ts +2 -2
  47. package/@types/directive/switch/switch.d.ts +6 -6
  48. package/@types/directive/transclude/transclude.d.ts +3 -1
  49. package/@types/directive/validators/validators.d.ts +14 -14
  50. package/@types/filters/filter.d.ts +2 -7
  51. package/@types/filters/filters.d.ts +2 -2
  52. package/@types/filters/limit-to.d.ts +2 -6
  53. package/@types/filters/order-by.d.ts +4 -3
  54. package/@types/interface.d.ts +302 -0
  55. package/@types/loader.d.ts +15 -18
  56. package/@types/public.d.ts +6 -7
  57. package/@types/router/common/glob.d.ts +25 -8
  58. package/@types/router/common/queue.d.ts +62 -13
  59. package/@types/router/common/trace.d.ts +8 -14
  60. package/@types/router/directives/state-directives.d.ts +11 -10
  61. package/@types/router/directives/view-directive.d.ts +3 -3
  62. package/@types/router/globals.d.ts +25 -7
  63. package/@types/router/params/interface.d.ts +606 -0
  64. package/@types/router/resolve/interface.d.ts +200 -0
  65. package/@types/router/state/interface.d.ts +983 -0
  66. package/@types/router/state/state-object.d.ts +13 -3
  67. package/@types/router/state/state-registry.d.ts +18 -4
  68. package/@types/router/state/state-service.d.ts +18 -10
  69. package/@types/router/state/views.d.ts +14 -8
  70. package/@types/router/state-filters.d.ts +8 -4
  71. package/@types/router/template-factory.d.ts +4 -4
  72. package/@types/router/transition/interface.d.ts +876 -11
  73. package/@types/router/transition/transition-service.d.ts +3 -3
  74. package/@types/router/transition/transition.d.ts +25 -15
  75. package/@types/router/view/interface.d.ts +44 -0
  76. package/@types/router/view/view.d.ts +17 -5
  77. package/@types/shared/interface.d.ts +6 -0
  78. package/@types/shared/utils.d.ts +18 -33
  79. package/CHANGELOG.md +38 -38
  80. package/CODE_OF_CONDUCT.md +1 -1
  81. package/CONTRIBUTING.md +9 -9
  82. package/DEVELOPERS.md +30 -30
  83. package/Makefile +1 -1
  84. package/README.md +20 -20
  85. package/RELEASE.md +3 -3
  86. package/SECURITY.md +1 -1
  87. package/TRIAGING.md +3 -3
  88. package/dist/angular-ts.esm.js +3853 -3514
  89. package/dist/angular-ts.umd.js +3854 -3514
  90. package/dist/angular-ts.umd.min.js +1 -1
  91. package/index.html +2 -11
  92. package/package.json +3 -3
  93. package/src/angular.spec.js +1 -99
  94. package/src/animations/animate-children-directive.js +2 -2
  95. package/src/animations/animate-css.md +1 -1
  96. package/src/animations/animate-queue.js +1 -1
  97. package/src/animations/animate-swap.js +20 -17
  98. package/src/animations/animate.js +1 -1
  99. package/src/animations/animate.md +8 -8
  100. package/src/animations/animation.js +1 -0
  101. package/src/animations/interface.ts +19 -0
  102. package/src/animations/raf-scheduler.js +70 -54
  103. package/src/animations/raf-scheduler.spec.js +6 -0
  104. package/src/core/compile/attributes.js +13 -15
  105. package/src/core/compile/compile.js +2737 -2631
  106. package/src/core/compile/compile.md +13 -13
  107. package/src/core/compile/compile.spec.js +8 -108
  108. package/src/core/controller/controller.js +1 -1
  109. package/src/core/di/injector.js +34 -6
  110. package/src/core/di/injector.md +6 -6
  111. package/src/core/di/internal-injector.js +19 -21
  112. package/src/core/di/ng-module.js +4 -3
  113. package/src/core/error-handler.ts +7 -0
  114. package/src/core/exception-handler.js +4 -9
  115. package/src/core/filter/filter.js +12 -3
  116. package/src/core/filter/filter.md +5 -5
  117. package/src/core/interpolate/interpolate.js +6 -6
  118. package/src/core/interpolate/interpolate.spec.js +1 -1
  119. package/src/core/location/location.js +3 -3
  120. package/src/core/parse/ast/ast.js +2 -2
  121. package/src/core/parse/interface.ts +84 -0
  122. package/src/core/parse/interpreter.js +33 -28
  123. package/src/core/parse/parse.js +8 -55
  124. package/src/core/parse/parse.md +6 -6
  125. package/src/core/parse/parser/parser.js +1 -1
  126. package/src/core/sanitize/interface.ts +10 -0
  127. package/src/core/sanitize/sanitize-uri.js +46 -56
  128. package/src/core/sanitize/sanitize-uri.spec.js +1 -1
  129. package/src/core/sce/sce.js +378 -301
  130. package/src/core/sce/sce.md +13 -13
  131. package/src/core/scope/scope.js +8 -6
  132. package/src/directive/aria/aria.js +9 -11
  133. package/src/directive/attrs/attrs.md +7 -7
  134. package/src/directive/bind/bind.js +5 -5
  135. package/src/directive/bind/bind.md +3 -3
  136. package/src/directive/channel/channel.js +1 -1
  137. package/src/directive/class/class.js +1 -1
  138. package/src/directive/cloak/cloak.js +1 -1
  139. package/src/directive/cloak/cloak.md +1 -1
  140. package/src/directive/controller/controller.js +1 -1
  141. package/src/directive/controller/controller.md +2 -2
  142. package/src/directive/events/events.js +3 -3
  143. package/src/directive/events/events.md +2 -2
  144. package/src/directive/form/form.js +5 -5
  145. package/src/directive/if/if.js +1 -1
  146. package/src/directive/include/include.js +1 -1
  147. package/src/directive/include/include.md +2 -2
  148. package/src/directive/init/init.js +1 -1
  149. package/src/directive/input/input.js +7 -7
  150. package/src/directive/input/input.md +54 -54
  151. package/src/directive/messages/messages.js +2 -2
  152. package/src/directive/messages/messages.md +2 -2
  153. package/src/directive/model/model.js +3 -3
  154. package/src/directive/model-options/model-options.js +3 -3
  155. package/src/directive/model-options/model-options.md +1 -1
  156. package/src/directive/non-bindable/non-bindable.js +1 -1
  157. package/src/directive/non-bindable/non-bindable.md +1 -1
  158. package/src/directive/observe/observe.js +1 -1
  159. package/src/directive/options/options.js +3 -5
  160. package/src/directive/options/options.md +1 -1
  161. package/src/directive/ref/ref.js +9 -4
  162. package/src/directive/repeat/repeat.js +7 -8
  163. package/src/directive/repeat/repeat.md +3 -3
  164. package/src/directive/script/script.js +3 -3
  165. package/src/directive/select/select.js +2 -2
  166. package/src/directive/select/select.md +3 -3
  167. package/src/directive/setter/setter.js +8 -6
  168. package/src/directive/show-hide/show-hide.js +2 -2
  169. package/src/directive/show-hide/show-hide.md +4 -4
  170. package/src/directive/style/style.js +2 -2
  171. package/src/directive/switch/switch.js +6 -6
  172. package/src/directive/transclude/transclude.js +2 -2
  173. package/src/directive/validators/validators.js +37 -36
  174. package/src/filters/filter.js +1 -1
  175. package/src/filters/filters.js +1 -1
  176. package/src/filters/limit-to.js +1 -1
  177. package/src/filters/order-by.js +3 -0
  178. package/src/filters/order-by.md +1 -1
  179. package/src/interface.ts +329 -0
  180. package/src/loader.js +20 -19
  181. package/src/loader.md +7 -7
  182. package/src/public.js +5 -7
  183. package/src/router/common/{glob.html → common.html} +1 -0
  184. package/src/router/common/{glob.test.js → common.test.js} +1 -1
  185. package/src/router/common/glob.js +29 -7
  186. package/src/router/common/glob.spec.js +31 -1
  187. package/src/router/common/queue.js +69 -14
  188. package/src/router/common/queue.spec.js +80 -0
  189. package/src/router/common/trace.js +21 -15
  190. package/src/router/directives/component-example.html +37 -0
  191. package/src/router/directives/state-directives.js +13 -12
  192. package/src/router/directives/state-directives.spec.js +51 -46
  193. package/src/router/directives/view-directive.js +6 -6
  194. package/src/router/directives/view-directive.spec.js +1 -1
  195. package/src/router/globals.js +24 -5
  196. package/src/router/hooks/update-globals.js +2 -0
  197. package/src/router/params/interface.ts +626 -0
  198. package/src/router/params/param-types.js +2 -2
  199. package/src/router/resolve/interface.ts +208 -0
  200. package/src/router/resolve/resolvable.js +2 -2
  201. package/src/router/state/interface.ts +1007 -0
  202. package/src/router/state/state-builder.js +2 -2
  203. package/src/router/state/state-object.js +19 -5
  204. package/src/router/state/state-queue-manager.js +3 -5
  205. package/src/router/state/state-registry.js +14 -3
  206. package/src/router/state/state-service.js +14 -8
  207. package/src/router/state/views.js +9 -4
  208. package/src/router/state-filters.js +6 -0
  209. package/src/router/template-factory.js +2 -2
  210. package/src/router/transition/interface.ts +922 -0
  211. package/src/router/transition/transition-service.js +1 -1
  212. package/src/router/transition/transition.js +17 -7
  213. package/src/router/url/url-matcher.js +2 -2
  214. package/src/router/view/interface.ts +51 -0
  215. package/src/router/view/view.js +17 -10
  216. package/src/router/view/view.spec.js +2 -2
  217. package/src/services/http/http.md +8 -8
  218. package/src/services/log.md +1 -1
  219. package/src/services/template-request.js +1 -1
  220. package/src/shared/dom.js +2 -2
  221. package/src/shared/interface.ts +6 -0
  222. package/src/shared/utils.js +22 -37
  223. package/tsconfig.json +2 -1
  224. package/tsconfig.types.json +1 -0
  225. package/typedoc/assets/hierarchy.js +1 -1
  226. package/typedoc/assets/navigation.js +1 -1
  227. package/typedoc/assets/search.js +1 -1
  228. package/typedoc/classes/animations_animate-cache.AnimateCacheProvider.html +6 -6
  229. package/typedoc/classes/animations_animate-css-driver.AnimateCssDriverProvider.html +10 -10
  230. package/typedoc/classes/animations_animate-css.AnimateCssProvider.html +10 -10
  231. package/typedoc/classes/animations_animate-js-driver.AnimateJsDriverProvider.html +10 -10
  232. package/typedoc/classes/animations_animate-js.AnimateJsProvider.html +10 -10
  233. package/typedoc/classes/animations_animate-queue.AnimateQueueProvider.html +12 -12
  234. package/typedoc/classes/animations_animate-runner.AnimateAsyncRunFactoryProvider.html +6 -6
  235. package/typedoc/classes/animations_animate-runner.AnimateRunner.html +48 -48
  236. package/typedoc/classes/animations_animate-runner.AnimateRunnerFactoryProvider.html +6 -6
  237. package/typedoc/classes/animations_animate.AnimateProvider.html +18 -18
  238. package/typedoc/classes/animations_animation.AnimationProvider.html +12 -12
  239. package/typedoc/classes/animations_raf-scheduler.RafSchedulerProvider.html +323 -52
  240. package/typedoc/classes/core_cache_cache-factory.TemplateCacheProvider.html +4 -4
  241. package/typedoc/classes/core_compile_attributes.Attributes.html +43 -43
  242. package/typedoc/classes/core_compile_compile.CompileProvider.html +51 -43
  243. package/typedoc/classes/core_controller_controller.ControllerProvider.html +13 -13
  244. package/typedoc/classes/core_di_internal-injector.InjectorService.html +34 -32
  245. package/typedoc/classes/core_di_internal-injector.ProviderInjector.html +25 -25
  246. package/typedoc/classes/core_di_ng-module.NgModule.html +50 -50
  247. package/typedoc/classes/core_exception-handler.ExceptionHandlerProvider.html +17 -17
  248. package/typedoc/classes/core_filter_filter.FilterProvider.html +156 -21
  249. package/typedoc/classes/core_interpolate_interpolate.InterpolateProvider.html +22 -22
  250. package/typedoc/classes/core_location_location.Location.html +76 -76
  251. package/typedoc/classes/core_location_location.LocationHashbangUrl.html +78 -78
  252. package/typedoc/classes/core_location_location.LocationHtml5Url.html +78 -78
  253. package/typedoc/classes/core_location_location.LocationProvider.html +20 -20
  254. package/typedoc/classes/core_parse_ast_ast.AST.html +64 -64
  255. package/typedoc/classes/core_parse_interpreter.ASTInterpreter.html +112 -78
  256. package/typedoc/classes/core_parse_lexer_lexer.Lexer.html +42 -42
  257. package/typedoc/classes/core_parse_parse.ParseProvider.html +13 -14
  258. package/typedoc/classes/core_parse_parser_parser.Parser.html +14 -14
  259. package/typedoc/classes/core_pubsub_pubsub.PubSub.html +26 -26
  260. package/typedoc/classes/core_sanitize_sanitize-uri.SanitizeUriProvider.html +205 -319
  261. package/typedoc/classes/core_sce_sce.SceDelegateProvider.html +18 -85
  262. package/typedoc/classes/core_sce_sce.SceProvider.html +8 -8
  263. package/typedoc/classes/core_scope_scope.RootScopeProvider.html +10 -10
  264. package/typedoc/classes/core_scope_scope.Scope.html +110 -193
  265. package/typedoc/classes/core_task-tracker-factory.TaskTracker.html +14 -14
  266. package/typedoc/classes/core_task-tracker-factory.TaskTrackerFactoryProvider.html +4 -4
  267. package/typedoc/classes/directive_aria_aria.AriaProvider.html +8 -8
  268. package/typedoc/classes/directive_form_form.FormController.html +85 -85
  269. package/typedoc/classes/directive_model_model.NgModelController.html +213 -213
  270. package/typedoc/classes/loader.Angular.html +58 -62
  271. package/typedoc/classes/router_common_glob.Glob.html +208 -101
  272. package/typedoc/classes/router_common_queue.Queue.html +279 -68
  273. package/typedoc/classes/router_common_trace.Trace.html +44 -44
  274. package/typedoc/classes/router_globals.RouterGlobals.html +937 -0
  275. package/typedoc/classes/router_params_param-factory.ParamFactory.html +12 -12
  276. package/typedoc/classes/router_params_param-type.ParamType.html +26 -26
  277. package/typedoc/classes/router_params_param-types.ParamTypes.html +16 -16
  278. package/typedoc/classes/router_params_param.Param.html +46 -46
  279. package/typedoc/classes/router_params_state-params.StateParams.html +6 -6
  280. package/typedoc/classes/router_path_path-node.PathNode.html +34 -34
  281. package/typedoc/classes/router_path_path-utils.PathUtils.html +22 -22
  282. package/typedoc/classes/router_resolve_resolvable.Resolvable.html +54 -54
  283. package/typedoc/classes/router_resolve_resolve-context.ResolveContext.html +26 -26
  284. package/typedoc/classes/router_state-provider.StateProvider.html +14 -14
  285. package/typedoc/classes/router_state_state-builder.StateBuilder.html +18 -18
  286. package/typedoc/classes/router_state_state-matcher.StateMatcher.html +12 -12
  287. package/typedoc/classes/router_state_state-object.StateObject.html +202 -45
  288. package/typedoc/classes/router_state_state-queue-manager.StateQueueManager.html +22 -22
  289. package/typedoc/classes/router_state_state-registry.StateRegistryProvider.html +76 -133
  290. package/typedoc/classes/router_state_state-service.StateProvider.html +120 -72
  291. package/typedoc/classes/router_state_target-state.TargetState.html +46 -46
  292. package/typedoc/classes/{router_state_views.Ng1ViewConfig.html → router_state_views.ViewConfig.html} +83 -51
  293. package/typedoc/classes/router_template-factory.TemplateFactoryProvider.html +36 -62
  294. package/typedoc/classes/router_transition_hook-builder.HookBuilder.html +21 -14
  295. package/typedoc/classes/router_transition_hook-registry.RegisteredHook.html +36 -36
  296. package/typedoc/classes/router_transition_reject-factory.Rejection.html +32 -32
  297. package/typedoc/classes/router_transition_transition-event-type.TransitionEventType.html +20 -20
  298. package/typedoc/classes/router_transition_transition-hook.TransitionHook.html +54 -54
  299. package/typedoc/classes/router_transition_transition-service.TransitionProvider.html +48 -48
  300. package/typedoc/classes/router_transition_transition.Transition.html +597 -145
  301. package/typedoc/classes/router_url_url-config.UrlConfigProvider.html +28 -28
  302. package/typedoc/classes/router_url_url-matcher.UrlMatcher.html +50 -50
  303. package/typedoc/classes/router_url_url-rule.BaseUrlRule.html +16 -16
  304. package/typedoc/classes/router_url_url-rule.UrlRuleFactory.html +22 -22
  305. package/typedoc/classes/router_url_url-rules.UrlRules.html +42 -42
  306. package/typedoc/classes/router_url_url-service.UrlService.html +68 -68
  307. package/typedoc/classes/router_view-scroll.ViewScrollProvider.html +12 -12
  308. package/typedoc/classes/router_view_view.ViewService.html +228 -212
  309. package/typedoc/classes/services_anchor-scroll.AnchorScrollProvider.html +12 -12
  310. package/typedoc/classes/services_browser.Browser.html +54 -54
  311. package/typedoc/classes/services_browser.BrowserProvider.html +4 -4
  312. package/typedoc/classes/services_http-backend_http-backend.HttpBackendProvider.html +6 -6
  313. package/typedoc/classes/services_http_http.HttpParamSerializerProvider.html +6 -6
  314. package/typedoc/classes/services_http_http.HttpProvider.html +14 -14
  315. package/typedoc/classes/services_log.LogProvider.html +16 -16
  316. package/typedoc/classes/services_template-request.TemplateRequestProvider.html +12 -12
  317. package/typedoc/classes/shared_noderef.NodeRef.html +60 -60
  318. package/typedoc/enums/core_parse_ast-type.ASTType.html +38 -38
  319. package/typedoc/enums/router_common_trace.Category.html +568 -0
  320. package/typedoc/enums/router_transition_interface.TransitionHookPhase.html +18 -33
  321. package/typedoc/{interfaces/types.ServiceProviderClass.html → enums/router_transition_interface.TransitionHookScope.html} +75 -44
  322. package/typedoc/enums/router_transition_reject-factory.RejectType.html +14 -14
  323. package/typedoc/functions/animations_animate-cache.animateCache.html +14 -14
  324. package/typedoc/functions/animations_animate-children-directive.__AnimateChildrenDirective.html +6 -6
  325. package/typedoc/functions/animations_animate-swap.ngAnimateSwapDirective.html +6 -6
  326. package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +2 -2
  327. package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +2 -2
  328. package/typedoc/functions/animations_shared.applyAnimationStyles.html +2 -2
  329. package/typedoc/functions/animations_shared.applyAnimationToStyles.html +2 -2
  330. package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +2 -2
  331. package/typedoc/functions/animations_shared.applyInlineStyle.html +2 -2
  332. package/typedoc/functions/animations_shared.assertArg.html +2 -2
  333. package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +2 -2
  334. package/typedoc/functions/animations_shared.clearGeneratedClasses.html +2 -2
  335. package/typedoc/functions/animations_shared.concatWithSpace.html +2 -2
  336. package/typedoc/functions/animations_shared.extractElementNode.html +2 -2
  337. package/typedoc/functions/animations_shared.mergeAnimationDetails.html +2 -2
  338. package/typedoc/functions/animations_shared.mergeClasses.html +2 -2
  339. package/typedoc/functions/animations_shared.packageStyles.html +2 -2
  340. package/typedoc/functions/animations_shared.pendClasses.html +2 -2
  341. package/typedoc/functions/animations_shared.prepareAnimationOptions.html +2 -2
  342. package/typedoc/functions/animations_shared.removeFromArray.html +2 -2
  343. package/typedoc/functions/animations_shared.resolveElementClasses.html +2 -2
  344. package/typedoc/functions/animations_shared.stripCommentsFromElement.html +2 -2
  345. package/typedoc/functions/core_controller_controller.identifierForController.html +2 -2
  346. package/typedoc/functions/core_di_injector.annotate.html +2 -2
  347. package/typedoc/functions/core_di_injector.createInjector.html +2 -2
  348. package/typedoc/functions/core_location_location.serverBase.html +2 -2
  349. package/typedoc/functions/core_location_location.stripBaseUrl.html +2 -2
  350. package/typedoc/functions/core_location_location.stripFile.html +2 -2
  351. package/typedoc/functions/core_location_location.stripHash.html +2 -2
  352. package/typedoc/functions/core_parse_interpreter.isAssignable.html +2 -2
  353. package/typedoc/functions/core_parse_parse.constantWatchDelegate.html +2 -2
  354. package/typedoc/functions/core_sce_sce.adjustMatcher.html +2 -2
  355. package/typedoc/functions/core_sce_sce.escapeForRegexp.html +2 -2
  356. package/typedoc/functions/core_scope_scope.createScope.html +2 -2
  357. package/typedoc/functions/core_scope_scope.nextId.html +2 -2
  358. package/typedoc/functions/core_url-utils_url-utils.getBaseUrl.html +2 -2
  359. package/typedoc/functions/core_url-utils_url-utils.urlIsAllowedOriginFactory.html +2 -2
  360. package/typedoc/functions/core_url-utils_url-utils.urlIsSameOrigin.html +2 -2
  361. package/typedoc/functions/core_url-utils_url-utils.urlIsSameOriginAsBaseUrl.html +2 -2
  362. package/typedoc/functions/core_url-utils_url-utils.urlResolve.html +2 -2
  363. package/typedoc/functions/core_url-utils_url-utils.urlsAreSameOrigin.html +2 -2
  364. package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +4 -4
  365. package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +4 -4
  366. package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +4 -4
  367. package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +4 -4
  368. package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +4 -4
  369. package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +2 -2
  370. package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +4 -4
  371. package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +4 -4
  372. package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +4 -4
  373. package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +4 -4
  374. package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +4 -4
  375. package/typedoc/functions/directive_bind_bind.ngBindDirective.html +4 -4
  376. package/typedoc/functions/directive_bind_bind.ngBindHtmlDirective.html +6 -6
  377. package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +4 -4
  378. package/typedoc/functions/directive_channel_channel.ngChannelDirective.html +4 -4
  379. package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +4 -4
  380. package/typedoc/functions/directive_controller_controller.ngControllerDirective.html +4 -4
  381. package/typedoc/functions/directive_events_events.createEventDirective.html +8 -8
  382. package/typedoc/functions/directive_form_form.setupValidity.html +2 -2
  383. package/typedoc/functions/directive_if_if.ngIfDirective.html +6 -6
  384. package/typedoc/functions/directive_include_include.ngIncludeDirective.html +4 -4
  385. package/typedoc/functions/directive_include_include.ngIncludeFillContentDirective.html +6 -6
  386. package/typedoc/functions/directive_init_init.ngInitDirective.html +4 -4
  387. package/typedoc/functions/directive_input_input.badInputChecker.html +2 -2
  388. package/typedoc/functions/directive_input_input.countDecimals.html +2 -2
  389. package/typedoc/functions/directive_input_input.createDateInputType.html +2 -2
  390. package/typedoc/functions/directive_input_input.createDateParser.html +2 -2
  391. package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +4 -4
  392. package/typedoc/functions/directive_input_input.inputDirective.html +4 -4
  393. package/typedoc/functions/directive_input_input.isNumberInteger.html +2 -2
  394. package/typedoc/functions/directive_input_input.isValidForStep.html +2 -2
  395. package/typedoc/functions/directive_input_input.ngValueDirective.html +4 -4
  396. package/typedoc/functions/directive_input_input.numberFormatterParser.html +2 -2
  397. package/typedoc/functions/directive_input_input.numberInputType.html +2 -2
  398. package/typedoc/functions/directive_input_input.rangeInputType.html +2 -2
  399. package/typedoc/functions/directive_input_input.weekParser.html +2 -2
  400. package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +4 -4
  401. package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +4 -4
  402. package/typedoc/functions/directive_model-options_model-options.ngModelOptionsDirective.html +4 -4
  403. package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -2
  404. package/typedoc/functions/directive_non-bindable_non-bindable.ngNonBindableDirective.html +4 -4
  405. package/typedoc/functions/directive_observe_observe.ngObserveDirective.html +4 -4
  406. package/typedoc/functions/directive_ref_ref.ngRefDirective.html +4 -4
  407. package/typedoc/functions/directive_repeat_repeat.ngRepeatDirective.html +6 -6
  408. package/typedoc/functions/directive_script_script.scriptDirective.html +6 -6
  409. package/typedoc/functions/directive_select_select.optionDirective.html +4 -4
  410. package/typedoc/functions/directive_select_select.selectDirective.html +4 -4
  411. package/typedoc/functions/directive_setter_setter.ngSetterDirective.html +34 -8
  412. package/typedoc/functions/directive_show-hide_show-hide.ngHideDirective.html +6 -6
  413. package/typedoc/functions/directive_show-hide_show-hide.ngShowDirective.html +6 -6
  414. package/typedoc/functions/directive_style_style.ngStyleDirective.html +4 -4
  415. package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +4 -4
  416. package/typedoc/functions/directive_switch_switch.ngSwitchDirective.html +6 -6
  417. package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +4 -4
  418. package/typedoc/functions/filters_filter.filterFilter.html +11 -76
  419. package/typedoc/functions/filters_filters.formatNumber.html +2 -2
  420. package/typedoc/functions/filters_filters.jsonFilter.html +12 -24
  421. package/typedoc/functions/filters_limit-to.limitToFilter.html +11 -90
  422. package/typedoc/functions/filters_order-by.orderByFilter.html +18 -55
  423. package/typedoc/functions/public.publishExternalAPI.html +8 -8
  424. package/typedoc/functions/router_common_glob.hasGlobs.html +306 -0
  425. package/typedoc/functions/router_directives_state-directives._StateRefActiveDirective.html +15 -8
  426. package/typedoc/functions/router_directives_state-directives._StateRefDirective.html +4 -4
  427. package/typedoc/functions/router_directives_state-directives._StateRefDynamicDirective.html +17 -77
  428. package/typedoc/functions/router_directives_view-directive._ViewDirectiveFill.html +4 -4
  429. package/typedoc/functions/router_hooks_core-resolvables.registerAddCoreResolvables.html +2 -2
  430. package/typedoc/functions/router_hooks_core-resolvables.treeChangesCleanup.html +2 -2
  431. package/typedoc/functions/router_hooks_ignored-transition.registerIgnoredTransitionHook.html +2 -2
  432. package/typedoc/functions/router_hooks_invalid-transition.registerInvalidTransitionHook.html +2 -2
  433. package/typedoc/functions/router_hooks_lazy-load.lazyLoadState.html +2 -2
  434. package/typedoc/functions/router_hooks_lazy-load.registerLazyLoadHook.html +2 -2
  435. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnEnterHook.html +2 -2
  436. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnExitHook.html +2 -2
  437. package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnRetainHook.html +2 -2
  438. package/typedoc/functions/router_hooks_redirect-to.registerRedirectToHook.html +2 -2
  439. package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +2 -2
  440. package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +2 -2
  441. package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +2 -2
  442. package/typedoc/functions/router_hooks_update-globals.registerUpdateGlobalState.html +2 -2
  443. package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +2 -2
  444. package/typedoc/functions/router_hooks_views.registerActivateViews.html +2 -2
  445. package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +2 -2
  446. package/typedoc/functions/router_path_path-utils.makeTargetState.html +2 -2
  447. package/typedoc/functions/router_state-filters._IncludedByStateFilter.html +18 -40
  448. package/typedoc/functions/router_state-filters._IsStateFilter.html +15 -34
  449. package/typedoc/functions/router_state_state-builder.resolvablesBuilder.html +2 -2
  450. package/typedoc/functions/router_state_state-registry.getLocals.html +2 -2
  451. package/typedoc/functions/{router_state_views.getNg1ViewConfigFactory.html → router_state_views.getViewConfigFactory.html} +13 -15
  452. package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +2 -2
  453. package/typedoc/functions/router_transition_hook-registry.makeEvent.html +2 -2
  454. package/typedoc/functions/router_transition_hook-registry.matchState.html +2 -2
  455. package/typedoc/functions/services_browser.trimEmptyHash.html +2 -2
  456. package/typedoc/functions/services_cookie-reader.getCookies.html +2 -2
  457. package/typedoc/functions/services_http-backend_http-backend.createHttpBackend.html +2 -2
  458. package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +2 -2
  459. package/typedoc/functions/shared_common._removeFrom.html +2 -2
  460. package/typedoc/functions/shared_common.allTrueR.html +2 -2
  461. package/typedoc/functions/shared_common.ancestors.html +2 -2
  462. package/typedoc/functions/shared_common.anyTrueR.html +2 -2
  463. package/typedoc/functions/shared_common.applyPairs.html +2 -2
  464. package/typedoc/functions/shared_common.arrayTuples.html +2 -2
  465. package/typedoc/functions/shared_common.assertFn.html +2 -2
  466. package/typedoc/functions/shared_common.copy.html +2 -2
  467. package/typedoc/functions/shared_common.createProxyFunctions.html +2 -2
  468. package/typedoc/functions/shared_common.defaults.html +2 -2
  469. package/typedoc/functions/shared_common.deregAll.html +2 -2
  470. package/typedoc/functions/shared_common.equals.html +2 -2
  471. package/typedoc/functions/shared_common.filter.html +2 -2
  472. package/typedoc/functions/shared_common.find.html +2 -2
  473. package/typedoc/functions/shared_common.flatten.html +2 -2
  474. package/typedoc/functions/shared_common.flattenR.html +2 -2
  475. package/typedoc/functions/shared_common.inherit.html +2 -2
  476. package/typedoc/functions/shared_common.map.html +2 -2
  477. package/typedoc/functions/shared_common.omit.html +2 -2
  478. package/typedoc/functions/shared_common.pairs.html +2 -2
  479. package/typedoc/functions/shared_common.pick.html +2 -2
  480. package/typedoc/functions/shared_common.pushR.html +2 -2
  481. package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +2 -2
  482. package/typedoc/functions/shared_common.silentRejection.html +2 -2
  483. package/typedoc/functions/shared_common.tail.html +2 -2
  484. package/typedoc/functions/shared_common.uniqR.html +2 -2
  485. package/typedoc/functions/shared_common.unnest.html +2 -2
  486. package/typedoc/functions/shared_common.unnestR.html +2 -2
  487. package/typedoc/functions/shared_dom.appendNodesToElement.html +2 -2
  488. package/typedoc/functions/shared_dom.buildFragment.html +2 -2
  489. package/typedoc/functions/shared_dom.cleanElementData.html +2 -2
  490. package/typedoc/functions/shared_dom.createElementFromHTML.html +2 -2
  491. package/typedoc/functions/shared_dom.createNodelistFromHTML.html +2 -2
  492. package/typedoc/functions/shared_dom.dealoc.html +2 -2
  493. package/typedoc/functions/shared_dom.deleteCacheData.html +2 -2
  494. package/typedoc/functions/shared_dom.domInsert.html +2 -2
  495. package/typedoc/functions/shared_dom.emptyElement.html +2 -2
  496. package/typedoc/functions/shared_dom.getBlockNodes.html +2 -2
  497. package/typedoc/functions/shared_dom.getBooleanAttrName.html +2 -2
  498. package/typedoc/functions/shared_dom.getCacheData.html +2 -2
  499. package/typedoc/functions/shared_dom.getController.html +2 -2
  500. package/typedoc/functions/shared_dom.getExpando.html +2 -2
  501. package/typedoc/functions/shared_dom.getInheritedData.html +2 -2
  502. package/typedoc/functions/shared_dom.getInjector.html +2 -2
  503. package/typedoc/functions/shared_dom.getIsolateScope.html +2 -2
  504. package/typedoc/functions/shared_dom.getOrSetCacheData.html +2 -2
  505. package/typedoc/functions/shared_dom.getScope.html +2 -2
  506. package/typedoc/functions/shared_dom.isRoot.html +2 -2
  507. package/typedoc/functions/shared_dom.isTextNode.html +2 -2
  508. package/typedoc/functions/shared_dom.kebabToCamel.html +2 -2
  509. package/typedoc/functions/shared_dom.parseHtml.html +2 -2
  510. package/typedoc/functions/shared_dom.removeElement.html +2 -2
  511. package/typedoc/functions/shared_dom.removeElementData.html +2 -2
  512. package/typedoc/functions/shared_dom.setCacheData.html +2 -2
  513. package/typedoc/functions/shared_dom.setInheritedData.html +2 -2
  514. package/typedoc/functions/shared_dom.setIsolateScope.html +2 -2
  515. package/typedoc/functions/shared_dom.setScope.html +2 -2
  516. package/typedoc/functions/shared_dom.snakeToCamel.html +2 -2
  517. package/typedoc/functions/shared_dom.startingTag.html +2 -2
  518. package/typedoc/functions/shared_hof.all.html +2 -2
  519. package/typedoc/functions/shared_hof.compose.html +2 -2
  520. package/typedoc/functions/shared_hof.curry.html +2 -2
  521. package/typedoc/functions/shared_hof.is.html +2 -2
  522. package/typedoc/functions/shared_hof.or.html +2 -2
  523. package/typedoc/functions/shared_hof.parse.html +2 -2
  524. package/typedoc/functions/shared_hof.pattern.html +2 -2
  525. package/typedoc/functions/shared_hof.pipe.html +2 -2
  526. package/typedoc/functions/shared_hof.val.html +2 -2
  527. package/typedoc/functions/shared_predicates.isInjectable.html +2 -2
  528. package/typedoc/functions/shared_predicates.isPromise.html +2 -2
  529. package/typedoc/functions/shared_strings.beforeAfterSubstr.html +2 -2
  530. package/typedoc/functions/shared_strings.fnToString.html +2 -2
  531. package/typedoc/functions/shared_strings.functionToString.html +2 -2
  532. package/typedoc/functions/shared_strings.joinNeighborsR.html +2 -2
  533. package/typedoc/functions/shared_strings.kebobString.html +2 -2
  534. package/typedoc/functions/shared_strings.maxLength.html +2 -2
  535. package/typedoc/functions/shared_strings.padString.html +2 -2
  536. package/typedoc/functions/shared_strings.splitOnDelim.html +2 -2
  537. package/typedoc/functions/shared_strings.stringify.html +2 -2
  538. package/typedoc/functions/shared_strings.stripLastPathElement.html +2 -2
  539. package/typedoc/functions/shared_strings.trimHashVal.html +2 -2
  540. package/typedoc/functions/shared_test-utils.bootstrap.html +2 -2
  541. package/typedoc/functions/shared_test-utils.browserTrigger.html +2 -2
  542. package/typedoc/functions/shared_test-utils.wait.html +2 -2
  543. package/typedoc/functions/shared_utils.addDateMinutes.html +2 -2
  544. package/typedoc/functions/shared_utils.arrayRemove.html +2 -2
  545. package/typedoc/functions/shared_utils.assert.html +2 -2
  546. package/typedoc/functions/shared_utils.assertArg.html +2 -2
  547. package/typedoc/functions/shared_utils.assertArgFn.html +2 -2
  548. package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +2 -2
  549. package/typedoc/functions/shared_utils.baseExtend.html +2 -2
  550. package/typedoc/functions/shared_utils.bind.html +2 -2
  551. package/typedoc/functions/shared_utils.concat.html +2 -2
  552. package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +2 -2
  553. package/typedoc/functions/shared_utils.csp.html +2 -2
  554. package/typedoc/functions/shared_utils.directiveNormalize.html +2 -2
  555. package/typedoc/functions/shared_utils.encodeUriQuery.html +2 -2
  556. package/typedoc/functions/shared_utils.encodeUriSegment.html +2 -2
  557. package/typedoc/functions/shared_utils.equals.html +2 -2
  558. package/typedoc/functions/shared_utils.errorHandlingConfig.html +2 -2
  559. package/typedoc/functions/shared_utils.extend.html +3 -3
  560. package/typedoc/functions/shared_utils.fromJson.html +2 -2
  561. package/typedoc/functions/shared_utils.getNgAttribute.html +2 -2
  562. package/typedoc/functions/shared_utils.getNodeName.html +2 -2
  563. package/typedoc/functions/shared_utils.hasAnimate.html +2 -2
  564. package/typedoc/functions/shared_utils.hasCustomToString.html +2 -2
  565. package/typedoc/functions/{shared_utils.merge.html → shared_utils.hasOwn.html} +44 -91
  566. package/typedoc/functions/shared_utils.hashKey.html +2 -2
  567. package/typedoc/functions/shared_utils.includes.html +2 -2
  568. package/typedoc/functions/shared_utils.inherit.html +2 -2
  569. package/typedoc/functions/shared_utils.isArrayBuffer.html +2 -2
  570. package/typedoc/functions/shared_utils.isArrayLike.html +2 -2
  571. package/typedoc/functions/shared_utils.isBlankObject.html +2 -2
  572. package/typedoc/functions/shared_utils.isBlob.html +2 -2
  573. package/typedoc/functions/shared_utils.isBoolean.html +2 -2
  574. package/typedoc/functions/shared_utils.isDate.html +2 -2
  575. package/typedoc/functions/shared_utils.isDefined.html +2 -2
  576. package/typedoc/functions/shared_utils.isElement.html +2 -2
  577. package/typedoc/functions/shared_utils.isError.html +2 -2
  578. package/typedoc/functions/shared_utils.isFile.html +2 -2
  579. package/typedoc/functions/shared_utils.isFormData.html +2 -2
  580. package/typedoc/functions/shared_utils.isFunction.html +2 -2
  581. package/typedoc/functions/shared_utils.isNull.html +2 -2
  582. package/typedoc/functions/shared_utils.isNullOrUndefined.html +2 -2
  583. package/typedoc/functions/shared_utils.isNumber.html +2 -2
  584. package/typedoc/functions/shared_utils.isNumberNaN.html +2 -2
  585. package/typedoc/functions/shared_utils.isObject.html +2 -2
  586. package/typedoc/functions/shared_utils.isObjectEmpty.html +2 -2
  587. package/typedoc/functions/shared_utils.isPromiseLike.html +2 -2
  588. package/typedoc/functions/shared_utils.isProxy.html +2 -2
  589. package/typedoc/functions/shared_utils.isRegExp.html +2 -2
  590. package/typedoc/functions/shared_utils.isScope.html +2 -2
  591. package/typedoc/functions/shared_utils.isString.html +2 -2
  592. package/typedoc/functions/shared_utils.isTypedArray.html +2 -2
  593. package/typedoc/functions/shared_utils.isUndefined.html +2 -2
  594. package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +2 -2
  595. package/typedoc/functions/shared_utils.isWindow.html +2 -2
  596. package/typedoc/functions/shared_utils.lowercase.html +2 -2
  597. package/typedoc/functions/shared_utils.mergeClasses.html +2 -2
  598. package/typedoc/functions/shared_utils.minErr.html +3 -3
  599. package/typedoc/functions/shared_utils.nextUid.html +2 -2
  600. package/typedoc/functions/shared_utils.parseKeyValue.html +2 -2
  601. package/typedoc/functions/shared_utils.replaceInline.html +2 -2
  602. package/typedoc/functions/shared_utils.setHashKey.html +2 -2
  603. package/typedoc/functions/shared_utils.shallowCopy.html +2 -2
  604. package/typedoc/functions/shared_utils.simpleCompare.html +2 -2
  605. package/typedoc/functions/shared_utils.sliceArgs.html +2 -2
  606. package/typedoc/functions/shared_utils.snakeCase.html +2 -2
  607. package/typedoc/functions/shared_utils.stringify.html +2 -2
  608. package/typedoc/functions/shared_utils.timezoneToOffset.html +2 -2
  609. package/typedoc/functions/shared_utils.toDebugString.html +2 -2
  610. package/typedoc/functions/shared_utils.toInt.html +2 -2
  611. package/typedoc/functions/shared_utils.toJson.html +3 -3
  612. package/typedoc/functions/shared_utils.toKeyValue.html +2 -2
  613. package/typedoc/functions/shared_utils.trim.html +2 -2
  614. package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +2 -2
  615. package/typedoc/functions/shared_utils.uppercase.html +2 -2
  616. package/typedoc/hierarchy.html +3 -3
  617. package/typedoc/index.html +24 -24
  618. package/typedoc/interfaces/animations_animate.AnimationOptions.html +10 -10
  619. package/typedoc/interfaces/{types.OnChangesObject.html → animations_raf-scheduler.ServiceProvider.html} +38 -35
  620. package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +8 -8
  621. package/typedoc/interfaces/core_compile_compile.LinkFnMapping.html +24 -24
  622. package/typedoc/interfaces/core_compile_compile.NodeLinkFnCtx.html +676 -0
  623. package/typedoc/interfaces/core_compile_compile.SimpleChange.html +6 -6
  624. package/typedoc/interfaces/core_location_location.DefaultPorts.html +8 -8
  625. package/typedoc/interfaces/core_location_location.Html5Mode.html +8 -8
  626. package/typedoc/interfaces/core_parse_ast_ast.Token.html +14 -14
  627. package/typedoc/interfaces/{core_parse_parse.CompiledExpressionHandlerMap.html → core_parse_interface.CompiledExpressionHandlerMap.html} +30 -14
  628. package/typedoc/interfaces/{core_parse_parse.CompiledExpressionProps.html → core_parse_interface.CompiledExpressionProps.html} +204 -50
  629. package/typedoc/interfaces/core_parse_lexer_lexer.LexerOptions.html +6 -6
  630. package/typedoc/interfaces/core_parse_parser_parser.ParsedAST.html +4 -4
  631. package/typedoc/interfaces/core_sanitize_interface.SanitizerFn.html +319 -0
  632. package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +8 -8
  633. package/typedoc/interfaces/core_scope_scope.Listener.html +20 -20
  634. package/typedoc/interfaces/directive_model-options_model-options.ModelOptionsConfig.html +12 -12
  635. package/typedoc/interfaces/{types.ChangesObject.html → interface.ChangesObject.html} +35 -71
  636. package/typedoc/interfaces/interface.ComponentOptions.html +803 -0
  637. package/typedoc/interfaces/{types.Controller.html → interface.Controller.html} +27 -58
  638. package/typedoc/interfaces/{types.Directive.html → interface.Directive.html} +200 -163
  639. package/typedoc/interfaces/{types.DirectivePrePost.html → interface.DirectivePrePost.html} +20 -19
  640. package/typedoc/interfaces/interface.NgModelController.html +1530 -0
  641. package/typedoc/interfaces/{types.NgModelOptions.html → interface.NgModelOptions.html} +44 -26
  642. package/typedoc/interfaces/interface.Provider.html +1136 -0
  643. package/typedoc/interfaces/interface.TranscludeFunctionObject.html +770 -0
  644. package/typedoc/interfaces/loader.AngularBootstrapConfig.html +4 -4
  645. package/typedoc/interfaces/router_params_interface.ParamDeclaration.html +1324 -0
  646. package/typedoc/interfaces/router_params_interface.ParamTypeDefinition.html +1375 -0
  647. package/typedoc/{types/animations_raf-scheduler.RafSchedulerFunction.html → interfaces/router_params_interface.RawParams.html} +56 -13
  648. package/typedoc/interfaces/router_params_interface.Replace.html +465 -0
  649. package/typedoc/interfaces/router_resolve_interface.CustomAsyncPolicy.html +305 -0
  650. package/typedoc/interfaces/router_resolve_interface.ProviderLike.html +660 -0
  651. package/typedoc/interfaces/router_resolve_interface.ResolvableLiteral.html +670 -0
  652. package/typedoc/interfaces/router_resolve_interface.ResolvePolicy.html +674 -0
  653. package/typedoc/interfaces/router_state_interface.HrefOptions.html +588 -0
  654. package/typedoc/interfaces/{types.Annotated.html → router_state_interface.LazyLoadResult.html} +45 -24
  655. package/typedoc/interfaces/router_state_interface.StateDeclaration.html +2662 -0
  656. package/typedoc/interfaces/router_state_interface.TargetStateDef.html +515 -0
  657. package/typedoc/interfaces/router_state_interface.TransitionPromise.html +1241 -0
  658. package/typedoc/interfaces/router_state_interface.ViewDeclaration.html +1678 -0
  659. package/typedoc/interfaces/router_template-factory.BindingTuple.html +6 -6
  660. package/typedoc/interfaces/router_transition_interface.HookMatchCriteria.html +788 -0
  661. package/typedoc/interfaces/router_transition_interface.HookRegOptions.html +529 -0
  662. package/typedoc/interfaces/router_transition_interface.IHookRegistry.html +3093 -0
  663. package/typedoc/interfaces/router_transition_interface.IMatchingNodes.html +663 -0
  664. package/typedoc/interfaces/{animations_raf-scheduler.RafSchedulerObject.html → router_transition_interface.PathType.html} +76 -28
  665. package/typedoc/interfaces/{types.TranscludeFunctionObject.html → router_transition_interface.PathTypes.html} +199 -164
  666. package/typedoc/{types/core_parse_parse.CompiledExpressionFunction.html → interfaces/router_transition_interface.RegisteredHooks.html} +28 -14
  667. package/typedoc/interfaces/router_transition_interface.TransitionCreateHookFn.html +330 -0
  668. package/typedoc/interfaces/router_transition_interface.TransitionHookFn.html +366 -0
  669. package/typedoc/interfaces/router_transition_interface.TransitionHookOptions.html +718 -0
  670. package/typedoc/interfaces/router_transition_interface.TransitionOptions.html +1231 -0
  671. package/typedoc/interfaces/router_transition_interface.TransitionStateHookFn.html +388 -0
  672. package/typedoc/interfaces/router_transition_interface.TreeChanges.html +849 -0
  673. package/typedoc/interfaces/router_view_interface.ActiveUIView.html +700 -0
  674. package/typedoc/{classes/router_globals.UIRouterGlobals.html → interfaces/router_view_interface.ViewConfig.html} +235 -226
  675. package/typedoc/interfaces/router_view_interface.ViewContext.html +455 -0
  676. package/typedoc/interfaces/services_anchor-scroll.AnchorScrollObject.html +4 -4
  677. package/typedoc/interfaces/services_log.LogService.html +14 -14
  678. package/typedoc/{types/types.Injectable.html → interfaces/shared_interface.TypedMap.html} +24 -22
  679. package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +6 -6
  680. package/typedoc/media/CONTRIBUTING.md +9 -9
  681. package/typedoc/media/DEVELOPERS.md +30 -30
  682. package/typedoc/modules/animations_interface.html +325 -0
  683. package/typedoc/modules/animations_raf-scheduler.html +15 -45
  684. package/typedoc/modules/core_compile_compile.html +27 -0
  685. package/typedoc/modules/core_error-handler.html +325 -0
  686. package/typedoc/modules/core_exception-handler.html +48 -12
  687. package/typedoc/modules/core_parse_ast_ast.html +0 -62
  688. package/typedoc/modules/core_parse_interface.html +473 -0
  689. package/typedoc/modules/core_parse_parse.html +0 -213
  690. package/typedoc/modules/core_sanitize_interface.html +323 -0
  691. package/typedoc/modules/core_sanitize_sanitize-uri.html +64 -0
  692. package/typedoc/modules/core_sce_sce.html +1 -1
  693. package/typedoc/modules/{types.html → interface.html} +106 -414
  694. package/typedoc/modules/router_common_glob.html +62 -181
  695. package/typedoc/modules/router_common_trace.html +65 -27
  696. package/typedoc/modules/router_globals.html +70 -6
  697. package/typedoc/modules/router_params_interface.html +405 -0
  698. package/typedoc/modules/router_resolve_interface.html +524 -0
  699. package/typedoc/modules/router_state_interface.html +609 -0
  700. package/typedoc/modules/router_state_state-object.html +64 -0
  701. package/typedoc/modules/router_state_state-registry.html +64 -0
  702. package/typedoc/modules/router_state_views.html +12 -14
  703. package/typedoc/modules/router_transition_interface.html +553 -14
  704. package/typedoc/modules/router_transition_transition.html +64 -0
  705. package/typedoc/modules/router_view_interface.html +376 -0
  706. package/typedoc/modules/shared_interface.html +439 -0
  707. package/typedoc/modules/shared_utils.html +26 -26
  708. package/typedoc/modules.html +267 -23
  709. package/typedoc/types/animations_animate.AnimationMethod.html +2 -2
  710. package/typedoc/types/animations_interface.RafScheduler.html +638 -0
  711. package/typedoc/types/core_cache_cache-factory.TemplateCache.html +2 -2
  712. package/typedoc/types/core_compile_compile.ApplyDirectivesToNodeFn.html +2 -2
  713. package/typedoc/types/core_compile_compile.BoundTranscludeFn.html +2 -2
  714. package/typedoc/types/core_compile_compile.CompileFn.html +2 -2
  715. package/typedoc/types/core_compile_compile.CompileNodesFn.html +2 -2
  716. package/typedoc/types/core_compile_compile.CompositeLinkFn.html +2 -2
  717. package/typedoc/types/core_compile_compile.NodeLinkFn.html +4 -34
  718. package/typedoc/types/core_compile_compile.PublicLinkFn.html +11 -2
  719. package/typedoc/types/core_compile_compile.TranscludeFn.html +2 -2
  720. package/typedoc/types/{core_exception-handler.ErrorHandler.html → core_error-handler.ErrorHandler.html} +8 -5
  721. package/typedoc/types/core_exception-handler.LogService.html +2 -2
  722. package/typedoc/types/core_parse_ast_ast-node.ASTNode.html +52 -52
  723. package/typedoc/types/{core_parse_parse.CompiledExpression.html → core_parse_interface.CompiledExpression.html} +13 -5
  724. package/typedoc/types/core_parse_interface.CompiledExpressionFunction.html +360 -0
  725. package/typedoc/types/core_parse_interface.ParseService.html +487 -0
  726. package/typedoc/types/core_parse_interpreter.DecoratedASTNode.html +2 -2
  727. package/typedoc/types/core_scope_scope.ListenerFunction.html +2 -2
  728. package/typedoc/types/core_url-utils_url-utils.HttpProtocol.html +2 -2
  729. package/typedoc/types/interface.AnnotatedFactory.html +288 -0
  730. package/typedoc/types/{types.CloneAttachFunction.html → interface.CloneAttachFunction.html} +6 -11
  731. package/typedoc/types/interface.ControllerConstructor.html +329 -0
  732. package/typedoc/types/interface.DirectiveCompileFn.html +420 -0
  733. package/typedoc/types/{types.DirectiveController.html → interface.DirectiveController.html} +9 -6
  734. package/typedoc/types/{types.DirectiveFactory.html → interface.DirectiveFactory.html} +12 -9
  735. package/typedoc/types/{types.DirectiveLinkFn.html → interface.DirectiveLinkFn.html} +60 -52
  736. package/typedoc/types/{types.Expression.html → interface.Expression.html} +14 -3
  737. package/typedoc/types/interface.FilterFactory.html +324 -0
  738. package/typedoc/types/interface.FilterFn.html +328 -0
  739. package/typedoc/types/{types.TAttributes.html → interface.Injectable.html} +15 -10
  740. package/typedoc/types/interface.InjectableFactory.html +323 -0
  741. package/typedoc/types/{types.Attributes.html → interface.OnChangesObject.html} +15 -9
  742. package/typedoc/types/{types.TController.html → interface.TController.html} +8 -5
  743. package/typedoc/types/{types.AnnotatedFunction.html → router_resolve_interface.PolicyAsync.html} +17 -15
  744. package/typedoc/types/{types.ServiceProvider.html → router_resolve_interface.PolicyWhen.html} +13 -10
  745. package/typedoc/{variables/router_transition_interface.TransitionHookScope.html → types/router_state_interface.RedirectToResult.html} +40 -38
  746. package/typedoc/types/router_state_interface.ResolveTypes.html +281 -0
  747. package/typedoc/types/{animations_raf-scheduler.RafScheduler.html → router_state_interface.StateOrName.html} +16 -15
  748. package/typedoc/types/router_state_interface._StateDeclaration.html +288 -0
  749. package/typedoc/types/router_transition_interface.HookFn.html +281 -0
  750. package/typedoc/{variables/router_common_trace.Category.html → types/router_transition_interface.HookMatchCriterion.html} +23 -19
  751. package/typedoc/types/router_transition_interface.HookResult.html +324 -0
  752. package/typedoc/types/{types.DirectiveCompileFn.html → router_transition_interface.IHookRegistration.html} +53 -53
  753. package/typedoc/{variables/core_parse_ast_ast.literals.html → types/router_transition_interface.IStateMatch.html} +27 -13
  754. package/typedoc/types/services_anchor-scroll.AnchorScrollFunction.html +2 -2
  755. package/typedoc/types/services_anchor-scroll.AnchorScrollService.html +2 -2
  756. package/typedoc/types/services_browser.UrlChangeListener.html +2 -2
  757. package/typedoc/types/services_log.LogCall.html +2 -2
  758. package/typedoc/types/shared_interface.Mapper.html +351 -0
  759. package/typedoc/types/shared_interface.Predicate.html +319 -0
  760. package/typedoc/types/shared_interface.PredicateBinary.html +344 -0
  761. package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +2 -2
  762. package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +2 -2
  763. package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +2 -2
  764. package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +2 -2
  765. package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +2 -2
  766. package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +2 -2
  767. package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +2 -2
  768. package/typedoc/variables/animations_shared.ANIMATION_PROP.html +2 -2
  769. package/typedoc/variables/animations_shared.CSS_PREFIX.html +2 -2
  770. package/typedoc/variables/animations_shared.DELAY_KEY.html +2 -2
  771. package/typedoc/variables/animations_shared.DURATION_KEY.html +2 -2
  772. package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +2 -2
  773. package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +2 -2
  774. package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +2 -2
  775. package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +2 -2
  776. package/typedoc/variables/animations_shared.PROPERTY_KEY.html +2 -2
  777. package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +2 -2
  778. package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +2 -2
  779. package/typedoc/variables/animations_shared.TIMING_KEY.html +2 -2
  780. package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +2 -2
  781. package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +2 -2
  782. package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +2 -2
  783. package/typedoc/variables/animations_shared.TRANSITION_PROP.html +2 -2
  784. package/typedoc/variables/animations_shared.ngMinErr.html +2 -2
  785. package/typedoc/variables/core_cache_cache.Cache.html +2 -2
  786. package/typedoc/variables/core_cache_cache.EXPANDO.html +2 -2
  787. package/typedoc/variables/core_cache_cache.ISOLATE_SCOPE_KEY.html +2 -2
  788. package/typedoc/variables/core_cache_cache.SCOPE_KEY.html +2 -2
  789. package/typedoc/variables/core_compile_compile.DirectiveSuffix.html +2 -2
  790. package/typedoc/variables/core_di_injector.path.html +2 -2
  791. package/typedoc/variables/core_di_ng-module.ANIMATION_LITERAL.html +2 -2
  792. package/typedoc/variables/core_di_ng-module.COMPILE_LITERAL.html +2 -2
  793. package/typedoc/variables/core_di_ng-module.CONTROLLER_LITERAL.html +2 -2
  794. package/typedoc/variables/core_di_ng-module.FILTER_LITERAL.html +2 -2
  795. package/typedoc/variables/core_di_ng-module.INJECTOR_LITERAL.html +2 -2
  796. package/typedoc/variables/core_di_ng-module.PROVIDE_LITERAL.html +2 -2
  797. package/typedoc/variables/core_parse_interpreter.PURITY_ABSOLUTE.html +2 -2
  798. package/typedoc/variables/core_parse_interpreter.PURITY_RELATIVE.html +2 -2
  799. package/typedoc/variables/core_pubsub_pubsub.EventBus.html +2 -2
  800. package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +2 -2
  801. package/typedoc/variables/core_scope_scope.NONSCOPE.html +2 -2
  802. package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +2 -2
  803. package/typedoc/variables/core_scope_scope._postUpdateQueue.html +2 -2
  804. package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +2 -2
  805. package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +2 -2
  806. package/typedoc/variables/directive_class_class.ngClassDirective.html +5 -5
  807. package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +5 -5
  808. package/typedoc/variables/directive_class_class.ngClassOddDirective.html +5 -5
  809. package/typedoc/variables/directive_events_events.ngEventDirectives.html +2 -2
  810. package/typedoc/variables/directive_form_form.PENDING_CLASS.html +2 -2
  811. package/typedoc/variables/directive_form_form.formDirective.html +2 -2
  812. package/typedoc/variables/directive_form_form.ngFormDirective.html +2 -2
  813. package/typedoc/variables/directive_form_form.nullFormCtrl.html +2 -2
  814. package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +2 -2
  815. package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +2 -2
  816. package/typedoc/variables/directive_input_input.URL_REGEXP.html +2 -2
  817. package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +2 -2
  818. package/typedoc/variables/directive_messages_messages.ngMessageDefaultDirective.html +2 -2
  819. package/typedoc/variables/directive_messages_messages.ngMessageDirective.html +2 -2
  820. package/typedoc/variables/directive_messages_messages.ngMessageExpDirective.html +2 -2
  821. package/typedoc/variables/directive_model-options_model-options.defaultModelOptions.html +2 -2
  822. package/typedoc/variables/directive_model_model.ngModelMinErr.html +2 -2
  823. package/typedoc/variables/directive_options_options.ngOptionsDirective.html +6 -6
  824. package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +6 -6
  825. package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +12 -12
  826. package/typedoc/variables/directive_validators_validators.minlengthDirective.html +4 -4
  827. package/typedoc/variables/directive_validators_validators.patternDirective.html +12 -12
  828. package/typedoc/variables/directive_validators_validators.requiredDirective.html +12 -12
  829. package/typedoc/variables/index.angular.html +2 -2
  830. package/typedoc/variables/public.VERSION.html +3 -7
  831. package/typedoc/variables/router_common_trace.trace.html +2 -2
  832. package/typedoc/variables/router_directives_view-directive.ngView.html +7 -7
  833. package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +2 -2
  834. package/typedoc/variables/router_params_param.DefType.html +2 -2
  835. package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +2 -2
  836. package/typedoc/variables/router_resolve_resolve-context.resolvePolicies.html +2 -2
  837. package/typedoc/variables/router_transition_transition-service.defaultTransOpts.html +2 -2
  838. package/typedoc/variables/services_log.LogService.html +4 -4
  839. package/typedoc/variables/shared_common.assertMap.html +2 -2
  840. package/typedoc/variables/shared_common.assertPredicate.html +2 -2
  841. package/typedoc/variables/shared_common.pushTo.html +2 -2
  842. package/typedoc/variables/shared_common.removeFrom.html +2 -2
  843. package/typedoc/variables/shared_constants.ALIASED_ATTR.html +2 -2
  844. package/typedoc/variables/shared_constants.DIRTY_CLASS.html +2 -2
  845. package/typedoc/variables/shared_constants.EMPTY_CLASS.html +2 -2
  846. package/typedoc/variables/shared_constants.INVALID_CLASS.html +2 -2
  847. package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +2 -2
  848. package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +2 -2
  849. package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +2 -2
  850. package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +2 -2
  851. package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +2 -2
  852. package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +2 -2
  853. package/typedoc/variables/shared_constants.VALID_CLASS.html +2 -2
  854. package/typedoc/variables/shared_dom.BOOLEAN_ATTR.html +2 -2
  855. package/typedoc/variables/shared_hof.propEq.html +2 -2
  856. package/typedoc/variables/shared_strings.hostRegex.html +2 -2
  857. package/typedoc/variables/shared_strings.splitEqual.html +2 -2
  858. package/typedoc/variables/shared_strings.splitHash.html +2 -2
  859. package/typedoc/variables/shared_strings.splitQuery.html +2 -2
  860. package/typedoc/variables/shared_utils.isProxySymbol.html +2 -2
  861. package/typedoc/variables/shared_utils.ngAttrPrefixes.html +2 -2
  862. package/@types/directive/change/change.d.ts +0 -4
  863. package/@types/types.d.ts +0 -595
  864. package/src/types.js +0 -427
  865. package/typedoc/interfaces/types.FormController.html +0 -1541
  866. package/typedoc/interfaces/types.Module.html +0 -1566
  867. package/typedoc/interfaces/types.NgModelController.html +0 -2088
  868. package/typedoc/types/core_parse_parse.ParseService.html +0 -266
  869. package/typedoc/types/types.AsyncModelValidators.html +0 -266
  870. package/typedoc/types/types.BootstrapConfig.html +0 -262
  871. package/typedoc/types/types.ComponentOptions.html +0 -262
  872. package/typedoc/types/types.ControllerConstructor.html +0 -262
  873. package/typedoc/types/types.FilterFactory.html +0 -262
  874. package/typedoc/types/types.FilterFunction.html +0 -262
  875. package/typedoc/types/types.ModelValidators.html +0 -266
  876. package/typedoc/types/types.ServiceProviderFactory.html +0 -262
  877. package/typedoc/types/types.TElement.html +0 -262
  878. package/typedoc/types/types.TScope.html +0 -266
  879. package/typedoc/types/types.TranscludeFunction.html +0 -262
  880. package/typedoc/types/types.transcludeWithScope.html +0 -262
  881. package/typedoc/types/types.transcludeWithoutScope.html +0 -262
@@ -0,0 +1,3093 @@
1
+ <!doctype html>
2
+ <html class="default" lang="en" data-base="../">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="x-ua-compatible" content="IE=edge" />
6
+ <title>IHookRegistry | @angular-wave/angular.ts</title>
7
+ <meta
8
+ name="description"
9
+ content="Documentation for @angular-wave/angular.ts"
10
+ />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <link rel="stylesheet" href="../assets/style.css" />
13
+ <link rel="stylesheet" href="../assets/highlight.css" />
14
+ <script defer src="../assets/main.js"></script>
15
+ <script async src="../assets/icons.js" id="tsd-icons-script"></script>
16
+ <script async src="../assets/search.js" id="tsd-search-script"></script>
17
+ <script async src="../assets/navigation.js" id="tsd-nav-script"></script>
18
+ <script
19
+ async
20
+ src="../assets/hierarchy.js"
21
+ id="tsd-hierarchy-script"
22
+ ></script>
23
+ </head>
24
+ <body>
25
+ <script>
26
+ document.documentElement.dataset.theme =
27
+ localStorage.getItem("tsd-theme") || "os";
28
+ document.body.style.display = "none";
29
+ setTimeout(
30
+ () =>
31
+ window.app
32
+ ? app.showPage()
33
+ : document.body.style.removeProperty("display"),
34
+ 500,
35
+ );
36
+ </script>
37
+ <header class="tsd-page-toolbar">
38
+ <div class="tsd-toolbar-contents container">
39
+ <a href="../index.html" class="title">@angular-wave/angular.ts</a>
40
+ <div id="tsd-toolbar-links"></div>
41
+ <button id="tsd-search-trigger" class="tsd-widget" aria-label="Search">
42
+ <svg
43
+ width="16"
44
+ height="16"
45
+ viewBox="0 0 16 16"
46
+ fill="none"
47
+ aria-hidden="true"
48
+ >
49
+ <use href="../assets/icons.svg#icon-search"></use>
50
+ </svg>
51
+ </button>
52
+ <dialog id="tsd-search" aria-label="Search">
53
+ <input
54
+ role="combobox"
55
+ id="tsd-search-input"
56
+ aria-controls="tsd-search-results"
57
+ aria-autocomplete="list"
58
+ aria-expanded="true"
59
+ autocapitalize="off"
60
+ autocomplete="off"
61
+ placeholder="Search the docs"
62
+ maxlength="100"
63
+ />
64
+ <ul role="listbox" id="tsd-search-results"></ul>
65
+ <div id="tsd-search-status" aria-live="polite" aria-atomic="true">
66
+ <div>Preparing search index...</div>
67
+ </div>
68
+ </dialog>
69
+ <a
70
+ href="#"
71
+ class="tsd-widget menu"
72
+ id="tsd-toolbar-menu-trigger"
73
+ data-toggle="menu"
74
+ aria-label="Menu"
75
+ ><svg
76
+ width="16"
77
+ height="16"
78
+ viewBox="0 0 16 16"
79
+ fill="none"
80
+ aria-hidden="true"
81
+ >
82
+ <use href="../assets/icons.svg#icon-menu"></use></svg
83
+ ></a>
84
+ </div>
85
+ </header>
86
+ <div class="container container-main">
87
+ <div class="col-content">
88
+ <div class="tsd-page-title">
89
+ <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
90
+ <li>
91
+ <a href="../modules/router_transition_interface.html"
92
+ >router/transition/interface</a
93
+ >
94
+ </li>
95
+ <li><a href="" aria-current="page">IHookRegistry</a></li>
96
+ </ul>
97
+ <h1>Interface IHookRegistry</h1>
98
+ </div>
99
+ <section class="tsd-panel tsd-comment">
100
+ <div class="tsd-comment tsd-typography">
101
+ <p>
102
+ This interface specifies the api for registering Transition Hooks.
103
+ Both the [[TransitionService]] and also the [[Transition]] object
104
+ itself implement this interface. Note: the Transition object only
105
+ allows hooks to be registered before the Transition is started.
106
+ </p>
107
+ </div>
108
+ <div class="tsd-comment tsd-typography"></div>
109
+ </section>
110
+ <div class="tsd-signature">
111
+ <span class="tsd-signature-keyword">interface</span>
112
+ <span class="tsd-kind-interface">IHookRegistry</span>
113
+ <span class="tsd-signature-symbol">{</span><br />    <a
114
+ class="tsd-kind-property"
115
+ href="#_registeredhooks"
116
+ >_registeredHooks</a
117
+ ><span class="tsd-signature-symbol">:</span>
118
+ <span class="tsd-signature-symbol">{</span>
119
+ <span class="tsd-signature-symbol">[</span
120
+ ><span class="tsd-kind-index-signature">key</span
121
+ ><span class="tsd-signature-symbol">:</span>
122
+ <span class="tsd-signature-type">string</span
123
+ ><span class="tsd-signature-symbol">]:</span>
124
+ <a
125
+ href="../classes/router_transition_hook-registry.RegisteredHook.html"
126
+ class="tsd-signature-type tsd-kind-class"
127
+ >RegisteredHook</a
128
+ ><span class="tsd-signature-symbol">[]</span>
129
+ <span class="tsd-signature-symbol">}</span
130
+ ><span class="tsd-signature-symbol">;</span><br />    <a
131
+ class="tsd-kind-call-signature"
132
+ href="#gethooks-1"
133
+ >getHooks</a
134
+ ><span class="tsd-signature-symbol">(</span
135
+ ><span class="tsd-kind-parameter">hookName</span
136
+ ><span class="tsd-signature-symbol">:</span>
137
+ <span class="tsd-signature-type">string</span
138
+ ><span class="tsd-signature-symbol">)</span
139
+ ><span class="tsd-signature-symbol">:</span>
140
+ <a
141
+ href="../classes/router_transition_hook-registry.RegisteredHook.html"
142
+ class="tsd-signature-type tsd-kind-class"
143
+ >RegisteredHook</a
144
+ ><span class="tsd-signature-symbol">[]</span
145
+ ><span class="tsd-signature-symbol">;</span><br />    <a
146
+ class="tsd-kind-call-signature"
147
+ href="#onbefore-1"
148
+ >onBefore</a
149
+ ><span class="tsd-signature-symbol">(</span><br />        <span
150
+ class="tsd-kind-parameter"
151
+ >matchCriteria</span
152
+ ><span class="tsd-signature-symbol">:</span>
153
+ <a
154
+ href="router_transition_interface.HookMatchCriteria.html"
155
+ class="tsd-signature-type tsd-kind-interface"
156
+ >HookMatchCriteria</a
157
+ ><span class="tsd-signature-symbol">,</span><br />        <span
158
+ class="tsd-kind-parameter"
159
+ >callback</span
160
+ ><span class="tsd-signature-symbol">:</span>
161
+ <a
162
+ href="router_transition_interface.TransitionHookFn.html"
163
+ class="tsd-signature-type tsd-kind-interface"
164
+ >TransitionHookFn</a
165
+ ><span class="tsd-signature-symbol">,</span><br />        <span
166
+ class="tsd-kind-parameter"
167
+ >options</span
168
+ ><span class="tsd-signature-symbol">?:</span>
169
+ <a
170
+ href="router_transition_interface.HookRegOptions.html"
171
+ class="tsd-signature-type tsd-kind-interface"
172
+ >HookRegOptions</a
173
+ ><span class="tsd-signature-symbol">,</span><br />    <span
174
+ class="tsd-signature-symbol"
175
+ >)</span
176
+ ><span class="tsd-signature-symbol">:</span>
177
+ <span class="tsd-signature-type">Function</span
178
+ ><span class="tsd-signature-symbol">;</span><br />    <a
179
+ class="tsd-kind-call-signature"
180
+ href="#onenter-1"
181
+ >onEnter</a
182
+ ><span class="tsd-signature-symbol">(</span><br />        <span
183
+ class="tsd-kind-parameter"
184
+ >matchCriteria</span
185
+ ><span class="tsd-signature-symbol">:</span>
186
+ <a
187
+ href="router_transition_interface.HookMatchCriteria.html"
188
+ class="tsd-signature-type tsd-kind-interface"
189
+ >HookMatchCriteria</a
190
+ ><span class="tsd-signature-symbol">,</span><br />        <span
191
+ class="tsd-kind-parameter"
192
+ >callback</span
193
+ ><span class="tsd-signature-symbol">:</span>
194
+ <a
195
+ href="router_transition_interface.TransitionStateHookFn.html"
196
+ class="tsd-signature-type tsd-kind-interface"
197
+ >TransitionStateHookFn</a
198
+ ><span class="tsd-signature-symbol">,</span><br />        <span
199
+ class="tsd-kind-parameter"
200
+ >options</span
201
+ ><span class="tsd-signature-symbol">?:</span>
202
+ <a
203
+ href="router_transition_interface.HookRegOptions.html"
204
+ class="tsd-signature-type tsd-kind-interface"
205
+ >HookRegOptions</a
206
+ ><span class="tsd-signature-symbol">,</span><br />    <span
207
+ class="tsd-signature-symbol"
208
+ >)</span
209
+ ><span class="tsd-signature-symbol">:</span>
210
+ <span class="tsd-signature-type">Function</span
211
+ ><span class="tsd-signature-symbol">;</span><br />    <a
212
+ class="tsd-kind-call-signature"
213
+ href="#onerror-1"
214
+ >onError</a
215
+ ><span class="tsd-signature-symbol">(</span><br />        <span
216
+ class="tsd-kind-parameter"
217
+ >matchCriteria</span
218
+ ><span class="tsd-signature-symbol">:</span>
219
+ <a
220
+ href="router_transition_interface.HookMatchCriteria.html"
221
+ class="tsd-signature-type tsd-kind-interface"
222
+ >HookMatchCriteria</a
223
+ ><span class="tsd-signature-symbol">,</span><br />        <span
224
+ class="tsd-kind-parameter"
225
+ >callback</span
226
+ ><span class="tsd-signature-symbol">:</span>
227
+ <a
228
+ href="router_transition_interface.TransitionHookFn.html"
229
+ class="tsd-signature-type tsd-kind-interface"
230
+ >TransitionHookFn</a
231
+ ><span class="tsd-signature-symbol">,</span><br />        <span
232
+ class="tsd-kind-parameter"
233
+ >options</span
234
+ ><span class="tsd-signature-symbol">?:</span>
235
+ <a
236
+ href="router_transition_interface.HookRegOptions.html"
237
+ class="tsd-signature-type tsd-kind-interface"
238
+ >HookRegOptions</a
239
+ ><span class="tsd-signature-symbol">,</span><br />    <span
240
+ class="tsd-signature-symbol"
241
+ >)</span
242
+ ><span class="tsd-signature-symbol">:</span>
243
+ <span class="tsd-signature-type">Function</span
244
+ ><span class="tsd-signature-symbol">;</span><br />    <a
245
+ class="tsd-kind-call-signature"
246
+ href="#onexit-1"
247
+ >onExit</a
248
+ ><span class="tsd-signature-symbol">(</span><br />        <span
249
+ class="tsd-kind-parameter"
250
+ >matchCriteria</span
251
+ ><span class="tsd-signature-symbol">:</span>
252
+ <a
253
+ href="router_transition_interface.HookMatchCriteria.html"
254
+ class="tsd-signature-type tsd-kind-interface"
255
+ >HookMatchCriteria</a
256
+ ><span class="tsd-signature-symbol">,</span><br />        <span
257
+ class="tsd-kind-parameter"
258
+ >callback</span
259
+ ><span class="tsd-signature-symbol">:</span>
260
+ <a
261
+ href="router_transition_interface.TransitionStateHookFn.html"
262
+ class="tsd-signature-type tsd-kind-interface"
263
+ >TransitionStateHookFn</a
264
+ ><span class="tsd-signature-symbol">,</span><br />        <span
265
+ class="tsd-kind-parameter"
266
+ >options</span
267
+ ><span class="tsd-signature-symbol">?:</span>
268
+ <a
269
+ href="router_transition_interface.HookRegOptions.html"
270
+ class="tsd-signature-type tsd-kind-interface"
271
+ >HookRegOptions</a
272
+ ><span class="tsd-signature-symbol">,</span><br />    <span
273
+ class="tsd-signature-symbol"
274
+ >)</span
275
+ ><span class="tsd-signature-symbol">:</span>
276
+ <span class="tsd-signature-type">Function</span
277
+ ><span class="tsd-signature-symbol">;</span><br />    <a
278
+ class="tsd-kind-call-signature"
279
+ href="#onfinish-1"
280
+ >onFinish</a
281
+ ><span class="tsd-signature-symbol">(</span><br />        <span
282
+ class="tsd-kind-parameter"
283
+ >matchCriteria</span
284
+ ><span class="tsd-signature-symbol">:</span>
285
+ <a
286
+ href="router_transition_interface.HookMatchCriteria.html"
287
+ class="tsd-signature-type tsd-kind-interface"
288
+ >HookMatchCriteria</a
289
+ ><span class="tsd-signature-symbol">,</span><br />        <span
290
+ class="tsd-kind-parameter"
291
+ >callback</span
292
+ ><span class="tsd-signature-symbol">:</span>
293
+ <a
294
+ href="router_transition_interface.TransitionHookFn.html"
295
+ class="tsd-signature-type tsd-kind-interface"
296
+ >TransitionHookFn</a
297
+ ><span class="tsd-signature-symbol">,</span><br />        <span
298
+ class="tsd-kind-parameter"
299
+ >options</span
300
+ ><span class="tsd-signature-symbol">?:</span>
301
+ <a
302
+ href="router_transition_interface.HookRegOptions.html"
303
+ class="tsd-signature-type tsd-kind-interface"
304
+ >HookRegOptions</a
305
+ ><span class="tsd-signature-symbol">,</span><br />    <span
306
+ class="tsd-signature-symbol"
307
+ >)</span
308
+ ><span class="tsd-signature-symbol">:</span>
309
+ <span class="tsd-signature-type">Function</span
310
+ ><span class="tsd-signature-symbol">;</span><br />    <a
311
+ class="tsd-kind-call-signature"
312
+ href="#onretain-1"
313
+ >onRetain</a
314
+ ><span class="tsd-signature-symbol">(</span><br />        <span
315
+ class="tsd-kind-parameter"
316
+ >matchCriteria</span
317
+ ><span class="tsd-signature-symbol">:</span>
318
+ <a
319
+ href="router_transition_interface.HookMatchCriteria.html"
320
+ class="tsd-signature-type tsd-kind-interface"
321
+ >HookMatchCriteria</a
322
+ ><span class="tsd-signature-symbol">,</span><br />        <span
323
+ class="tsd-kind-parameter"
324
+ >callback</span
325
+ ><span class="tsd-signature-symbol">:</span>
326
+ <a
327
+ href="router_transition_interface.TransitionStateHookFn.html"
328
+ class="tsd-signature-type tsd-kind-interface"
329
+ >TransitionStateHookFn</a
330
+ ><span class="tsd-signature-symbol">,</span><br />        <span
331
+ class="tsd-kind-parameter"
332
+ >options</span
333
+ ><span class="tsd-signature-symbol">?:</span>
334
+ <a
335
+ href="router_transition_interface.HookRegOptions.html"
336
+ class="tsd-signature-type tsd-kind-interface"
337
+ >HookRegOptions</a
338
+ ><span class="tsd-signature-symbol">,</span><br />    <span
339
+ class="tsd-signature-symbol"
340
+ >)</span
341
+ ><span class="tsd-signature-symbol">:</span>
342
+ <span class="tsd-signature-type">Function</span
343
+ ><span class="tsd-signature-symbol">;</span><br />    <a
344
+ class="tsd-kind-call-signature"
345
+ href="#onstart-1"
346
+ >onStart</a
347
+ ><span class="tsd-signature-symbol">(</span><br />        <span
348
+ class="tsd-kind-parameter"
349
+ >matchCriteria</span
350
+ ><span class="tsd-signature-symbol">:</span>
351
+ <a
352
+ href="router_transition_interface.HookMatchCriteria.html"
353
+ class="tsd-signature-type tsd-kind-interface"
354
+ >HookMatchCriteria</a
355
+ ><span class="tsd-signature-symbol">,</span><br />        <span
356
+ class="tsd-kind-parameter"
357
+ >callback</span
358
+ ><span class="tsd-signature-symbol">:</span>
359
+ <a
360
+ href="router_transition_interface.TransitionHookFn.html"
361
+ class="tsd-signature-type tsd-kind-interface"
362
+ >TransitionHookFn</a
363
+ ><span class="tsd-signature-symbol">,</span><br />        <span
364
+ class="tsd-kind-parameter"
365
+ >options</span
366
+ ><span class="tsd-signature-symbol">?:</span>
367
+ <a
368
+ href="router_transition_interface.HookRegOptions.html"
369
+ class="tsd-signature-type tsd-kind-interface"
370
+ >HookRegOptions</a
371
+ ><span class="tsd-signature-symbol">,</span><br />    <span
372
+ class="tsd-signature-symbol"
373
+ >)</span
374
+ ><span class="tsd-signature-symbol">:</span>
375
+ <span class="tsd-signature-type">Function</span
376
+ ><span class="tsd-signature-symbol">;</span><br />    <a
377
+ class="tsd-kind-call-signature"
378
+ href="#onsuccess-1"
379
+ >onSuccess</a
380
+ ><span class="tsd-signature-symbol">(</span><br />        <span
381
+ class="tsd-kind-parameter"
382
+ >matchCriteria</span
383
+ ><span class="tsd-signature-symbol">:</span>
384
+ <a
385
+ href="router_transition_interface.HookMatchCriteria.html"
386
+ class="tsd-signature-type tsd-kind-interface"
387
+ >HookMatchCriteria</a
388
+ ><span class="tsd-signature-symbol">,</span><br />        <span
389
+ class="tsd-kind-parameter"
390
+ >callback</span
391
+ ><span class="tsd-signature-symbol">:</span>
392
+ <a
393
+ href="router_transition_interface.TransitionHookFn.html"
394
+ class="tsd-signature-type tsd-kind-interface"
395
+ >TransitionHookFn</a
396
+ ><span class="tsd-signature-symbol">,</span><br />        <span
397
+ class="tsd-kind-parameter"
398
+ >options</span
399
+ ><span class="tsd-signature-symbol">?:</span>
400
+ <a
401
+ href="router_transition_interface.HookRegOptions.html"
402
+ class="tsd-signature-type tsd-kind-interface"
403
+ >HookRegOptions</a
404
+ ><span class="tsd-signature-symbol">,</span><br />    <span
405
+ class="tsd-signature-symbol"
406
+ >)</span
407
+ ><span class="tsd-signature-symbol">:</span>
408
+ <span class="tsd-signature-type">Function</span
409
+ ><span class="tsd-signature-symbol">;</span><br /><span
410
+ class="tsd-signature-symbol"
411
+ >}</span
412
+ >
413
+ </div>
414
+ <aside class="tsd-sources">
415
+ <ul>
416
+ <li>
417
+ Defined in
418
+ <a
419
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L323"
420
+ >src/router/transition/interface.ts:323</a
421
+ >
422
+ </li>
423
+ </ul>
424
+ </aside>
425
+ <section class="tsd-panel-group tsd-index-group">
426
+ <section class="tsd-panel tsd-index-panel">
427
+ <details class="tsd-index-content tsd-accordion" open>
428
+ <summary class="tsd-accordion-summary tsd-index-summary">
429
+ <svg
430
+ width="20"
431
+ height="20"
432
+ viewBox="0 0 24 24"
433
+ fill="none"
434
+ aria-hidden="true"
435
+ >
436
+ <use href="../assets/icons.svg#icon-chevronDown"></use>
437
+ </svg>
438
+ <h5 class="tsd-index-heading uppercase">Index</h5>
439
+ </summary>
440
+ <div class="tsd-accordion-details">
441
+ <section class="tsd-index-section">
442
+ <h3 class="tsd-index-heading">Properties</h3>
443
+ <div class="tsd-index-list">
444
+ <a href="#_registeredhooks" class="tsd-index-link"
445
+ ><svg
446
+ class="tsd-kind-icon"
447
+ viewBox="0 0 24 24"
448
+ aria-label="Property"
449
+ >
450
+ <use href="../assets/icons.svg#icon-1024"></use></svg
451
+ ><span>_<wbr />registered<wbr />Hooks</span></a
452
+ >
453
+ </div>
454
+ </section>
455
+ <section class="tsd-index-section">
456
+ <h3 class="tsd-index-heading">Methods</h3>
457
+ <div class="tsd-index-list">
458
+ <a href="#gethooks" class="tsd-index-link"
459
+ ><svg
460
+ class="tsd-kind-icon"
461
+ viewBox="0 0 24 24"
462
+ aria-label="Method"
463
+ >
464
+ <use href="../assets/icons.svg#icon-2048"></use></svg
465
+ ><span>get<wbr />Hooks</span></a
466
+ >
467
+ <a href="#onbefore" class="tsd-index-link"
468
+ ><svg
469
+ class="tsd-kind-icon"
470
+ viewBox="0 0 24 24"
471
+ aria-label="Method"
472
+ >
473
+ <use href="../assets/icons.svg#icon-2048"></use></svg
474
+ ><span>on<wbr />Before</span></a
475
+ >
476
+ <a href="#onenter" class="tsd-index-link"
477
+ ><svg
478
+ class="tsd-kind-icon"
479
+ viewBox="0 0 24 24"
480
+ aria-label="Method"
481
+ >
482
+ <use href="../assets/icons.svg#icon-2048"></use></svg
483
+ ><span>on<wbr />Enter</span></a
484
+ >
485
+ <a href="#onerror" class="tsd-index-link"
486
+ ><svg
487
+ class="tsd-kind-icon"
488
+ viewBox="0 0 24 24"
489
+ aria-label="Method"
490
+ >
491
+ <use href="../assets/icons.svg#icon-2048"></use></svg
492
+ ><span>on<wbr />Error</span></a
493
+ >
494
+ <a href="#onexit" class="tsd-index-link"
495
+ ><svg
496
+ class="tsd-kind-icon"
497
+ viewBox="0 0 24 24"
498
+ aria-label="Method"
499
+ >
500
+ <use href="../assets/icons.svg#icon-2048"></use></svg
501
+ ><span>on<wbr />Exit</span></a
502
+ >
503
+ <a href="#onfinish" class="tsd-index-link"
504
+ ><svg
505
+ class="tsd-kind-icon"
506
+ viewBox="0 0 24 24"
507
+ aria-label="Method"
508
+ >
509
+ <use href="../assets/icons.svg#icon-2048"></use></svg
510
+ ><span>on<wbr />Finish</span></a
511
+ >
512
+ <a href="#onretain" class="tsd-index-link"
513
+ ><svg
514
+ class="tsd-kind-icon"
515
+ viewBox="0 0 24 24"
516
+ aria-label="Method"
517
+ >
518
+ <use href="../assets/icons.svg#icon-2048"></use></svg
519
+ ><span>on<wbr />Retain</span></a
520
+ >
521
+ <a href="#onstart" class="tsd-index-link"
522
+ ><svg
523
+ class="tsd-kind-icon"
524
+ viewBox="0 0 24 24"
525
+ aria-label="Method"
526
+ >
527
+ <use href="../assets/icons.svg#icon-2048"></use></svg
528
+ ><span>on<wbr />Start</span></a
529
+ >
530
+ <a href="#onsuccess" class="tsd-index-link"
531
+ ><svg
532
+ class="tsd-kind-icon"
533
+ viewBox="0 0 24 24"
534
+ aria-label="Method"
535
+ >
536
+ <use href="../assets/icons.svg#icon-2048"></use></svg
537
+ ><span>on<wbr />Success</span></a
538
+ >
539
+ </div>
540
+ </section>
541
+ </div>
542
+ </details>
543
+ </section>
544
+ </section>
545
+ <details class="tsd-panel-group tsd-member-group tsd-accordion" open>
546
+ <summary class="tsd-accordion-summary" data-key="section-Properties">
547
+ <svg
548
+ width="20"
549
+ height="20"
550
+ viewBox="0 0 24 24"
551
+ fill="none"
552
+ aria-hidden="true"
553
+ >
554
+ <use href="../assets/icons.svg#icon-chevronDown"></use>
555
+ </svg>
556
+ <h2>Properties</h2>
557
+ </summary>
558
+ <section>
559
+ <section class="tsd-panel tsd-member">
560
+ <h3 class="tsd-anchor-link" id="_registeredhooks">
561
+ <code class="tsd-tag">Internal</code
562
+ ><span>_<wbr />registered<wbr />Hooks</span
563
+ ><a
564
+ href="#_registeredhooks"
565
+ aria-label="Permalink"
566
+ class="tsd-anchor-icon"
567
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
568
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
569
+ ></a>
570
+ </h3>
571
+ <div class="tsd-signature">
572
+ <span class="tsd-kind-property">_registeredHooks</span
573
+ ><span class="tsd-signature-symbol">:</span>
574
+ <span class="tsd-signature-symbol">{</span>
575
+ <span class="tsd-signature-symbol">[</span
576
+ ><span class="tsd-kind-index-signature">key</span
577
+ ><span class="tsd-signature-symbol">:</span>
578
+ <span class="tsd-signature-type">string</span
579
+ ><span class="tsd-signature-symbol">]:</span>
580
+ <a
581
+ href="../classes/router_transition_hook-registry.RegisteredHook.html"
582
+ class="tsd-signature-type tsd-kind-class"
583
+ >RegisteredHook</a
584
+ ><span class="tsd-signature-symbol">[]</span>
585
+ <span class="tsd-signature-symbol">}</span>
586
+ </div>
587
+ <div class="tsd-comment tsd-typography">
588
+ <p>place to store the hooks</p>
589
+ </div>
590
+ <div class="tsd-comment tsd-typography"></div>
591
+ <aside class="tsd-sources">
592
+ <ul>
593
+ <li>
594
+ Defined in
595
+ <a
596
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L325"
597
+ >src/router/transition/interface.ts:325</a
598
+ >
599
+ </li>
600
+ </ul>
601
+ </aside>
602
+ </section>
603
+ </section>
604
+ </details>
605
+ <details class="tsd-panel-group tsd-member-group tsd-accordion" open>
606
+ <summary class="tsd-accordion-summary" data-key="section-Methods">
607
+ <svg
608
+ width="20"
609
+ height="20"
610
+ viewBox="0 0 24 24"
611
+ fill="none"
612
+ aria-hidden="true"
613
+ >
614
+ <use href="../assets/icons.svg#icon-chevronDown"></use>
615
+ </svg>
616
+ <h2>Methods</h2>
617
+ </summary>
618
+ <section>
619
+ <section class="tsd-panel tsd-member">
620
+ <h3 class="tsd-anchor-link" id="gethooks">
621
+ <span>get<wbr />Hooks</span
622
+ ><a
623
+ href="#gethooks"
624
+ aria-label="Permalink"
625
+ class="tsd-anchor-icon"
626
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
627
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
628
+ ></a>
629
+ </h3>
630
+ <ul class="tsd-signatures">
631
+ <li class="">
632
+ <div class="tsd-signature tsd-anchor-link" id="gethooks-1">
633
+ <span class="tsd-kind-call-signature">getHooks</span
634
+ ><span class="tsd-signature-symbol">(</span
635
+ ><span class="tsd-kind-parameter">hookName</span
636
+ ><span class="tsd-signature-symbol">:</span>
637
+ <span class="tsd-signature-type">string</span
638
+ ><span class="tsd-signature-symbol">)</span
639
+ ><span class="tsd-signature-symbol">:</span>
640
+ <a
641
+ href="../classes/router_transition_hook-registry.RegisteredHook.html"
642
+ class="tsd-signature-type tsd-kind-class"
643
+ >RegisteredHook</a
644
+ ><span class="tsd-signature-symbol">[]</span
645
+ ><a
646
+ href="#gethooks-1"
647
+ aria-label="Permalink"
648
+ class="tsd-anchor-icon"
649
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
650
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
651
+ ></a>
652
+ </div>
653
+ <div class="tsd-description">
654
+ <div class="tsd-comment tsd-typography">
655
+ <p>
656
+ Returns all the registered hooks of a given
657
+ <code>hookName</code> type
658
+ </p>
659
+ <h4 id="example" class="tsd-anchor-link">
660
+ Example:<a
661
+ href="#example"
662
+ aria-label="Permalink"
663
+ class="tsd-anchor-icon"
664
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
665
+ <use
666
+ href="../assets/icons.svg#icon-anchor"
667
+ ></use></svg
668
+ ></a>
669
+ </h4>
670
+ <pre><code><span class="hl-10">$transitions</span><span class="hl-1">.</span><span class="hl-0">getHooks</span><span class="hl-1">(</span><span class="hl-2">&quot;onEnter&quot;</span><span class="hl-1">)</span>
671
+ </code><button>Copy</button></pre>
672
+ </div>
673
+ <div class="tsd-parameters">
674
+ <h4 class="tsd-parameters-title">Parameters</h4>
675
+ <ul class="tsd-parameter-list">
676
+ <li>
677
+ <span
678
+ ><span class="tsd-kind-parameter">hookName</span>:
679
+ <span class="tsd-signature-type">string</span></span
680
+ >
681
+ </li>
682
+ </ul>
683
+ </div>
684
+ <h4 class="tsd-returns-title">
685
+ Returns
686
+ <a
687
+ href="../classes/router_transition_hook-registry.RegisteredHook.html"
688
+ class="tsd-signature-type tsd-kind-class"
689
+ >RegisteredHook</a
690
+ ><span class="tsd-signature-symbol">[]</span>
691
+ </h4>
692
+ <div class="tsd-comment tsd-typography"></div>
693
+ <aside class="tsd-sources">
694
+ <ul>
695
+ <li>
696
+ Defined in
697
+ <a
698
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L782"
699
+ >src/router/transition/interface.ts:782</a
700
+ >
701
+ </li>
702
+ </ul>
703
+ </aside>
704
+ </div>
705
+ </li>
706
+ </ul>
707
+ </section>
708
+ <section class="tsd-panel tsd-member">
709
+ <h3 class="tsd-anchor-link" id="onbefore">
710
+ <span>on<wbr />Before</span
711
+ ><a
712
+ href="#onbefore"
713
+ aria-label="Permalink"
714
+ class="tsd-anchor-icon"
715
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
716
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
717
+ ></a>
718
+ </h3>
719
+ <ul class="tsd-signatures">
720
+ <li class="">
721
+ <div class="tsd-signature tsd-anchor-link" id="onbefore-1">
722
+ <span class="tsd-kind-call-signature">onBefore</span
723
+ ><span class="tsd-signature-symbol">(</span><br />    <span
724
+ class="tsd-kind-parameter"
725
+ >matchCriteria</span
726
+ ><span class="tsd-signature-symbol">:</span>
727
+ <a
728
+ href="router_transition_interface.HookMatchCriteria.html"
729
+ class="tsd-signature-type tsd-kind-interface"
730
+ >HookMatchCriteria</a
731
+ ><span class="tsd-signature-symbol">,</span><br />    <span
732
+ class="tsd-kind-parameter"
733
+ >callback</span
734
+ ><span class="tsd-signature-symbol">:</span>
735
+ <a
736
+ href="router_transition_interface.TransitionHookFn.html"
737
+ class="tsd-signature-type tsd-kind-interface"
738
+ >TransitionHookFn</a
739
+ ><span class="tsd-signature-symbol">,</span><br />    <span
740
+ class="tsd-kind-parameter"
741
+ >options</span
742
+ ><span class="tsd-signature-symbol">?:</span>
743
+ <a
744
+ href="router_transition_interface.HookRegOptions.html"
745
+ class="tsd-signature-type tsd-kind-interface"
746
+ >HookRegOptions</a
747
+ ><span class="tsd-signature-symbol">,</span><br /><span
748
+ class="tsd-signature-symbol"
749
+ >)</span
750
+ ><span class="tsd-signature-symbol">:</span>
751
+ <span class="tsd-signature-type">Function</span
752
+ ><a
753
+ href="#onbefore-1"
754
+ aria-label="Permalink"
755
+ class="tsd-anchor-icon"
756
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
757
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
758
+ ></a>
759
+ </div>
760
+ <div class="tsd-description">
761
+ <div class="tsd-comment tsd-typography">
762
+ <p>
763
+ Registers a [[TransitionHookFn]], called
764
+ <em>before a transition starts</em>.
765
+ </p>
766
+ <p>
767
+ Registers a transition lifecycle hook, which is invoked
768
+ before a transition even begins. This hook can be useful
769
+ to implement logic which prevents a transition from even
770
+ starting, such as authentication, redirection
771
+ </p>
772
+ <p>
773
+ See [[TransitionHookFn]] for the signature of the
774
+ function.
775
+ </p>
776
+ <p>
777
+ The [[HookMatchCriteria]] is used to determine which
778
+ Transitions the hook should be invoked for. To match all
779
+ Transitions, use an empty criteria object
780
+ <code>{}</code>.
781
+ </p>
782
+ <h3 id="lifecycle" class="tsd-anchor-link">
783
+ Lifecycle<a
784
+ href="#lifecycle"
785
+ aria-label="Permalink"
786
+ class="tsd-anchor-icon"
787
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
788
+ <use
789
+ href="../assets/icons.svg#icon-anchor"
790
+ ></use></svg
791
+ ></a>
792
+ </h3>
793
+ <p>
794
+ <code>onBefore</code> hooks are invoked
795
+ <em>before a Transition starts</em>. No resolves have
796
+ been fetched yet. Each <code>onBefore</code> hook is
797
+ invoked synchronously, in the same call stack as
798
+ [[StateService.transitionTo]]. The registered
799
+ <code>onBefore</code> hooks are invoked in priority
800
+ order.
801
+ </p>
802
+ <p>
803
+ Note: during the <code>onBefore</code> phase, additional
804
+ hooks can be added to the specific [[Transition]]
805
+ instance. These &quot;on-the-fly&quot; hooks only affect
806
+ the currently running transition..
807
+ </p>
808
+ <h3 id="return-value" class="tsd-anchor-link">
809
+ Return value<a
810
+ href="#return-value"
811
+ aria-label="Permalink"
812
+ class="tsd-anchor-icon"
813
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
814
+ <use
815
+ href="../assets/icons.svg#icon-anchor"
816
+ ></use></svg
817
+ ></a>
818
+ </h3>
819
+ <p>
820
+ The hook's return value can be used to pause, cancel, or
821
+ redirect the current Transition. See [[HookResult]] for
822
+ more information.
823
+ </p>
824
+ <p>
825
+ If any hook modifies the transition
826
+ <em>synchronously</em> (by throwing, returning
827
+ <code>false</code>, or returning a [[TargetState]]), the
828
+ remainder of the hooks are skipped. If a hook returns a
829
+ promise, the remainder of the
830
+ <code>onBefore</code> hooks are still invoked
831
+ synchronously. All promises are resolved, and processed
832
+ asynchronously before the <code>onStart</code> phase of
833
+ the Transition.
834
+ </p>
835
+ <h3 id="examples" class="tsd-anchor-link">
836
+ Examples<a
837
+ href="#examples"
838
+ aria-label="Permalink"
839
+ class="tsd-anchor-icon"
840
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
841
+ <use
842
+ href="../assets/icons.svg#icon-anchor"
843
+ ></use></svg
844
+ ></a>
845
+ </h3>
846
+ <h4 id="default-substate" class="tsd-anchor-link">
847
+ Default Substate<a
848
+ href="#default-substate"
849
+ aria-label="Permalink"
850
+ class="tsd-anchor-icon"
851
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
852
+ <use
853
+ href="../assets/icons.svg#icon-anchor"
854
+ ></use></svg
855
+ ></a>
856
+ </h4>
857
+ <p>
858
+ This example redirects any transition from 'home' to
859
+ 'home.dashboard'. This is commonly referred to as a
860
+ &quot;default substate&quot;.
861
+ </p>
862
+ </div>
863
+ <div class="tsd-parameters">
864
+ <h4 class="tsd-parameters-title">Parameters</h4>
865
+ <ul class="tsd-parameter-list">
866
+ <li>
867
+ <span
868
+ ><span class="tsd-kind-parameter"
869
+ >matchCriteria</span
870
+ >:
871
+ <a
872
+ href="router_transition_interface.HookMatchCriteria.html"
873
+ class="tsd-signature-type tsd-kind-interface"
874
+ >HookMatchCriteria</a
875
+ ></span
876
+ >
877
+ <div class="tsd-comment tsd-typography">
878
+ <p>
879
+ defines which Transitions the Hook should be
880
+ invoked for.
881
+ </p>
882
+ </div>
883
+ <div class="tsd-comment tsd-typography"></div>
884
+ </li>
885
+ <li>
886
+ <span
887
+ ><span class="tsd-kind-parameter">callback</span>:
888
+ <a
889
+ href="router_transition_interface.TransitionHookFn.html"
890
+ class="tsd-signature-type tsd-kind-interface"
891
+ >TransitionHookFn</a
892
+ ></span
893
+ >
894
+ <div class="tsd-comment tsd-typography">
895
+ <p>the hook function which will be invoked.</p>
896
+ </div>
897
+ <div class="tsd-comment tsd-typography"></div>
898
+ </li>
899
+ <li>
900
+ <span
901
+ ><code class="tsd-tag">Optional</code
902
+ ><span class="tsd-kind-parameter">options</span>:
903
+ <a
904
+ href="router_transition_interface.HookRegOptions.html"
905
+ class="tsd-signature-type tsd-kind-interface"
906
+ >HookRegOptions</a
907
+ ></span
908
+ >
909
+ </li>
910
+ </ul>
911
+ </div>
912
+ <h4 class="tsd-returns-title">
913
+ Returns <span class="tsd-signature-type">Function</span>
914
+ </h4>
915
+ <p>a function which deregisters the hook.</p>
916
+ <div class="tsd-comment tsd-typography">
917
+ <div class="tsd-tag-example">
918
+ <h4 class="tsd-anchor-link" id="example-1">
919
+ Example<a
920
+ href="#example-1"
921
+ aria-label="Permalink"
922
+ class="tsd-anchor-icon"
923
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
924
+ <use
925
+ href="../assets/icons.svg#icon-anchor"
926
+ ></use></svg
927
+ ></a>
928
+ </h4>
929
+ <pre><code class="js"><span class="hl-9">// ng2</span><br/><span class="hl-10">transitionService</span><span class="hl-1">.</span><span class="hl-0">onBefore</span><span class="hl-1">({ </span><span class="hl-10">to:</span><span class="hl-1"> </span><span class="hl-2">&#39;home&#39;</span><span class="hl-1"> }, (</span><span class="hl-10">trans</span><span class="hl-1">: </span><span class="hl-14">Transition</span><span class="hl-1">) </span><span class="hl-11">=&gt;</span><br/><span class="hl-1"> </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-10">router</span><span class="hl-1">.</span><span class="hl-10">stateService</span><span class="hl-1">.</span><span class="hl-0">target</span><span class="hl-1">(</span><span class="hl-2">&quot;home.dashboard&quot;</span><span class="hl-1">));</span>
930
+ </code><button type="button">Copy</button></pre>
931
+
932
+ <h4
933
+ id="data-driven-default-substate"
934
+ class="tsd-anchor-link"
935
+ >
936
+ Data Driven Default Substate<a
937
+ href="#data-driven-default-substate"
938
+ aria-label="Permalink"
939
+ class="tsd-anchor-icon"
940
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
941
+ <use
942
+ href="../assets/icons.svg#icon-anchor"
943
+ ></use></svg
944
+ ></a>
945
+ </h4>
946
+ <p>
947
+ This example provides data-driven default substate
948
+ functionality. It matches on a transition to any state
949
+ which has
950
+ <code
951
+ >defaultSubstate: &quot;some.sub.state&quot;</code
952
+ >
953
+ defined. See: [[<a href="http://Transition.to"
954
+ >Transition.to</a
955
+ >]] which returns the &quot;to state&quot; definition.
956
+ </p>
957
+ </div>
958
+ <div class="tsd-tag-example">
959
+ <h4 class="tsd-anchor-link" id="example-2">
960
+ Example<a
961
+ href="#example-2"
962
+ aria-label="Permalink"
963
+ class="tsd-anchor-icon"
964
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
965
+ <use
966
+ href="../assets/icons.svg#icon-anchor"
967
+ ></use></svg
968
+ ></a>
969
+ </h4>
970
+ <pre><code class="js"><span class="hl-9">// ng1</span><br/><span class="hl-9">// state declaration</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-15">name</span><span class="hl-1">: </span><span class="hl-2">&#39;home&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-15">template</span><span class="hl-1">: </span><span class="hl-2">&#39;&lt;div ui-view/&gt;&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-15">defaultSubstate</span><span class="hl-1">: </span><span class="hl-2">&#39;home.dashboard&#39;</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">criteria</span><span class="hl-1"> = {</span><br/><span class="hl-1"> </span><span class="hl-0">to</span><span class="hl-10">:</span><span class="hl-1"> </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">state</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> </span><span class="hl-10">state</span><span class="hl-1">.</span><span class="hl-10">defaultSubstate</span><span class="hl-1"> != </span><span class="hl-11">null</span><span class="hl-1">;</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">}</span><br/><br/><span class="hl-10">$transitions</span><span class="hl-1">.</span><span class="hl-0">onBefore</span><span class="hl-1">(</span><span class="hl-10">criteria</span><span class="hl-1">, </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">trans</span><span class="hl-1">: </span><span class="hl-14">Transition</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">substate</span><span class="hl-1"> = </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-0">to</span><span class="hl-1">().</span><span class="hl-10">defaultSubstate</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-10">router</span><span class="hl-1">.</span><span class="hl-10">stateService</span><span class="hl-1">.</span><span class="hl-0">target</span><span class="hl-1">(</span><span class="hl-10">substate</span><span class="hl-1">);</span><br/><span class="hl-1">});</span>
971
+ </code><button type="button">Copy</button></pre>
972
+
973
+ <h4 id="require-authentication" class="tsd-anchor-link">
974
+ Require authentication<a
975
+ href="#require-authentication"
976
+ aria-label="Permalink"
977
+ class="tsd-anchor-icon"
978
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
979
+ <use
980
+ href="../assets/icons.svg#icon-anchor"
981
+ ></use></svg
982
+ ></a>
983
+ </h4>
984
+ <p>
985
+ This example cancels a transition to a state which
986
+ requires authentication, if the user is not currently
987
+ authenticated.
988
+ </p>
989
+ <p>
990
+ This example assumes a state tree where all states
991
+ which require authentication are children of a parent
992
+ <code>'requireauth'</code> state. This example assumes
993
+ <code>MyAuthService</code> synchronously returns a
994
+ boolean from <code>isAuthenticated()</code>.
995
+ </p>
996
+ <h4 id="example-3" class="tsd-anchor-link">
997
+ Example:<a
998
+ href="#example-3"
999
+ aria-label="Permalink"
1000
+ class="tsd-anchor-icon"
1001
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1002
+ <use
1003
+ href="../assets/icons.svg#icon-anchor"
1004
+ ></use></svg
1005
+ ></a>
1006
+ </h4>
1007
+ <pre><code class="js"><span class="hl-9">// ng1</span><br/><span class="hl-10">$transitions</span><span class="hl-1">.</span><span class="hl-0">onBefore</span><span class="hl-1">( { </span><span class="hl-10">to:</span><span class="hl-1"> </span><span class="hl-2">&#39;requireauth.**&#39;</span><span class="hl-1"> }, </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">trans</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">myAuthService</span><span class="hl-1"> = </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-0">injector</span><span class="hl-1">().</span><span class="hl-0">get</span><span class="hl-1">(</span><span class="hl-2">&#39;MyAuthService&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-9">// If isAuthenticated returns false, the transition is cancelled.</span><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> </span><span class="hl-10">myAuthService</span><span class="hl-1">.</span><span class="hl-0">isAuthenticated</span><span class="hl-1">();</span><br/><span class="hl-1">});</span>
1008
+ </code><button type="button">Copy</button></pre>
1009
+ </div>
1010
+ </div>
1011
+ <aside class="tsd-sources">
1012
+ <ul>
1013
+ <li>
1014
+ Defined in
1015
+ <a
1016
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L423"
1017
+ >src/router/transition/interface.ts:423</a
1018
+ >
1019
+ </li>
1020
+ </ul>
1021
+ </aside>
1022
+ </div>
1023
+ </li>
1024
+ </ul>
1025
+ </section>
1026
+ <section class="tsd-panel tsd-member">
1027
+ <h3 class="tsd-anchor-link" id="onenter">
1028
+ <span>on<wbr />Enter</span
1029
+ ><a
1030
+ href="#onenter"
1031
+ aria-label="Permalink"
1032
+ class="tsd-anchor-icon"
1033
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1034
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1035
+ ></a>
1036
+ </h3>
1037
+ <ul class="tsd-signatures">
1038
+ <li class="">
1039
+ <div class="tsd-signature tsd-anchor-link" id="onenter-1">
1040
+ <span class="tsd-kind-call-signature">onEnter</span
1041
+ ><span class="tsd-signature-symbol">(</span><br />    <span
1042
+ class="tsd-kind-parameter"
1043
+ >matchCriteria</span
1044
+ ><span class="tsd-signature-symbol">:</span>
1045
+ <a
1046
+ href="router_transition_interface.HookMatchCriteria.html"
1047
+ class="tsd-signature-type tsd-kind-interface"
1048
+ >HookMatchCriteria</a
1049
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1050
+ class="tsd-kind-parameter"
1051
+ >callback</span
1052
+ ><span class="tsd-signature-symbol">:</span>
1053
+ <a
1054
+ href="router_transition_interface.TransitionStateHookFn.html"
1055
+ class="tsd-signature-type tsd-kind-interface"
1056
+ >TransitionStateHookFn</a
1057
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1058
+ class="tsd-kind-parameter"
1059
+ >options</span
1060
+ ><span class="tsd-signature-symbol">?:</span>
1061
+ <a
1062
+ href="router_transition_interface.HookRegOptions.html"
1063
+ class="tsd-signature-type tsd-kind-interface"
1064
+ >HookRegOptions</a
1065
+ ><span class="tsd-signature-symbol">,</span><br /><span
1066
+ class="tsd-signature-symbol"
1067
+ >)</span
1068
+ ><span class="tsd-signature-symbol">:</span>
1069
+ <span class="tsd-signature-type">Function</span
1070
+ ><a
1071
+ href="#onenter-1"
1072
+ aria-label="Permalink"
1073
+ class="tsd-anchor-icon"
1074
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1075
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1076
+ ></a>
1077
+ </div>
1078
+ <div class="tsd-description">
1079
+ <div class="tsd-comment tsd-typography">
1080
+ <p>
1081
+ Registers a [[TransitionStateHookFn]], called when a
1082
+ specific state is entered.
1083
+ </p>
1084
+ <p>
1085
+ Registers a lifecycle hook, which is invoked (during a
1086
+ transition) when a specific state is being entered.
1087
+ </p>
1088
+ <p>
1089
+ Since this hook is run only when the specific state is
1090
+ being <em>entered</em>, it can be useful for performing
1091
+ tasks when entering a submodule/feature area such as
1092
+ initializing a stateful service, or for guarding access
1093
+ to a submodule/feature area.
1094
+ </p>
1095
+ <p>
1096
+ See [[TransitionStateHookFn]] for the signature of the
1097
+ function.
1098
+ </p>
1099
+ <p>
1100
+ The [[HookMatchCriteria]] is used to determine which
1101
+ Transitions the hook should be invoked for.
1102
+ <code>onEnter</code> hooks generally specify
1103
+ <code>{ entering: 'somestate' }</code>. To match all
1104
+ Transitions, use an empty criteria object
1105
+ <code>{}</code>.
1106
+ </p>
1107
+ <h3 id="lifecycle-1" class="tsd-anchor-link">
1108
+ Lifecycle<a
1109
+ href="#lifecycle-1"
1110
+ aria-label="Permalink"
1111
+ class="tsd-anchor-icon"
1112
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1113
+ <use
1114
+ href="../assets/icons.svg#icon-anchor"
1115
+ ></use></svg
1116
+ ></a>
1117
+ </h3>
1118
+ <p>
1119
+ <code>onEnter</code> hooks are invoked when the
1120
+ Transition is entering a state. States are entered after
1121
+ the <code>onRetain</code> phase is complete. If more
1122
+ than one state is being entered, the parent state is
1123
+ entered first. The registered <code>onEnter</code> hooks
1124
+ for a state are invoked in priority order.
1125
+ </p>
1126
+ <p>
1127
+ Note: A built-in <code>onEnter</code> hook with high
1128
+ priority is used to fetch lazy resolve data for states
1129
+ being entered.
1130
+ </p>
1131
+ <h3 id="return-value-1" class="tsd-anchor-link">
1132
+ Return value<a
1133
+ href="#return-value-1"
1134
+ aria-label="Permalink"
1135
+ class="tsd-anchor-icon"
1136
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1137
+ <use
1138
+ href="../assets/icons.svg#icon-anchor"
1139
+ ></use></svg
1140
+ ></a>
1141
+ </h3>
1142
+ <p>
1143
+ The hook's return value can be used to pause, cancel, or
1144
+ redirect the current Transition. See [[HookResult]] for
1145
+ more information.
1146
+ </p>
1147
+ <h3
1148
+ id="inside-a-state-declaration"
1149
+ class="tsd-anchor-link"
1150
+ >
1151
+ Inside a state declaration<a
1152
+ href="#inside-a-state-declaration"
1153
+ aria-label="Permalink"
1154
+ class="tsd-anchor-icon"
1155
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1156
+ <use
1157
+ href="../assets/icons.svg#icon-anchor"
1158
+ ></use></svg
1159
+ ></a>
1160
+ </h3>
1161
+ <p>
1162
+ Instead of registering <code>onEnter</code> hooks using
1163
+ the [[TransitionService]], you may define an
1164
+ <code>onEnter</code> hook directly on a state
1165
+ declaration (see: [[StateDeclaration.onEnter]]).
1166
+ </p>
1167
+ <h3 id="examples-1" class="tsd-anchor-link">
1168
+ Examples<a
1169
+ href="#examples-1"
1170
+ aria-label="Permalink"
1171
+ class="tsd-anchor-icon"
1172
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1173
+ <use
1174
+ href="../assets/icons.svg#icon-anchor"
1175
+ ></use></svg
1176
+ ></a>
1177
+ </h3>
1178
+ <h4 id="audit-log" class="tsd-anchor-link">
1179
+ Audit Log<a
1180
+ href="#audit-log"
1181
+ aria-label="Permalink"
1182
+ class="tsd-anchor-icon"
1183
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1184
+ <use
1185
+ href="../assets/icons.svg#icon-anchor"
1186
+ ></use></svg
1187
+ ></a>
1188
+ </h4>
1189
+ <p>
1190
+ This example uses a service to log that a user has
1191
+ entered the admin section of an app. This assumes that
1192
+ there are substates of the &quot;admin&quot; state, such
1193
+ as &quot;admin.users&quot;, &quot;admin.pages&quot;,
1194
+ etc.
1195
+ </p>
1196
+ </div>
1197
+ <div class="tsd-parameters">
1198
+ <h4 class="tsd-parameters-title">Parameters</h4>
1199
+ <ul class="tsd-parameter-list">
1200
+ <li>
1201
+ <span
1202
+ ><span class="tsd-kind-parameter"
1203
+ >matchCriteria</span
1204
+ >:
1205
+ <a
1206
+ href="router_transition_interface.HookMatchCriteria.html"
1207
+ class="tsd-signature-type tsd-kind-interface"
1208
+ >HookMatchCriteria</a
1209
+ ></span
1210
+ >
1211
+ <div class="tsd-comment tsd-typography">
1212
+ <p>
1213
+ defines which Transitions the Hook should be
1214
+ invoked for.
1215
+ </p>
1216
+ </div>
1217
+ <div class="tsd-comment tsd-typography"></div>
1218
+ </li>
1219
+ <li>
1220
+ <span
1221
+ ><span class="tsd-kind-parameter">callback</span>:
1222
+ <a
1223
+ href="router_transition_interface.TransitionStateHookFn.html"
1224
+ class="tsd-signature-type tsd-kind-interface"
1225
+ >TransitionStateHookFn</a
1226
+ ></span
1227
+ >
1228
+ <div class="tsd-comment tsd-typography">
1229
+ <p>
1230
+ the hook function which will be injected and
1231
+ invoked.
1232
+ </p>
1233
+ </div>
1234
+ <div class="tsd-comment tsd-typography"></div>
1235
+ </li>
1236
+ <li>
1237
+ <span
1238
+ ><code class="tsd-tag">Optional</code
1239
+ ><span class="tsd-kind-parameter">options</span>:
1240
+ <a
1241
+ href="router_transition_interface.HookRegOptions.html"
1242
+ class="tsd-signature-type tsd-kind-interface"
1243
+ >HookRegOptions</a
1244
+ ></span
1245
+ >
1246
+ </li>
1247
+ </ul>
1248
+ </div>
1249
+ <h4 class="tsd-returns-title">
1250
+ Returns <span class="tsd-signature-type">Function</span>
1251
+ </h4>
1252
+ <p>a function which deregisters the hook.</p>
1253
+ <div class="tsd-comment tsd-typography">
1254
+ <div class="tsd-tag-example">
1255
+ <h4 class="tsd-anchor-link" id="example-4">
1256
+ Example<a
1257
+ href="#example-4"
1258
+ aria-label="Permalink"
1259
+ class="tsd-anchor-icon"
1260
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1261
+ <use
1262
+ href="../assets/icons.svg#icon-anchor"
1263
+ ></use></svg
1264
+ ></a>
1265
+ </h4>
1266
+ <pre><code><br/><span class="hl-10">$transitions</span><span class="hl-1">.</span><span class="hl-0">onEnter</span><span class="hl-1">({ </span><span class="hl-10">entering:</span><span class="hl-1"> </span><span class="hl-2">&#39;admin&#39;</span><span class="hl-1"> }, </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">transition</span><span class="hl-1">, </span><span class="hl-10">state</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">AuditService</span><span class="hl-1"> = </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-0">injector</span><span class="hl-1">().</span><span class="hl-0">get</span><span class="hl-1">(</span><span class="hl-2">&#39;AuditService&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-10">AuditService</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">&quot;Entered &quot;</span><span class="hl-1"> + </span><span class="hl-10">state</span><span class="hl-1">.</span><span class="hl-10">name</span><span class="hl-1"> + </span><span class="hl-2">&quot; module while transitioning to &quot;</span><span class="hl-1"> + </span><span class="hl-10">transition</span><span class="hl-1">.</span><span class="hl-0">to</span><span class="hl-1">().</span><span class="hl-10">name</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
1267
+ </code><button>Copy</button></pre>
1268
+
1269
+ <h4
1270
+ id="audit-log-inside-a-state-declaration"
1271
+ class="tsd-anchor-link"
1272
+ >
1273
+ Audit Log (inside a state declaration)<a
1274
+ href="#audit-log-inside-a-state-declaration"
1275
+ aria-label="Permalink"
1276
+ class="tsd-anchor-icon"
1277
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1278
+ <use
1279
+ href="../assets/icons.svg#icon-anchor"
1280
+ ></use></svg
1281
+ ></a>
1282
+ </h4>
1283
+ <p>
1284
+ The <code>onEnter</code> inside this state declaration
1285
+ is syntactic sugar for the previous Audit Log example.
1286
+ </p>
1287
+ <pre><code><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-15">name</span><span class="hl-1">: </span><span class="hl-2">&#39;admin&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-15">component</span><span class="hl-1">: </span><span class="hl-2">&#39;admin&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-15">onEnter</span><span class="hl-1">: </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">$transition$</span><span class="hl-1">, </span><span class="hl-10">$state$</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">AuditService</span><span class="hl-1"> = </span><span class="hl-10">$transition$</span><span class="hl-1">.</span><span class="hl-0">injector</span><span class="hl-1">().</span><span class="hl-0">get</span><span class="hl-1">(</span><span class="hl-2">&#39;AuditService&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-10">AuditService</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">&quot;Entered &quot;</span><span class="hl-1"> + </span><span class="hl-10">state</span><span class="hl-1">.</span><span class="hl-10">name</span><span class="hl-1"> + </span><span class="hl-2">&quot; module while transitioning to &quot;</span><span class="hl-1"> + </span><span class="hl-10">transition</span><span class="hl-1">.</span><span class="hl-0">to</span><span class="hl-1">().</span><span class="hl-10">name</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">}</span>
1288
+ </code><button>Copy</button></pre>
1289
+
1290
+ <p>
1291
+ Note: A state declaration's
1292
+ <code>onEnter</code> function is injected for Angular
1293
+ 1 only.
1294
+ </p>
1295
+ </div>
1296
+ </div>
1297
+ <aside class="tsd-sources">
1298
+ <ul>
1299
+ <li>
1300
+ Defined in
1301
+ <a
1302
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L572"
1303
+ >src/router/transition/interface.ts:572</a
1304
+ >
1305
+ </li>
1306
+ </ul>
1307
+ </aside>
1308
+ </div>
1309
+ </li>
1310
+ </ul>
1311
+ </section>
1312
+ <section class="tsd-panel tsd-member">
1313
+ <h3 class="tsd-anchor-link" id="onerror">
1314
+ <span>on<wbr />Error</span
1315
+ ><a
1316
+ href="#onerror"
1317
+ aria-label="Permalink"
1318
+ class="tsd-anchor-icon"
1319
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1320
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1321
+ ></a>
1322
+ </h3>
1323
+ <ul class="tsd-signatures">
1324
+ <li class="">
1325
+ <div class="tsd-signature tsd-anchor-link" id="onerror-1">
1326
+ <span class="tsd-kind-call-signature">onError</span
1327
+ ><span class="tsd-signature-symbol">(</span><br />    <span
1328
+ class="tsd-kind-parameter"
1329
+ >matchCriteria</span
1330
+ ><span class="tsd-signature-symbol">:</span>
1331
+ <a
1332
+ href="router_transition_interface.HookMatchCriteria.html"
1333
+ class="tsd-signature-type tsd-kind-interface"
1334
+ >HookMatchCriteria</a
1335
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1336
+ class="tsd-kind-parameter"
1337
+ >callback</span
1338
+ ><span class="tsd-signature-symbol">:</span>
1339
+ <a
1340
+ href="router_transition_interface.TransitionHookFn.html"
1341
+ class="tsd-signature-type tsd-kind-interface"
1342
+ >TransitionHookFn</a
1343
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1344
+ class="tsd-kind-parameter"
1345
+ >options</span
1346
+ ><span class="tsd-signature-symbol">?:</span>
1347
+ <a
1348
+ href="router_transition_interface.HookRegOptions.html"
1349
+ class="tsd-signature-type tsd-kind-interface"
1350
+ >HookRegOptions</a
1351
+ ><span class="tsd-signature-symbol">,</span><br /><span
1352
+ class="tsd-signature-symbol"
1353
+ >)</span
1354
+ ><span class="tsd-signature-symbol">:</span>
1355
+ <span class="tsd-signature-type">Function</span
1356
+ ><a
1357
+ href="#onerror-1"
1358
+ aria-label="Permalink"
1359
+ class="tsd-anchor-icon"
1360
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1361
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1362
+ ></a>
1363
+ </div>
1364
+ <div class="tsd-description">
1365
+ <div class="tsd-comment tsd-typography">
1366
+ <p>
1367
+ Registers a [[TransitionHookFn]], called after a
1368
+ transition has errored.
1369
+ </p>
1370
+ <p>
1371
+ Registers a transition lifecycle hook, which is invoked
1372
+ after a transition has been rejected for any reason.
1373
+ </p>
1374
+ <p>
1375
+ See [[TransitionHookFn]] for the signature of the
1376
+ function.
1377
+ </p>
1378
+ <p>
1379
+ The [[HookMatchCriteria]] is used to determine which
1380
+ Transitions the hook should be invoked for. To match all
1381
+ Transitions, use an empty criteria object
1382
+ <code>{}</code>.
1383
+ </p>
1384
+ <h3 id="lifecycle-2" class="tsd-anchor-link">
1385
+ Lifecycle<a
1386
+ href="#lifecycle-2"
1387
+ aria-label="Permalink"
1388
+ class="tsd-anchor-icon"
1389
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1390
+ <use
1391
+ href="../assets/icons.svg#icon-anchor"
1392
+ ></use></svg
1393
+ ></a>
1394
+ </h3>
1395
+ <p>
1396
+ The <code>onError</code> hooks are chained off the
1397
+ Transition's promise (see [[Transition.promise]]). If a
1398
+ Transition fails, its promise is rejected and the
1399
+ <code>onError</code> hooks are invoked. The
1400
+ <code>onError</code> hooks are invoked in priority
1401
+ order.
1402
+ </p>
1403
+ <p>
1404
+ Since these hooks are run after the transition is over,
1405
+ their return value is ignored.
1406
+ </p>
1407
+ <p>
1408
+ A transition &quot;errors&quot; if it was started, but
1409
+ failed to complete (for any reason). A
1410
+ <em>non-exhaustive list</em> of reasons a transition can
1411
+ error:
1412
+ </p>
1413
+ <ul>
1414
+ <li>
1415
+ A transition was cancelled because a new transition
1416
+ started while it was still running (<code
1417
+ >Transition superseded</code
1418
+ >)
1419
+ </li>
1420
+ <li>
1421
+ A transition was cancelled by a Transition Hook
1422
+ returning false
1423
+ </li>
1424
+ <li>
1425
+ A transition was redirected by a Transition Hook
1426
+ returning a [[TargetState]]
1427
+ </li>
1428
+ <li>
1429
+ A Transition Hook or resolve function threw an error
1430
+ </li>
1431
+ <li>A Transition Hook returned a rejected promise</li>
1432
+ <li>A resolve function returned a rejected promise</li>
1433
+ </ul>
1434
+ <p>
1435
+ To check the failure reason, inspect the return value of
1436
+ [[Transition.error]].
1437
+ </p>
1438
+ <p>
1439
+ Note: <code>onError</code> should be used for targeted
1440
+ error handling, or error recovery. For simple catch-all
1441
+ error reporting, use
1442
+ [[StateService.defaultErrorHandler]].
1443
+ </p>
1444
+ <h3 id="return-value-2" class="tsd-anchor-link">
1445
+ Return value<a
1446
+ href="#return-value-2"
1447
+ aria-label="Permalink"
1448
+ class="tsd-anchor-icon"
1449
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1450
+ <use
1451
+ href="../assets/icons.svg#icon-anchor"
1452
+ ></use></svg
1453
+ ></a>
1454
+ </h3>
1455
+ <p>
1456
+ Since the Transition is already completed, the hook's
1457
+ return value is ignored
1458
+ </p>
1459
+ </div>
1460
+ <div class="tsd-parameters">
1461
+ <h4 class="tsd-parameters-title">Parameters</h4>
1462
+ <ul class="tsd-parameter-list">
1463
+ <li>
1464
+ <span
1465
+ ><span class="tsd-kind-parameter"
1466
+ >matchCriteria</span
1467
+ >:
1468
+ <a
1469
+ href="router_transition_interface.HookMatchCriteria.html"
1470
+ class="tsd-signature-type tsd-kind-interface"
1471
+ >HookMatchCriteria</a
1472
+ ></span
1473
+ >
1474
+ <div class="tsd-comment tsd-typography">
1475
+ <p>
1476
+ defines which Transitions the Hook should be
1477
+ invoked for.
1478
+ </p>
1479
+ </div>
1480
+ <div class="tsd-comment tsd-typography"></div>
1481
+ </li>
1482
+ <li>
1483
+ <span
1484
+ ><span class="tsd-kind-parameter">callback</span>:
1485
+ <a
1486
+ href="router_transition_interface.TransitionHookFn.html"
1487
+ class="tsd-signature-type tsd-kind-interface"
1488
+ >TransitionHookFn</a
1489
+ ></span
1490
+ >
1491
+ <div class="tsd-comment tsd-typography">
1492
+ <p>
1493
+ the hook function which will be injected and
1494
+ invoked.
1495
+ </p>
1496
+ </div>
1497
+ <div class="tsd-comment tsd-typography"></div>
1498
+ </li>
1499
+ <li>
1500
+ <span
1501
+ ><code class="tsd-tag">Optional</code
1502
+ ><span class="tsd-kind-parameter">options</span>:
1503
+ <a
1504
+ href="router_transition_interface.HookRegOptions.html"
1505
+ class="tsd-signature-type tsd-kind-interface"
1506
+ >HookRegOptions</a
1507
+ ></span
1508
+ >
1509
+ </li>
1510
+ </ul>
1511
+ </div>
1512
+ <h4 class="tsd-returns-title">
1513
+ Returns <span class="tsd-signature-type">Function</span>
1514
+ </h4>
1515
+ <p>a function which deregisters the hook.</p>
1516
+ <div class="tsd-comment tsd-typography"></div>
1517
+ <aside class="tsd-sources">
1518
+ <ul>
1519
+ <li>
1520
+ Defined in
1521
+ <a
1522
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L768"
1523
+ >src/router/transition/interface.ts:768</a
1524
+ >
1525
+ </li>
1526
+ </ul>
1527
+ </aside>
1528
+ </div>
1529
+ </li>
1530
+ </ul>
1531
+ </section>
1532
+ <section class="tsd-panel tsd-member">
1533
+ <h3 class="tsd-anchor-link" id="onexit">
1534
+ <span>on<wbr />Exit</span
1535
+ ><a
1536
+ href="#onexit"
1537
+ aria-label="Permalink"
1538
+ class="tsd-anchor-icon"
1539
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1540
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1541
+ ></a>
1542
+ </h3>
1543
+ <ul class="tsd-signatures">
1544
+ <li class="">
1545
+ <div class="tsd-signature tsd-anchor-link" id="onexit-1">
1546
+ <span class="tsd-kind-call-signature">onExit</span
1547
+ ><span class="tsd-signature-symbol">(</span><br />    <span
1548
+ class="tsd-kind-parameter"
1549
+ >matchCriteria</span
1550
+ ><span class="tsd-signature-symbol">:</span>
1551
+ <a
1552
+ href="router_transition_interface.HookMatchCriteria.html"
1553
+ class="tsd-signature-type tsd-kind-interface"
1554
+ >HookMatchCriteria</a
1555
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1556
+ class="tsd-kind-parameter"
1557
+ >callback</span
1558
+ ><span class="tsd-signature-symbol">:</span>
1559
+ <a
1560
+ href="router_transition_interface.TransitionStateHookFn.html"
1561
+ class="tsd-signature-type tsd-kind-interface"
1562
+ >TransitionStateHookFn</a
1563
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1564
+ class="tsd-kind-parameter"
1565
+ >options</span
1566
+ ><span class="tsd-signature-symbol">?:</span>
1567
+ <a
1568
+ href="router_transition_interface.HookRegOptions.html"
1569
+ class="tsd-signature-type tsd-kind-interface"
1570
+ >HookRegOptions</a
1571
+ ><span class="tsd-signature-symbol">,</span><br /><span
1572
+ class="tsd-signature-symbol"
1573
+ >)</span
1574
+ ><span class="tsd-signature-symbol">:</span>
1575
+ <span class="tsd-signature-type">Function</span
1576
+ ><a
1577
+ href="#onexit-1"
1578
+ aria-label="Permalink"
1579
+ class="tsd-anchor-icon"
1580
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1581
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1582
+ ></a>
1583
+ </div>
1584
+ <div class="tsd-description">
1585
+ <div class="tsd-comment tsd-typography">
1586
+ <p>
1587
+ Registers a [[TransitionStateHookFn]], called when a
1588
+ specific state is exited.
1589
+ </p>
1590
+ <p>
1591
+ Registers a lifecycle hook, which is invoked (during a
1592
+ transition) when a specific state is being exited.
1593
+ </p>
1594
+ <p>
1595
+ Since this hook is run only when the specific state is
1596
+ being <em>exited</em>, it can be useful for performing
1597
+ tasks when leaving a submodule/feature area such as
1598
+ cleaning up a stateful service, or for preventing the
1599
+ user from leaving a state or submodule until some
1600
+ criteria is satisfied.
1601
+ </p>
1602
+ <p>
1603
+ See [[TransitionStateHookFn]] for the signature of the
1604
+ function.
1605
+ </p>
1606
+ <p>
1607
+ The [[HookMatchCriteria]] is used to determine which
1608
+ Transitions the hook should be invoked for.
1609
+ <code>onExit</code> hooks generally specify
1610
+ <code>{ exiting: 'somestate' }</code>. To match all
1611
+ Transitions, use an empty criteria object
1612
+ <code>{}</code>.
1613
+ </p>
1614
+ <h3 id="lifecycle-3" class="tsd-anchor-link">
1615
+ Lifecycle<a
1616
+ href="#lifecycle-3"
1617
+ aria-label="Permalink"
1618
+ class="tsd-anchor-icon"
1619
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1620
+ <use
1621
+ href="../assets/icons.svg#icon-anchor"
1622
+ ></use></svg
1623
+ ></a>
1624
+ </h3>
1625
+ <p>
1626
+ <code>onExit</code> hooks are invoked when the
1627
+ Transition is exiting a state. States are exited after
1628
+ any <code>onStart</code> phase is complete. If more than
1629
+ one state is being exited, the child states are exited
1630
+ first. The registered <code>onExit</code> hooks for a
1631
+ state are invoked in priority order.
1632
+ </p>
1633
+ <h3 id="return-value-3" class="tsd-anchor-link">
1634
+ Return value<a
1635
+ href="#return-value-3"
1636
+ aria-label="Permalink"
1637
+ class="tsd-anchor-icon"
1638
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1639
+ <use
1640
+ href="../assets/icons.svg#icon-anchor"
1641
+ ></use></svg
1642
+ ></a>
1643
+ </h3>
1644
+ <p>
1645
+ The hook's return value can be used to pause, cancel, or
1646
+ redirect the current Transition. See [[HookResult]] for
1647
+ more information.
1648
+ </p>
1649
+ <h3
1650
+ id="inside-a-state-declaration-1"
1651
+ class="tsd-anchor-link"
1652
+ >
1653
+ Inside a state declaration<a
1654
+ href="#inside-a-state-declaration-1"
1655
+ aria-label="Permalink"
1656
+ class="tsd-anchor-icon"
1657
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1658
+ <use
1659
+ href="../assets/icons.svg#icon-anchor"
1660
+ ></use></svg
1661
+ ></a>
1662
+ </h3>
1663
+ <p>
1664
+ Instead of registering <code>onExit</code> hooks using
1665
+ the [[TransitionService]], you may define an
1666
+ <code>onExit</code> hook directly on a state declaration
1667
+ (see: [[StateDeclaration.onExit]]).
1668
+ </p>
1669
+ <p>
1670
+ Note: A state declaration's <code>onExit</code> function
1671
+ is injected for Angular 1 only.
1672
+ </p>
1673
+ </div>
1674
+ <div class="tsd-parameters">
1675
+ <h4 class="tsd-parameters-title">Parameters</h4>
1676
+ <ul class="tsd-parameter-list">
1677
+ <li>
1678
+ <span
1679
+ ><span class="tsd-kind-parameter"
1680
+ >matchCriteria</span
1681
+ >:
1682
+ <a
1683
+ href="router_transition_interface.HookMatchCriteria.html"
1684
+ class="tsd-signature-type tsd-kind-interface"
1685
+ >HookMatchCriteria</a
1686
+ ></span
1687
+ >
1688
+ <div class="tsd-comment tsd-typography">
1689
+ <p>
1690
+ defines which Transitions the Hook should be
1691
+ invoked for.
1692
+ </p>
1693
+ </div>
1694
+ <div class="tsd-comment tsd-typography"></div>
1695
+ </li>
1696
+ <li>
1697
+ <span
1698
+ ><span class="tsd-kind-parameter">callback</span>:
1699
+ <a
1700
+ href="router_transition_interface.TransitionStateHookFn.html"
1701
+ class="tsd-signature-type tsd-kind-interface"
1702
+ >TransitionStateHookFn</a
1703
+ ></span
1704
+ >
1705
+ <div class="tsd-comment tsd-typography">
1706
+ <p>
1707
+ the hook function which will be injected and
1708
+ invoked.
1709
+ </p>
1710
+ </div>
1711
+ <div class="tsd-comment tsd-typography"></div>
1712
+ </li>
1713
+ <li>
1714
+ <span
1715
+ ><code class="tsd-tag">Optional</code
1716
+ ><span class="tsd-kind-parameter">options</span>:
1717
+ <a
1718
+ href="router_transition_interface.HookRegOptions.html"
1719
+ class="tsd-signature-type tsd-kind-interface"
1720
+ >HookRegOptions</a
1721
+ ></span
1722
+ >
1723
+ </li>
1724
+ </ul>
1725
+ </div>
1726
+ <h4 class="tsd-returns-title">
1727
+ Returns <span class="tsd-signature-type">Function</span>
1728
+ </h4>
1729
+ <p>a function which deregisters the hook.</p>
1730
+ <div class="tsd-comment tsd-typography"></div>
1731
+ <aside class="tsd-sources">
1732
+ <ul>
1733
+ <li>
1734
+ Defined in
1735
+ <a
1736
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L658"
1737
+ >src/router/transition/interface.ts:658</a
1738
+ >
1739
+ </li>
1740
+ </ul>
1741
+ </aside>
1742
+ </div>
1743
+ </li>
1744
+ </ul>
1745
+ </section>
1746
+ <section class="tsd-panel tsd-member">
1747
+ <h3 class="tsd-anchor-link" id="onfinish">
1748
+ <span>on<wbr />Finish</span
1749
+ ><a
1750
+ href="#onfinish"
1751
+ aria-label="Permalink"
1752
+ class="tsd-anchor-icon"
1753
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1754
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1755
+ ></a>
1756
+ </h3>
1757
+ <ul class="tsd-signatures">
1758
+ <li class="">
1759
+ <div class="tsd-signature tsd-anchor-link" id="onfinish-1">
1760
+ <span class="tsd-kind-call-signature">onFinish</span
1761
+ ><span class="tsd-signature-symbol">(</span><br />    <span
1762
+ class="tsd-kind-parameter"
1763
+ >matchCriteria</span
1764
+ ><span class="tsd-signature-symbol">:</span>
1765
+ <a
1766
+ href="router_transition_interface.HookMatchCriteria.html"
1767
+ class="tsd-signature-type tsd-kind-interface"
1768
+ >HookMatchCriteria</a
1769
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1770
+ class="tsd-kind-parameter"
1771
+ >callback</span
1772
+ ><span class="tsd-signature-symbol">:</span>
1773
+ <a
1774
+ href="router_transition_interface.TransitionHookFn.html"
1775
+ class="tsd-signature-type tsd-kind-interface"
1776
+ >TransitionHookFn</a
1777
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1778
+ class="tsd-kind-parameter"
1779
+ >options</span
1780
+ ><span class="tsd-signature-symbol">?:</span>
1781
+ <a
1782
+ href="router_transition_interface.HookRegOptions.html"
1783
+ class="tsd-signature-type tsd-kind-interface"
1784
+ >HookRegOptions</a
1785
+ ><span class="tsd-signature-symbol">,</span><br /><span
1786
+ class="tsd-signature-symbol"
1787
+ >)</span
1788
+ ><span class="tsd-signature-symbol">:</span>
1789
+ <span class="tsd-signature-type">Function</span
1790
+ ><a
1791
+ href="#onfinish-1"
1792
+ aria-label="Permalink"
1793
+ class="tsd-anchor-icon"
1794
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1795
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1796
+ ></a>
1797
+ </div>
1798
+ <div class="tsd-description">
1799
+ <div class="tsd-comment tsd-typography">
1800
+ <p>
1801
+ Registers a [[TransitionHookFn]], called
1802
+ <em>just before a transition finishes</em>.
1803
+ </p>
1804
+ <p>
1805
+ Registers a transition lifecycle hook, which is invoked
1806
+ just before a transition finishes. This hook is a last
1807
+ chance to cancel or redirect a transition.
1808
+ </p>
1809
+ <p>
1810
+ See [[TransitionHookFn]] for the signature of the
1811
+ function.
1812
+ </p>
1813
+ <p>
1814
+ The [[HookMatchCriteria]] is used to determine which
1815
+ Transitions the hook should be invoked for. To match all
1816
+ Transitions, use an empty criteria object
1817
+ <code>{}</code>.
1818
+ </p>
1819
+ <h3 id="lifecycle-4" class="tsd-anchor-link">
1820
+ Lifecycle<a
1821
+ href="#lifecycle-4"
1822
+ aria-label="Permalink"
1823
+ class="tsd-anchor-icon"
1824
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1825
+ <use
1826
+ href="../assets/icons.svg#icon-anchor"
1827
+ ></use></svg
1828
+ ></a>
1829
+ </h3>
1830
+ <p>
1831
+ <code>onFinish</code> hooks are invoked after the
1832
+ <code>onEnter</code> phase is complete. These hooks are
1833
+ invoked just before the transition is
1834
+ &quot;committed&quot;. Each hook is invoked in priority
1835
+ order.
1836
+ </p>
1837
+ <h3 id="return-value-4" class="tsd-anchor-link">
1838
+ Return value<a
1839
+ href="#return-value-4"
1840
+ aria-label="Permalink"
1841
+ class="tsd-anchor-icon"
1842
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1843
+ <use
1844
+ href="../assets/icons.svg#icon-anchor"
1845
+ ></use></svg
1846
+ ></a>
1847
+ </h3>
1848
+ <p>
1849
+ The hook's return value can be used to pause, cancel, or
1850
+ redirect the current Transition. See [[HookResult]] for
1851
+ more information.
1852
+ </p>
1853
+ </div>
1854
+ <div class="tsd-parameters">
1855
+ <h4 class="tsd-parameters-title">Parameters</h4>
1856
+ <ul class="tsd-parameter-list">
1857
+ <li>
1858
+ <span
1859
+ ><span class="tsd-kind-parameter"
1860
+ >matchCriteria</span
1861
+ >:
1862
+ <a
1863
+ href="router_transition_interface.HookMatchCriteria.html"
1864
+ class="tsd-signature-type tsd-kind-interface"
1865
+ >HookMatchCriteria</a
1866
+ ></span
1867
+ >
1868
+ <div class="tsd-comment tsd-typography">
1869
+ <p>
1870
+ defines which Transitions the Hook should be
1871
+ invoked for.
1872
+ </p>
1873
+ </div>
1874
+ <div class="tsd-comment tsd-typography"></div>
1875
+ </li>
1876
+ <li>
1877
+ <span
1878
+ ><span class="tsd-kind-parameter">callback</span>:
1879
+ <a
1880
+ href="router_transition_interface.TransitionHookFn.html"
1881
+ class="tsd-signature-type tsd-kind-interface"
1882
+ >TransitionHookFn</a
1883
+ ></span
1884
+ >
1885
+ <div class="tsd-comment tsd-typography">
1886
+ <p>
1887
+ the hook function which will be injected and
1888
+ invoked.
1889
+ </p>
1890
+ </div>
1891
+ <div class="tsd-comment tsd-typography"></div>
1892
+ </li>
1893
+ <li>
1894
+ <span
1895
+ ><code class="tsd-tag">Optional</code
1896
+ ><span class="tsd-kind-parameter">options</span>:
1897
+ <a
1898
+ href="router_transition_interface.HookRegOptions.html"
1899
+ class="tsd-signature-type tsd-kind-interface"
1900
+ >HookRegOptions</a
1901
+ ></span
1902
+ >
1903
+ </li>
1904
+ </ul>
1905
+ </div>
1906
+ <h4 class="tsd-returns-title">
1907
+ Returns <span class="tsd-signature-type">Function</span>
1908
+ </h4>
1909
+ <p>a function which deregisters the hook.</p>
1910
+ <div class="tsd-comment tsd-typography"></div>
1911
+ <aside class="tsd-sources">
1912
+ <ul>
1913
+ <li>
1914
+ Defined in
1915
+ <a
1916
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L690"
1917
+ >src/router/transition/interface.ts:690</a
1918
+ >
1919
+ </li>
1920
+ </ul>
1921
+ </aside>
1922
+ </div>
1923
+ </li>
1924
+ </ul>
1925
+ </section>
1926
+ <section class="tsd-panel tsd-member">
1927
+ <h3 class="tsd-anchor-link" id="onretain">
1928
+ <span>on<wbr />Retain</span
1929
+ ><a
1930
+ href="#onretain"
1931
+ aria-label="Permalink"
1932
+ class="tsd-anchor-icon"
1933
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1934
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1935
+ ></a>
1936
+ </h3>
1937
+ <ul class="tsd-signatures">
1938
+ <li class="">
1939
+ <div class="tsd-signature tsd-anchor-link" id="onretain-1">
1940
+ <span class="tsd-kind-call-signature">onRetain</span
1941
+ ><span class="tsd-signature-symbol">(</span><br />    <span
1942
+ class="tsd-kind-parameter"
1943
+ >matchCriteria</span
1944
+ ><span class="tsd-signature-symbol">:</span>
1945
+ <a
1946
+ href="router_transition_interface.HookMatchCriteria.html"
1947
+ class="tsd-signature-type tsd-kind-interface"
1948
+ >HookMatchCriteria</a
1949
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1950
+ class="tsd-kind-parameter"
1951
+ >callback</span
1952
+ ><span class="tsd-signature-symbol">:</span>
1953
+ <a
1954
+ href="router_transition_interface.TransitionStateHookFn.html"
1955
+ class="tsd-signature-type tsd-kind-interface"
1956
+ >TransitionStateHookFn</a
1957
+ ><span class="tsd-signature-symbol">,</span><br />    <span
1958
+ class="tsd-kind-parameter"
1959
+ >options</span
1960
+ ><span class="tsd-signature-symbol">?:</span>
1961
+ <a
1962
+ href="router_transition_interface.HookRegOptions.html"
1963
+ class="tsd-signature-type tsd-kind-interface"
1964
+ >HookRegOptions</a
1965
+ ><span class="tsd-signature-symbol">,</span><br /><span
1966
+ class="tsd-signature-symbol"
1967
+ >)</span
1968
+ ><span class="tsd-signature-symbol">:</span>
1969
+ <span class="tsd-signature-type">Function</span
1970
+ ><a
1971
+ href="#onretain-1"
1972
+ aria-label="Permalink"
1973
+ class="tsd-anchor-icon"
1974
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
1975
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
1976
+ ></a>
1977
+ </div>
1978
+ <div class="tsd-description">
1979
+ <div class="tsd-comment tsd-typography">
1980
+ <p>
1981
+ Registers a [[TransitionStateHookFn]], called when a
1982
+ specific state is retained/kept.
1983
+ </p>
1984
+ <p>
1985
+ Registers a lifecycle hook, which is invoked (during a
1986
+ transition) for a specific state that was previously
1987
+ active will remain active (is not being entered nor
1988
+ exited).
1989
+ </p>
1990
+ <p>
1991
+ This hook is invoked when a state is
1992
+ &quot;retained&quot; or &quot;kept&quot;. It means the
1993
+ transition is coming <em>from</em> a substate of the
1994
+ retained state <em>to</em> a substate of the retained
1995
+ state. This hook can be used to perform actions when the
1996
+ user moves from one substate to another, such as between
1997
+ steps in a wizard.
1998
+ </p>
1999
+ <p>
2000
+ The [[HookMatchCriteria]] is used to determine which
2001
+ Transitions the hook should be invoked for.
2002
+ <code>onRetain</code> hooks generally specify
2003
+ <code>{ retained: 'somestate' }</code>. To match all
2004
+ Transitions, use an empty criteria object
2005
+ <code>{}</code>.
2006
+ </p>
2007
+ <h3 id="lifecycle-5" class="tsd-anchor-link">
2008
+ Lifecycle<a
2009
+ href="#lifecycle-5"
2010
+ aria-label="Permalink"
2011
+ class="tsd-anchor-icon"
2012
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2013
+ <use
2014
+ href="../assets/icons.svg#icon-anchor"
2015
+ ></use></svg
2016
+ ></a>
2017
+ </h3>
2018
+ <p>
2019
+ <code>onRetain</code> hooks are invoked after any
2020
+ <code>onExit</code> hooks have been fired. If more than
2021
+ one state is retained, the child states'
2022
+ <code>onRetain</code> hooks are invoked first. The
2023
+ registered <code>onRetain</code> hooks for a state are
2024
+ invoked in priority order.
2025
+ </p>
2026
+ <h3 id="return-value-5" class="tsd-anchor-link">
2027
+ Return value<a
2028
+ href="#return-value-5"
2029
+ aria-label="Permalink"
2030
+ class="tsd-anchor-icon"
2031
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2032
+ <use
2033
+ href="../assets/icons.svg#icon-anchor"
2034
+ ></use></svg
2035
+ ></a>
2036
+ </h3>
2037
+ <p>
2038
+ The hook's return value can be used to pause, cancel, or
2039
+ redirect the current Transition. See [[HookResult]] for
2040
+ more information.
2041
+ </p>
2042
+ <h3
2043
+ id="inside-a-state-declaration-2"
2044
+ class="tsd-anchor-link"
2045
+ >
2046
+ Inside a state declaration<a
2047
+ href="#inside-a-state-declaration-2"
2048
+ aria-label="Permalink"
2049
+ class="tsd-anchor-icon"
2050
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2051
+ <use
2052
+ href="../assets/icons.svg#icon-anchor"
2053
+ ></use></svg
2054
+ ></a>
2055
+ </h3>
2056
+ <p>
2057
+ Instead of registering <code>onRetain</code> hooks using
2058
+ the [[TransitionService]], you may define an
2059
+ <code>onRetain</code> hook directly on a state
2060
+ declaration (see: [[StateDeclaration.onRetain]]).
2061
+ </p>
2062
+ <p>
2063
+ Note: A state declaration's
2064
+ <code>onRetain</code> function is injected for Angular 1
2065
+ only.
2066
+ </p>
2067
+ </div>
2068
+ <div class="tsd-parameters">
2069
+ <h4 class="tsd-parameters-title">Parameters</h4>
2070
+ <ul class="tsd-parameter-list">
2071
+ <li>
2072
+ <span
2073
+ ><span class="tsd-kind-parameter"
2074
+ >matchCriteria</span
2075
+ >:
2076
+ <a
2077
+ href="router_transition_interface.HookMatchCriteria.html"
2078
+ class="tsd-signature-type tsd-kind-interface"
2079
+ >HookMatchCriteria</a
2080
+ ></span
2081
+ >
2082
+ <div class="tsd-comment tsd-typography">
2083
+ <p>
2084
+ defines which Transitions the Hook should be
2085
+ invoked for.
2086
+ </p>
2087
+ </div>
2088
+ <div class="tsd-comment tsd-typography"></div>
2089
+ </li>
2090
+ <li>
2091
+ <span
2092
+ ><span class="tsd-kind-parameter">callback</span>:
2093
+ <a
2094
+ href="router_transition_interface.TransitionStateHookFn.html"
2095
+ class="tsd-signature-type tsd-kind-interface"
2096
+ >TransitionStateHookFn</a
2097
+ ></span
2098
+ >
2099
+ <div class="tsd-comment tsd-typography">
2100
+ <p>
2101
+ the hook function which will be injected and
2102
+ invoked.
2103
+ </p>
2104
+ </div>
2105
+ <div class="tsd-comment tsd-typography"></div>
2106
+ </li>
2107
+ <li>
2108
+ <span
2109
+ ><code class="tsd-tag">Optional</code
2110
+ ><span class="tsd-kind-parameter">options</span>:
2111
+ <a
2112
+ href="router_transition_interface.HookRegOptions.html"
2113
+ class="tsd-signature-type tsd-kind-interface"
2114
+ >HookRegOptions</a
2115
+ ></span
2116
+ >
2117
+ </li>
2118
+ </ul>
2119
+ </div>
2120
+ <h4 class="tsd-returns-title">
2121
+ Returns <span class="tsd-signature-type">Function</span>
2122
+ </h4>
2123
+ <p>a function which deregisters the hook.</p>
2124
+ <div class="tsd-comment tsd-typography"></div>
2125
+ <aside class="tsd-sources">
2126
+ <ul>
2127
+ <li>
2128
+ Defined in
2129
+ <a
2130
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L614"
2131
+ >src/router/transition/interface.ts:614</a
2132
+ >
2133
+ </li>
2134
+ </ul>
2135
+ </aside>
2136
+ </div>
2137
+ </li>
2138
+ </ul>
2139
+ </section>
2140
+ <section class="tsd-panel tsd-member">
2141
+ <h3 class="tsd-anchor-link" id="onstart">
2142
+ <span>on<wbr />Start</span
2143
+ ><a
2144
+ href="#onstart"
2145
+ aria-label="Permalink"
2146
+ class="tsd-anchor-icon"
2147
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2148
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
2149
+ ></a>
2150
+ </h3>
2151
+ <ul class="tsd-signatures">
2152
+ <li class="">
2153
+ <div class="tsd-signature tsd-anchor-link" id="onstart-1">
2154
+ <span class="tsd-kind-call-signature">onStart</span
2155
+ ><span class="tsd-signature-symbol">(</span><br />    <span
2156
+ class="tsd-kind-parameter"
2157
+ >matchCriteria</span
2158
+ ><span class="tsd-signature-symbol">:</span>
2159
+ <a
2160
+ href="router_transition_interface.HookMatchCriteria.html"
2161
+ class="tsd-signature-type tsd-kind-interface"
2162
+ >HookMatchCriteria</a
2163
+ ><span class="tsd-signature-symbol">,</span><br />    <span
2164
+ class="tsd-kind-parameter"
2165
+ >callback</span
2166
+ ><span class="tsd-signature-symbol">:</span>
2167
+ <a
2168
+ href="router_transition_interface.TransitionHookFn.html"
2169
+ class="tsd-signature-type tsd-kind-interface"
2170
+ >TransitionHookFn</a
2171
+ ><span class="tsd-signature-symbol">,</span><br />    <span
2172
+ class="tsd-kind-parameter"
2173
+ >options</span
2174
+ ><span class="tsd-signature-symbol">?:</span>
2175
+ <a
2176
+ href="router_transition_interface.HookRegOptions.html"
2177
+ class="tsd-signature-type tsd-kind-interface"
2178
+ >HookRegOptions</a
2179
+ ><span class="tsd-signature-symbol">,</span><br /><span
2180
+ class="tsd-signature-symbol"
2181
+ >)</span
2182
+ ><span class="tsd-signature-symbol">:</span>
2183
+ <span class="tsd-signature-type">Function</span
2184
+ ><a
2185
+ href="#onstart-1"
2186
+ aria-label="Permalink"
2187
+ class="tsd-anchor-icon"
2188
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2189
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
2190
+ ></a>
2191
+ </div>
2192
+ <div class="tsd-description">
2193
+ <div class="tsd-comment tsd-typography">
2194
+ <p>
2195
+ Registers a [[TransitionHookFn]], called when a
2196
+ transition starts.
2197
+ </p>
2198
+ <p>
2199
+ Registers a transition lifecycle hook, which is invoked
2200
+ as a transition starts running. This hook can be useful
2201
+ to perform some asynchronous action before completing a
2202
+ transition.
2203
+ </p>
2204
+ <p>
2205
+ See [[TransitionHookFn]] for the signature of the
2206
+ function.
2207
+ </p>
2208
+ <p>
2209
+ The [[HookMatchCriteria]] is used to determine which
2210
+ Transitions the hook should be invoked for. To match all
2211
+ Transitions, use an empty criteria object
2212
+ <code>{}</code>.
2213
+ </p>
2214
+ <h3 id="lifecycle-6" class="tsd-anchor-link">
2215
+ Lifecycle<a
2216
+ href="#lifecycle-6"
2217
+ aria-label="Permalink"
2218
+ class="tsd-anchor-icon"
2219
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2220
+ <use
2221
+ href="../assets/icons.svg#icon-anchor"
2222
+ ></use></svg
2223
+ ></a>
2224
+ </h3>
2225
+ <p>
2226
+ <code>onStart</code> hooks are invoked asynchronously
2227
+ when the Transition starts running. This happens after
2228
+ the <code>onBefore</code> phase is complete. At this
2229
+ point, the Transition has not yet exited nor entered any
2230
+ states. The registered <code>onStart</code> hooks are
2231
+ invoked in priority order.
2232
+ </p>
2233
+ <p>
2234
+ Note: A built-in <code>onStart</code> hook with high
2235
+ priority is used to fetch any eager resolve data.
2236
+ </p>
2237
+ <h3 id="return-value-6" class="tsd-anchor-link">
2238
+ Return value<a
2239
+ href="#return-value-6"
2240
+ aria-label="Permalink"
2241
+ class="tsd-anchor-icon"
2242
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2243
+ <use
2244
+ href="../assets/icons.svg#icon-anchor"
2245
+ ></use></svg
2246
+ ></a>
2247
+ </h3>
2248
+ <p>
2249
+ The hook's return value can be used to pause, cancel, or
2250
+ redirect the current Transition. See [[HookResult]] for
2251
+ more information.
2252
+ </p>
2253
+ <h3 id="example-5" class="tsd-anchor-link">
2254
+ Example<a
2255
+ href="#example-5"
2256
+ aria-label="Permalink"
2257
+ class="tsd-anchor-icon"
2258
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2259
+ <use
2260
+ href="../assets/icons.svg#icon-anchor"
2261
+ ></use></svg
2262
+ ></a>
2263
+ </h3>
2264
+ <h4 id="login-during-transition" class="tsd-anchor-link">
2265
+ Login during transition<a
2266
+ href="#login-during-transition"
2267
+ aria-label="Permalink"
2268
+ class="tsd-anchor-icon"
2269
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2270
+ <use
2271
+ href="../assets/icons.svg#icon-anchor"
2272
+ ></use></svg
2273
+ ></a>
2274
+ </h4>
2275
+ <p>
2276
+ This example intercepts any transition to a state which
2277
+ requires authentication, when the user is not currently
2278
+ authenticated. It allows the user to authenticate
2279
+ asynchronously, then resumes the transition. If the user
2280
+ did not authenticate successfully, it redirects to the
2281
+ &quot;guest&quot; state, which does not require
2282
+ authentication.
2283
+ </p>
2284
+ <p>This example assumes:</p>
2285
+ <ul>
2286
+ <li>
2287
+ a state tree where all states which require
2288
+ authentication are children of a parent
2289
+ <code>'auth'</code> state.
2290
+ </li>
2291
+ <li>
2292
+ <code>MyAuthService.isAuthenticated()</code>
2293
+ synchronously returns a boolean.
2294
+ </li>
2295
+ <li>
2296
+ <code>MyAuthService.authenticate()</code> presents a
2297
+ login dialog, and returns a promise which is resolved
2298
+ or rejected, whether or not the login attempt was
2299
+ successful.
2300
+ </li>
2301
+ </ul>
2302
+ <h4 id="example-6" class="tsd-anchor-link">
2303
+ Example:<a
2304
+ href="#example-6"
2305
+ aria-label="Permalink"
2306
+ class="tsd-anchor-icon"
2307
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2308
+ <use
2309
+ href="../assets/icons.svg#icon-anchor"
2310
+ ></use></svg
2311
+ ></a>
2312
+ </h4>
2313
+ <pre><code class="js"><span class="hl-9">// ng1</span><br/><span class="hl-10">$transitions</span><span class="hl-1">.</span><span class="hl-0">onStart</span><span class="hl-1">( { </span><span class="hl-10">to:</span><span class="hl-1"> </span><span class="hl-2">&#39;auth.**&#39;</span><span class="hl-1"> }, </span><span class="hl-11">function</span><span class="hl-1">(</span><span class="hl-10">trans</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">$state</span><span class="hl-1"> = </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-10">router</span><span class="hl-1">.</span><span class="hl-10">stateService</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-11">var</span><span class="hl-1"> </span><span class="hl-10">MyAuthService</span><span class="hl-1"> = </span><span class="hl-10">trans</span><span class="hl-1">.</span><span class="hl-0">injector</span><span class="hl-1">().</span><span class="hl-0">get</span><span class="hl-1">(</span><span class="hl-2">&#39;MyAuthService&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-9">// If the user is not authenticated</span><br/><span class="hl-1"> </span><span class="hl-8">if</span><span class="hl-1"> (!</span><span class="hl-10">MyAuthService</span><span class="hl-1">.</span><span class="hl-0">isAuthenticated</span><span class="hl-1">()) {</span><br/><br/><span class="hl-1"> </span><span class="hl-9">// Then return a promise for a successful login.</span><br/><span class="hl-1"> </span><span class="hl-9">// The transition will wait for this promise to settle</span><br/><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> </span><span class="hl-10">MyAuthService</span><span class="hl-1">.</span><span class="hl-0">authenticate</span><span class="hl-1">().</span><span class="hl-0">catch</span><span class="hl-1">(</span><span class="hl-11">function</span><span class="hl-1">() {</span><br/><br/><span class="hl-1"> </span><span class="hl-9">// If the authenticate() method failed for whatever reason,</span><br/><span class="hl-1"> </span><span class="hl-9">// redirect to a &#39;guest&#39; state which doesn&#39;t require auth.</span><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> </span><span class="hl-10">$state</span><span class="hl-1">.</span><span class="hl-0">target</span><span class="hl-1">(</span><span class="hl-2">&quot;guest&quot;</span><span class="hl-1">);</span><br/><span class="hl-1"> });</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span>
2314
+ </code><button type="button">Copy</button></pre>
2315
+ </div>
2316
+ <div class="tsd-parameters">
2317
+ <h4 class="tsd-parameters-title">Parameters</h4>
2318
+ <ul class="tsd-parameter-list">
2319
+ <li>
2320
+ <span
2321
+ ><span class="tsd-kind-parameter"
2322
+ >matchCriteria</span
2323
+ >:
2324
+ <a
2325
+ href="router_transition_interface.HookMatchCriteria.html"
2326
+ class="tsd-signature-type tsd-kind-interface"
2327
+ >HookMatchCriteria</a
2328
+ ></span
2329
+ >
2330
+ <div class="tsd-comment tsd-typography">
2331
+ <p>
2332
+ defines which Transitions the Hook should be
2333
+ invoked for.
2334
+ </p>
2335
+ </div>
2336
+ <div class="tsd-comment tsd-typography"></div>
2337
+ </li>
2338
+ <li>
2339
+ <span
2340
+ ><span class="tsd-kind-parameter">callback</span>:
2341
+ <a
2342
+ href="router_transition_interface.TransitionHookFn.html"
2343
+ class="tsd-signature-type tsd-kind-interface"
2344
+ >TransitionHookFn</a
2345
+ ></span
2346
+ >
2347
+ <div class="tsd-comment tsd-typography">
2348
+ <p>
2349
+ the hook function which will be injected and
2350
+ invoked.
2351
+ </p>
2352
+ </div>
2353
+ <div class="tsd-comment tsd-typography"></div>
2354
+ </li>
2355
+ <li>
2356
+ <span
2357
+ ><code class="tsd-tag">Optional</code
2358
+ ><span class="tsd-kind-parameter">options</span>:
2359
+ <a
2360
+ href="router_transition_interface.HookRegOptions.html"
2361
+ class="tsd-signature-type tsd-kind-interface"
2362
+ >HookRegOptions</a
2363
+ ></span
2364
+ >
2365
+ </li>
2366
+ </ul>
2367
+ </div>
2368
+ <h4 class="tsd-returns-title">
2369
+ Returns <span class="tsd-signature-type">Function</span>
2370
+ </h4>
2371
+ <p>a function which deregisters the hook.</p>
2372
+ <div class="tsd-comment tsd-typography"></div>
2373
+ <aside class="tsd-sources">
2374
+ <ul>
2375
+ <li>
2376
+ Defined in
2377
+ <a
2378
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L496"
2379
+ >src/router/transition/interface.ts:496</a
2380
+ >
2381
+ </li>
2382
+ </ul>
2383
+ </aside>
2384
+ </div>
2385
+ </li>
2386
+ </ul>
2387
+ </section>
2388
+ <section class="tsd-panel tsd-member">
2389
+ <h3 class="tsd-anchor-link" id="onsuccess">
2390
+ <span>on<wbr />Success</span
2391
+ ><a
2392
+ href="#onsuccess"
2393
+ aria-label="Permalink"
2394
+ class="tsd-anchor-icon"
2395
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2396
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
2397
+ ></a>
2398
+ </h3>
2399
+ <ul class="tsd-signatures">
2400
+ <li class="">
2401
+ <div class="tsd-signature tsd-anchor-link" id="onsuccess-1">
2402
+ <span class="tsd-kind-call-signature">onSuccess</span
2403
+ ><span class="tsd-signature-symbol">(</span><br />    <span
2404
+ class="tsd-kind-parameter"
2405
+ >matchCriteria</span
2406
+ ><span class="tsd-signature-symbol">:</span>
2407
+ <a
2408
+ href="router_transition_interface.HookMatchCriteria.html"
2409
+ class="tsd-signature-type tsd-kind-interface"
2410
+ >HookMatchCriteria</a
2411
+ ><span class="tsd-signature-symbol">,</span><br />    <span
2412
+ class="tsd-kind-parameter"
2413
+ >callback</span
2414
+ ><span class="tsd-signature-symbol">:</span>
2415
+ <a
2416
+ href="router_transition_interface.TransitionHookFn.html"
2417
+ class="tsd-signature-type tsd-kind-interface"
2418
+ >TransitionHookFn</a
2419
+ ><span class="tsd-signature-symbol">,</span><br />    <span
2420
+ class="tsd-kind-parameter"
2421
+ >options</span
2422
+ ><span class="tsd-signature-symbol">?:</span>
2423
+ <a
2424
+ href="router_transition_interface.HookRegOptions.html"
2425
+ class="tsd-signature-type tsd-kind-interface"
2426
+ >HookRegOptions</a
2427
+ ><span class="tsd-signature-symbol">,</span><br /><span
2428
+ class="tsd-signature-symbol"
2429
+ >)</span
2430
+ ><span class="tsd-signature-symbol">:</span>
2431
+ <span class="tsd-signature-type">Function</span
2432
+ ><a
2433
+ href="#onsuccess-1"
2434
+ aria-label="Permalink"
2435
+ class="tsd-anchor-icon"
2436
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2437
+ <use href="../assets/icons.svg#icon-anchor"></use></svg
2438
+ ></a>
2439
+ </div>
2440
+ <div class="tsd-description">
2441
+ <div class="tsd-comment tsd-typography">
2442
+ <p>
2443
+ Registers a [[TransitionHookFn]], called after a
2444
+ successful transition completed.
2445
+ </p>
2446
+ <p>
2447
+ Registers a transition lifecycle hook, which is invoked
2448
+ after a transition successfully completes.
2449
+ </p>
2450
+ <p>
2451
+ See [[TransitionHookFn]] for the signature of the
2452
+ function.
2453
+ </p>
2454
+ <p>
2455
+ The [[HookMatchCriteria]] is used to determine which
2456
+ Transitions the hook should be invoked for. To match all
2457
+ Transitions, use an empty criteria object
2458
+ <code>{}</code>.
2459
+ </p>
2460
+ <h3 id="lifecycle-7" class="tsd-anchor-link">
2461
+ Lifecycle<a
2462
+ href="#lifecycle-7"
2463
+ aria-label="Permalink"
2464
+ class="tsd-anchor-icon"
2465
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2466
+ <use
2467
+ href="../assets/icons.svg#icon-anchor"
2468
+ ></use></svg
2469
+ ></a>
2470
+ </h3>
2471
+ <p>
2472
+ <code>onSuccess</code> hooks are chained off the
2473
+ Transition's promise (see [[Transition.promise]]). If
2474
+ the Transition is successful and its promise is
2475
+ resolved, then the <code>onSuccess</code> hooks are
2476
+ invoked. Since these hooks are run after the transition
2477
+ is over, their return value is ignored. The
2478
+ <code>onSuccess</code> hooks are invoked in priority
2479
+ order.
2480
+ </p>
2481
+ <h3 id="return-value-7" class="tsd-anchor-link">
2482
+ Return value<a
2483
+ href="#return-value-7"
2484
+ aria-label="Permalink"
2485
+ class="tsd-anchor-icon"
2486
+ ><svg viewBox="0 0 24 24" aria-hidden="true">
2487
+ <use
2488
+ href="../assets/icons.svg#icon-anchor"
2489
+ ></use></svg
2490
+ ></a>
2491
+ </h3>
2492
+ <p>
2493
+ Since the Transition is already completed, the hook's
2494
+ return value is ignored
2495
+ </p>
2496
+ </div>
2497
+ <div class="tsd-parameters">
2498
+ <h4 class="tsd-parameters-title">Parameters</h4>
2499
+ <ul class="tsd-parameter-list">
2500
+ <li>
2501
+ <span
2502
+ ><span class="tsd-kind-parameter"
2503
+ >matchCriteria</span
2504
+ >:
2505
+ <a
2506
+ href="router_transition_interface.HookMatchCriteria.html"
2507
+ class="tsd-signature-type tsd-kind-interface"
2508
+ >HookMatchCriteria</a
2509
+ ></span
2510
+ >
2511
+ <div class="tsd-comment tsd-typography">
2512
+ <p>
2513
+ defines which Transitions the Hook should be
2514
+ invoked for.
2515
+ </p>
2516
+ </div>
2517
+ <div class="tsd-comment tsd-typography"></div>
2518
+ </li>
2519
+ <li>
2520
+ <span
2521
+ ><span class="tsd-kind-parameter">callback</span>:
2522
+ <a
2523
+ href="router_transition_interface.TransitionHookFn.html"
2524
+ class="tsd-signature-type tsd-kind-interface"
2525
+ >TransitionHookFn</a
2526
+ ></span
2527
+ >
2528
+ <div class="tsd-comment tsd-typography">
2529
+ <p>
2530
+ the hook function which will be injected and
2531
+ invoked.
2532
+ </p>
2533
+ </div>
2534
+ <div class="tsd-comment tsd-typography"></div>
2535
+ </li>
2536
+ <li>
2537
+ <span
2538
+ ><code class="tsd-tag">Optional</code
2539
+ ><span class="tsd-kind-parameter">options</span>:
2540
+ <a
2541
+ href="router_transition_interface.HookRegOptions.html"
2542
+ class="tsd-signature-type tsd-kind-interface"
2543
+ >HookRegOptions</a
2544
+ ></span
2545
+ >
2546
+ </li>
2547
+ </ul>
2548
+ </div>
2549
+ <h4 class="tsd-returns-title">
2550
+ Returns <span class="tsd-signature-type">Function</span>
2551
+ </h4>
2552
+ <p>a function which deregisters the hook.</p>
2553
+ <div class="tsd-comment tsd-typography"></div>
2554
+ <aside class="tsd-sources">
2555
+ <ul>
2556
+ <li>
2557
+ Defined in
2558
+ <a
2559
+ href="https://github.com/Angular-Wave/angular.ts/blob/e14e445af22a0918c5aea3160db49b26512bc6c0/src/router/transition/interface.ts#L721"
2560
+ >src/router/transition/interface.ts:721</a
2561
+ >
2562
+ </li>
2563
+ </ul>
2564
+ </aside>
2565
+ </div>
2566
+ </li>
2567
+ </ul>
2568
+ </section>
2569
+ </section>
2570
+ </details>
2571
+ </div>
2572
+ <div class="col-sidebar">
2573
+ <div class="page-menu">
2574
+ <div class="tsd-navigation settings">
2575
+ <details class="tsd-accordion">
2576
+ <summary class="tsd-accordion-summary">
2577
+ <svg
2578
+ width="20"
2579
+ height="20"
2580
+ viewBox="0 0 24 24"
2581
+ fill="none"
2582
+ aria-hidden="true"
2583
+ >
2584
+ <use href="../assets/icons.svg#icon-chevronDown"></use>
2585
+ </svg>
2586
+ <h3>Settings</h3>
2587
+ </summary>
2588
+ <div class="tsd-accordion-details">
2589
+ <div class="tsd-filter-visibility">
2590
+ <span class="settings-label">Member Visibility</span>
2591
+ <ul id="tsd-filter-options">
2592
+ <li class="tsd-filter-item">
2593
+ <label class="tsd-filter-input"
2594
+ ><input
2595
+ type="checkbox"
2596
+ id="tsd-filter-protected"
2597
+ name="protected"
2598
+ /><svg
2599
+ width="32"
2600
+ height="32"
2601
+ viewBox="0 0 32 32"
2602
+ aria-hidden="true"
2603
+ >
2604
+ <rect
2605
+ class="tsd-checkbox-background"
2606
+ width="30"
2607
+ height="30"
2608
+ x="1"
2609
+ y="1"
2610
+ rx="6"
2611
+ fill="none"
2612
+ ></rect>
2613
+ <path
2614
+ class="tsd-checkbox-checkmark"
2615
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
2616
+ stroke="none"
2617
+ stroke-width="3.5"
2618
+ stroke-linejoin="round"
2619
+ fill="none"
2620
+ ></path></svg
2621
+ ><span>Protected</span></label
2622
+ >
2623
+ </li>
2624
+ <li class="tsd-filter-item">
2625
+ <label class="tsd-filter-input"
2626
+ ><input
2627
+ type="checkbox"
2628
+ id="tsd-filter-inherited"
2629
+ name="inherited"
2630
+ checked
2631
+ /><svg
2632
+ width="32"
2633
+ height="32"
2634
+ viewBox="0 0 32 32"
2635
+ aria-hidden="true"
2636
+ >
2637
+ <rect
2638
+ class="tsd-checkbox-background"
2639
+ width="30"
2640
+ height="30"
2641
+ x="1"
2642
+ y="1"
2643
+ rx="6"
2644
+ fill="none"
2645
+ ></rect>
2646
+ <path
2647
+ class="tsd-checkbox-checkmark"
2648
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
2649
+ stroke="none"
2650
+ stroke-width="3.5"
2651
+ stroke-linejoin="round"
2652
+ fill="none"
2653
+ ></path></svg
2654
+ ><span>Inherited</span></label
2655
+ >
2656
+ </li>
2657
+ <li class="tsd-filter-item">
2658
+ <label class="tsd-filter-input"
2659
+ ><input
2660
+ type="checkbox"
2661
+ id="tsd-filter-external"
2662
+ name="external"
2663
+ /><svg
2664
+ width="32"
2665
+ height="32"
2666
+ viewBox="0 0 32 32"
2667
+ aria-hidden="true"
2668
+ >
2669
+ <rect
2670
+ class="tsd-checkbox-background"
2671
+ width="30"
2672
+ height="30"
2673
+ x="1"
2674
+ y="1"
2675
+ rx="6"
2676
+ fill="none"
2677
+ ></rect>
2678
+ <path
2679
+ class="tsd-checkbox-checkmark"
2680
+ d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25"
2681
+ stroke="none"
2682
+ stroke-width="3.5"
2683
+ stroke-linejoin="round"
2684
+ fill="none"
2685
+ ></path></svg
2686
+ ><span>External</span></label
2687
+ >
2688
+ </li>
2689
+ </ul>
2690
+ </div>
2691
+ <div class="tsd-theme-toggle">
2692
+ <label class="settings-label" for="tsd-theme">Theme</label
2693
+ ><select id="tsd-theme">
2694
+ <option value="os">OS</option>
2695
+ <option value="light">Light</option>
2696
+ <option value="dark">Dark</option>
2697
+ </select>
2698
+ </div>
2699
+ </div>
2700
+ </details>
2701
+ </div>
2702
+ <details open class="tsd-accordion tsd-page-navigation">
2703
+ <summary class="tsd-accordion-summary">
2704
+ <svg
2705
+ width="20"
2706
+ height="20"
2707
+ viewBox="0 0 24 24"
2708
+ fill="none"
2709
+ aria-hidden="true"
2710
+ >
2711
+ <use href="../assets/icons.svg#icon-chevronDown"></use>
2712
+ </svg>
2713
+ <h3>On This Page</h3>
2714
+ </summary>
2715
+ <div class="tsd-accordion-details">
2716
+ <details open class="tsd-accordion tsd-page-navigation-section">
2717
+ <summary
2718
+ class="tsd-accordion-summary"
2719
+ data-key="section-Properties"
2720
+ >
2721
+ <svg
2722
+ width="20"
2723
+ height="20"
2724
+ viewBox="0 0 24 24"
2725
+ fill="none"
2726
+ aria-hidden="true"
2727
+ >
2728
+ <use href="../assets/icons.svg#icon-chevronDown"></use></svg
2729
+ >Properties
2730
+ </summary>
2731
+ <div>
2732
+ <a href="#_registeredhooks"
2733
+ ><svg
2734
+ class="tsd-kind-icon"
2735
+ viewBox="0 0 24 24"
2736
+ aria-label="Property"
2737
+ >
2738
+ <use href="../assets/icons.svg#icon-1024"></use></svg
2739
+ ><span>_<wbr />registered<wbr />Hooks</span></a
2740
+ >
2741
+ </div>
2742
+ </details>
2743
+ <details open class="tsd-accordion tsd-page-navigation-section">
2744
+ <summary
2745
+ class="tsd-accordion-summary"
2746
+ data-key="section-Methods"
2747
+ >
2748
+ <svg
2749
+ width="20"
2750
+ height="20"
2751
+ viewBox="0 0 24 24"
2752
+ fill="none"
2753
+ aria-hidden="true"
2754
+ >
2755
+ <use href="../assets/icons.svg#icon-chevronDown"></use></svg
2756
+ >Methods
2757
+ </summary>
2758
+ <div>
2759
+ <a href="#gethooks"
2760
+ ><svg
2761
+ class="tsd-kind-icon"
2762
+ viewBox="0 0 24 24"
2763
+ aria-label="Method"
2764
+ >
2765
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2766
+ ><span>get<wbr />Hooks</span></a
2767
+ >
2768
+ <ul>
2769
+ <li>
2770
+ <ul>
2771
+ <li>
2772
+ <ul>
2773
+ <li>
2774
+ <ul>
2775
+ <li>
2776
+ <a href="#example"><span>Example:</span></a>
2777
+ </li>
2778
+ </ul>
2779
+ </li>
2780
+ </ul>
2781
+ </li>
2782
+ </ul>
2783
+ </li>
2784
+ </ul>
2785
+ <a href="#onbefore"
2786
+ ><svg
2787
+ class="tsd-kind-icon"
2788
+ viewBox="0 0 24 24"
2789
+ aria-label="Method"
2790
+ >
2791
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2792
+ ><span>on<wbr />Before</span></a
2793
+ >
2794
+ <ul>
2795
+ <li>
2796
+ <ul>
2797
+ <li>
2798
+ <ul>
2799
+ <li>
2800
+ <a href="#lifecycle"><span>Lifecycle</span></a>
2801
+ </li>
2802
+ <li>
2803
+ <a href="#return-value"
2804
+ ><span>Return value</span></a
2805
+ >
2806
+ </li>
2807
+ <li>
2808
+ <a href="#examples"><span>Examples</span></a>
2809
+ </li>
2810
+ <li>
2811
+ <ul>
2812
+ <li>
2813
+ <a href="#default-substate"
2814
+ ><span>Default <wbr />Substate</span></a
2815
+ >
2816
+ </li>
2817
+ <li>
2818
+ <a href="#data-driven-default-substate"
2819
+ ><span
2820
+ >Data <wbr />Driven <wbr />Default
2821
+ <wbr />Substate</span
2822
+ ></a
2823
+ >
2824
+ </li>
2825
+ <li>
2826
+ <a href="#require-authentication"
2827
+ ><span>Require authentication</span></a
2828
+ >
2829
+ </li>
2830
+ <li>
2831
+ <a href="#example-3"><span>Example:</span></a>
2832
+ </li>
2833
+ </ul>
2834
+ </li>
2835
+ </ul>
2836
+ </li>
2837
+ </ul>
2838
+ </li>
2839
+ </ul>
2840
+ <a href="#onenter"
2841
+ ><svg
2842
+ class="tsd-kind-icon"
2843
+ viewBox="0 0 24 24"
2844
+ aria-label="Method"
2845
+ >
2846
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2847
+ ><span>on<wbr />Enter</span></a
2848
+ >
2849
+ <ul>
2850
+ <li>
2851
+ <ul>
2852
+ <li>
2853
+ <ul>
2854
+ <li>
2855
+ <a href="#lifecycle-1"><span>Lifecycle</span></a>
2856
+ </li>
2857
+ <li>
2858
+ <a href="#return-value-1"
2859
+ ><span>Return value</span></a
2860
+ >
2861
+ </li>
2862
+ <li>
2863
+ <a href="#inside-a-state-declaration"
2864
+ ><span>Inside a state declaration</span></a
2865
+ >
2866
+ </li>
2867
+ <li>
2868
+ <a href="#examples-1"><span>Examples</span></a>
2869
+ </li>
2870
+ <li>
2871
+ <ul>
2872
+ <li>
2873
+ <a href="#audit-log"
2874
+ ><span>Audit <wbr />Log</span></a
2875
+ >
2876
+ </li>
2877
+ <li>
2878
+ <a
2879
+ href="#audit-log-inside-a-state-declaration"
2880
+ ><span
2881
+ >Audit <wbr />Log (inside a state
2882
+ declaration)</span
2883
+ ></a
2884
+ >
2885
+ </li>
2886
+ </ul>
2887
+ </li>
2888
+ </ul>
2889
+ </li>
2890
+ </ul>
2891
+ </li>
2892
+ </ul>
2893
+ <a href="#onerror"
2894
+ ><svg
2895
+ class="tsd-kind-icon"
2896
+ viewBox="0 0 24 24"
2897
+ aria-label="Method"
2898
+ >
2899
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2900
+ ><span>on<wbr />Error</span></a
2901
+ >
2902
+ <ul>
2903
+ <li>
2904
+ <ul>
2905
+ <li>
2906
+ <ul>
2907
+ <li>
2908
+ <a href="#lifecycle-2"><span>Lifecycle</span></a>
2909
+ </li>
2910
+ <li>
2911
+ <a href="#return-value-2"
2912
+ ><span>Return value</span></a
2913
+ >
2914
+ </li>
2915
+ </ul>
2916
+ </li>
2917
+ </ul>
2918
+ </li>
2919
+ </ul>
2920
+ <a href="#onexit"
2921
+ ><svg
2922
+ class="tsd-kind-icon"
2923
+ viewBox="0 0 24 24"
2924
+ aria-label="Method"
2925
+ >
2926
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2927
+ ><span>on<wbr />Exit</span></a
2928
+ >
2929
+ <ul>
2930
+ <li>
2931
+ <ul>
2932
+ <li>
2933
+ <ul>
2934
+ <li>
2935
+ <a href="#lifecycle-3"><span>Lifecycle</span></a>
2936
+ </li>
2937
+ <li>
2938
+ <a href="#return-value-3"
2939
+ ><span>Return value</span></a
2940
+ >
2941
+ </li>
2942
+ <li>
2943
+ <a href="#inside-a-state-declaration-1"
2944
+ ><span>Inside a state declaration</span></a
2945
+ >
2946
+ </li>
2947
+ </ul>
2948
+ </li>
2949
+ </ul>
2950
+ </li>
2951
+ </ul>
2952
+ <a href="#onfinish"
2953
+ ><svg
2954
+ class="tsd-kind-icon"
2955
+ viewBox="0 0 24 24"
2956
+ aria-label="Method"
2957
+ >
2958
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2959
+ ><span>on<wbr />Finish</span></a
2960
+ >
2961
+ <ul>
2962
+ <li>
2963
+ <ul>
2964
+ <li>
2965
+ <ul>
2966
+ <li>
2967
+ <a href="#lifecycle-4"><span>Lifecycle</span></a>
2968
+ </li>
2969
+ <li>
2970
+ <a href="#return-value-4"
2971
+ ><span>Return value</span></a
2972
+ >
2973
+ </li>
2974
+ </ul>
2975
+ </li>
2976
+ </ul>
2977
+ </li>
2978
+ </ul>
2979
+ <a href="#onretain"
2980
+ ><svg
2981
+ class="tsd-kind-icon"
2982
+ viewBox="0 0 24 24"
2983
+ aria-label="Method"
2984
+ >
2985
+ <use href="../assets/icons.svg#icon-2048"></use></svg
2986
+ ><span>on<wbr />Retain</span></a
2987
+ >
2988
+ <ul>
2989
+ <li>
2990
+ <ul>
2991
+ <li>
2992
+ <ul>
2993
+ <li>
2994
+ <a href="#lifecycle-5"><span>Lifecycle</span></a>
2995
+ </li>
2996
+ <li>
2997
+ <a href="#return-value-5"
2998
+ ><span>Return value</span></a
2999
+ >
3000
+ </li>
3001
+ <li>
3002
+ <a href="#inside-a-state-declaration-2"
3003
+ ><span>Inside a state declaration</span></a
3004
+ >
3005
+ </li>
3006
+ </ul>
3007
+ </li>
3008
+ </ul>
3009
+ </li>
3010
+ </ul>
3011
+ <a href="#onstart"
3012
+ ><svg
3013
+ class="tsd-kind-icon"
3014
+ viewBox="0 0 24 24"
3015
+ aria-label="Method"
3016
+ >
3017
+ <use href="../assets/icons.svg#icon-2048"></use></svg
3018
+ ><span>on<wbr />Start</span></a
3019
+ >
3020
+ <ul>
3021
+ <li>
3022
+ <ul>
3023
+ <li>
3024
+ <ul>
3025
+ <li>
3026
+ <a href="#lifecycle-6"><span>Lifecycle</span></a>
3027
+ </li>
3028
+ <li>
3029
+ <a href="#return-value-6"
3030
+ ><span>Return value</span></a
3031
+ >
3032
+ </li>
3033
+ <li>
3034
+ <a href="#example-5"><span>Example</span></a>
3035
+ </li>
3036
+ <li>
3037
+ <ul>
3038
+ <li>
3039
+ <a href="#login-during-transition"
3040
+ ><span>Login during transition</span></a
3041
+ >
3042
+ </li>
3043
+ <li>
3044
+ <a href="#example-6"><span>Example:</span></a>
3045
+ </li>
3046
+ </ul>
3047
+ </li>
3048
+ </ul>
3049
+ </li>
3050
+ </ul>
3051
+ </li>
3052
+ </ul>
3053
+ <a href="#onsuccess"
3054
+ ><svg
3055
+ class="tsd-kind-icon"
3056
+ viewBox="0 0 24 24"
3057
+ aria-label="Method"
3058
+ >
3059
+ <use href="../assets/icons.svg#icon-2048"></use></svg
3060
+ ><span>on<wbr />Success</span></a
3061
+ >
3062
+ <ul>
3063
+ <li>
3064
+ <a href="#lifecycle-7"><span>Lifecycle</span></a>
3065
+ </li>
3066
+ <li>
3067
+ <a href="#return-value-7"><span>Return value</span></a>
3068
+ </li>
3069
+ </ul>
3070
+ </div>
3071
+ </details>
3072
+ </div>
3073
+ </details>
3074
+ </div>
3075
+ <div class="site-menu">
3076
+ <nav class="tsd-navigation">
3077
+ <a href="../modules.html">@angular-wave/angular.ts</a>
3078
+ <ul class="tsd-small-nested-navigation" id="tsd-nav-container">
3079
+ <li>Loading...</li>
3080
+ </ul>
3081
+ </nav>
3082
+ </div>
3083
+ </div>
3084
+ </div>
3085
+ <footer>
3086
+ <p class="tsd-generator">
3087
+ Generated using
3088
+ <a href="https://typedoc.org/" target="_blank">TypeDoc</a>
3089
+ </p>
3090
+ </footer>
3091
+ <div class="overlay"></div>
3092
+ </body>
3093
+ </html>