@angular-wave/angular.ts 0.7.1 → 0.7.3

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