@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.
- package/.github/workflows/ci.yml +1 -1
- package/.prettierignore +1 -0
- package/@types/core/cache/cache.d.ts +0 -5
- package/@types/core/di/internal-injector.d.ts +2 -5
- package/@types/core/di/ng-module.d.ts +0 -7
- package/@types/core/exception-handler.d.ts +2 -2
- package/@types/core/pubsub/pubsub.d.ts +3 -3
- package/@types/directive/channel/channel.d.ts +9 -3
- package/@types/directive/http/http.d.ts +39 -0
- package/@types/directive/if/if.d.ts +0 -2
- package/@types/interface.d.ts +16 -4
- package/@types/loader.d.ts +3 -3
- package/@types/public.d.ts +1 -2
- package/@types/shared/common.d.ts +7 -8
- package/Makefile +8 -0
- package/dist/angular-ts.esm.js +291 -68
- package/dist/angular-ts.umd.js +296 -72
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/README.md +69 -39
- package/docs/assets/scss/_variables_project.scss +6 -0
- package/docs/assets/scss/_variables_project_after_bs.scss +8 -0
- package/docs/assets/scss/index.scss +14 -0
- package/docs/content/{en/_index.md → _index.md} +6 -1
- package/docs/content/{en/docs → docs}/_index.md +9 -10
- package/docs/docker-compose.yaml +2 -3
- package/docs/hugo.yaml +17 -18
- package/docs/layouts/404.html +8 -2
- package/docs/static/typedoc/assets/hierarchy.js +1 -0
- package/docs/static/typedoc/assets/highlight.css +78 -0
- package/docs/static/typedoc/assets/icons.js +18 -0
- package/docs/static/typedoc/assets/main.js +60 -0
- package/docs/static/typedoc/assets/navigation.js +1 -0
- package/docs/static/typedoc/assets/search.js +1 -0
- package/docs/static/typedoc/assets/style.css +1640 -0
- package/docs/static/typedoc/hierarchy.html +1 -0
- package/docs/static/typedoc/index.html +1 -0
- package/docs/static/typedoc/interfaces/ChangesObject.html +6 -0
- package/docs/static/typedoc/interfaces/ComponentOptions.html +16 -0
- package/docs/static/typedoc/interfaces/Controller.html +12 -0
- package/docs/static/typedoc/interfaces/Directive.html +36 -0
- package/docs/static/typedoc/interfaces/DirectivePrePost.html +4 -0
- package/docs/static/typedoc/interfaces/NgModelController.html +30 -0
- package/docs/static/typedoc/interfaces/NgModelOptions.html +16 -0
- package/docs/static/typedoc/interfaces/Provider.html +28 -0
- package/docs/static/typedoc/interfaces/ServiceProvider.html +5 -0
- package/docs/static/typedoc/interfaces/TranscludeFunctionObject.html +8 -0
- package/docs/static/typedoc/types/AnnotatedFactory.html +8 -0
- package/docs/static/typedoc/types/CloneAttachFunction.html +2 -0
- package/docs/static/typedoc/types/ControllerConstructor.html +2 -0
- package/docs/static/typedoc/types/DirectiveCompileFn.html +2 -0
- package/docs/static/typedoc/types/DirectiveController.html +2 -0
- package/docs/static/typedoc/types/DirectiveFactory.html +2 -0
- package/docs/static/typedoc/types/DirectiveLinkFn.html +2 -0
- package/docs/static/typedoc/types/Expression.html +6 -0
- package/docs/static/typedoc/types/FilterFactory.html +2 -0
- package/docs/static/typedoc/types/FilterFn.html +2 -0
- package/docs/static/typedoc/types/Injectable.html +1 -0
- package/docs/static/typedoc/types/InjectableFactory.html +4 -0
- package/docs/static/typedoc/types/OnChangesObject.html +2 -0
- package/docs/static/typedoc/types/SwapInsertPosition.html +2 -0
- package/docs/static/typedoc/types/TController.html +2 -0
- package/legacy.d.ts +2695 -0
- package/package.json +2 -2
- package/playwright.config.ts +2 -0
- package/src/animations/animate.spec.js +1 -1
- package/src/binding.spec.js +1 -1
- package/src/core/cache/cache.js +0 -3
- package/src/core/compile/compile.js +3 -1
- package/src/core/compile/compile.spec.js +9 -95
- package/src/core/di/injector.js +1 -1
- package/src/core/di/injector.spec.js +0 -30
- package/src/core/di/internal-injector.js +2 -5
- package/src/core/di/ng-module.js +1 -23
- package/src/core/di/ng-module.spec.js +0 -6
- package/src/core/exception-handler.js +1 -1
- package/src/core/pubsub/pubsub.js +6 -6
- package/src/directive/channel/channel.js +8 -6
- package/src/directive/http/delete.spec.js +24 -0
- package/src/directive/http/get.spec.js +211 -0
- package/src/directive/http/http.html +22 -0
- package/src/directive/http/http.js +245 -0
- package/src/directive/http/http.test.js +12 -0
- package/src/directive/http/post-example.html +30 -0
- package/src/directive/http/post.spec.js +24 -0
- package/src/directive/http/put.spec.js +24 -0
- package/src/directive/if/if.js +0 -2
- package/src/directive/include/include.spec.js +0 -1
- package/src/directive/model-options/model-options.spec.js +1 -5
- package/src/directive/repeat/repeat.spec.js +1 -1
- package/src/directive/setter/setter.spec.js +1 -1
- package/src/directive/style/style.js +1 -1
- package/src/interface.ts +17 -4
- package/src/loader.js +6 -7
- package/src/loader.spec.js +0 -31
- package/src/public.js +12 -6
- package/src/services/http-backend/http-backend.js +3 -1
- package/src/shared/common.js +11 -36
- package/src/shared/common.spec.js +34 -3
- package/src/shared/dom.js +3 -14
- package/typedoc.json +3 -2
- package/utils/express.js +13 -0
- package/docs/netlify.toml +0 -12
- package/typedoc/assets/hierarchy.js +0 -2
- package/typedoc/assets/highlight.css +0 -209
- package/typedoc/assets/icons.js +0 -21
- package/typedoc/assets/main.js +0 -2589
- package/typedoc/assets/navigation.js +0 -2
- package/typedoc/assets/search.js +0 -2
- package/typedoc/assets/style.css +0 -1623
- package/typedoc/classes/animations_animate-cache.AnimateCacheProvider.html +0 -543
- package/typedoc/classes/animations_animate-css-driver.AnimateCssDriverProvider.html +0 -691
- package/typedoc/classes/animations_animate-css.AnimateCssProvider.html +0 -712
- package/typedoc/classes/animations_animate-js-driver.AnimateJsDriverProvider.html +0 -536
- package/typedoc/classes/animations_animate-js.AnimateJsProvider.html +0 -795
- package/typedoc/classes/animations_animate-queue.AnimateQueueProvider.html +0 -1137
- package/typedoc/classes/animations_animate-runner.AnimateAsyncRunFactoryProvider.html +0 -473
- package/typedoc/classes/animations_animate-runner.AnimateRunner.html +0 -1589
- package/typedoc/classes/animations_animate-runner.AnimateRunnerFactoryProvider.html +0 -474
- package/typedoc/classes/animations_animate.AnimateProvider.html +0 -1278
- package/typedoc/classes/animations_animation.AnimationProvider.html +0 -749
- package/typedoc/classes/animations_raf-scheduler.RafSchedulerProvider.html +0 -699
- package/typedoc/classes/core_cache_cache-factory.TemplateCacheProvider.html +0 -525
- package/typedoc/classes/core_compile_attributes.Attributes.html +0 -1776
- package/typedoc/classes/core_compile_compile.CompileProvider.html +0 -2137
- package/typedoc/classes/core_controller_controller.ControllerProvider.html +0 -894
- package/typedoc/classes/core_di_internal-injector.InjectorService.html +0 -1336
- package/typedoc/classes/core_di_internal-injector.ProviderInjector.html +0 -1242
- package/typedoc/classes/core_di_ng-module.NgModule.html +0 -1880
- package/typedoc/classes/core_exception-handler.ExceptionHandlerProvider.html +0 -631
- package/typedoc/classes/core_filter_filter.FilterProvider.html +0 -786
- package/typedoc/classes/core_interpolate_interpolate.InterpolateProvider.html +0 -1318
- package/typedoc/classes/core_location_location.Location.html +0 -2128
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +0 -2502
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +0 -2490
- package/typedoc/classes/core_location_location.LocationProvider.html +0 -1023
- package/typedoc/classes/core_parse_ast_ast.AST.html +0 -2520
- package/typedoc/classes/core_parse_interpreter.ASTInterpreter.html +0 -3314
- package/typedoc/classes/core_parse_lexer_lexer.Lexer.html +0 -1788
- package/typedoc/classes/core_parse_parse.ParseProvider.html +0 -753
- package/typedoc/classes/core_parse_parser_parser.Parser.html +0 -741
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +0 -1346
- package/typedoc/classes/core_pubsub_pubsub.PubSubProvider.html +0 -576
- package/typedoc/classes/core_sanitize_sanitize-uri.SanitizeUriProvider.html +0 -696
- package/typedoc/classes/core_sce_sce.SceDelegateProvider.html +0 -1219
- package/typedoc/classes/core_sce_sce.SceProvider.html +0 -589
- package/typedoc/classes/core_scope_scope.RootScopeProvider.html +0 -520
- package/typedoc/classes/core_scope_scope.Scope.html +0 -2753
- package/typedoc/classes/core_task-tracker-factory.TaskTracker.html +0 -882
- package/typedoc/classes/core_task-tracker-factory.TaskTrackerFactoryProvider.html +0 -478
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +0 -605
- package/typedoc/classes/directive_form_form.FormController.html +0 -2320
- package/typedoc/classes/directive_model_model.NgModelController.html +0 -4214
- package/typedoc/classes/loader.Angular.html +0 -1634
- package/typedoc/classes/router_common_glob.Glob.html +0 -904
- package/typedoc/classes/router_common_queue.Queue.html +0 -1284
- package/typedoc/classes/router_common_trace.Trace.html +0 -2020
- package/typedoc/classes/router_globals.RouterGlobals.html +0 -824
- package/typedoc/classes/router_params_param-factory.ParamFactory.html +0 -797
- package/typedoc/classes/router_params_param-type.ParamType.html +0 -1168
- package/typedoc/classes/router_params_param-types.ParamTypes.html +0 -770
- package/typedoc/classes/router_params_param.Param.html +0 -1614
- package/typedoc/classes/router_params_state-params.StateParams.html +0 -558
- package/typedoc/classes/router_path_path-node.PathNode.html +0 -1046
- package/typedoc/classes/router_path_path-utils.PathUtils.html +0 -1432
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +0 -1225
- package/typedoc/classes/router_resolve_resolve-context.ResolveContext.html +0 -1315
- package/typedoc/classes/router_state-provider.StateProvider.html +0 -957
- package/typedoc/classes/router_state_state-builder.StateBuilder.html +0 -1045
- package/typedoc/classes/router_state_state-matcher.StateMatcher.html +0 -742
- package/typedoc/classes/router_state_state-object.StateObject.html +0 -1515
- package/typedoc/classes/router_state_state-queue-manager.StateQueueManager.html +0 -941
- package/typedoc/classes/router_state_state-registry.StateRegistryProvider.html +0 -1712
- package/typedoc/classes/router_state_state-service.StateProvider.html +0 -3038
- package/typedoc/classes/router_state_target-state.TargetState.html +0 -1655
- package/typedoc/classes/router_state_views.ViewConfig.html +0 -1123
- package/typedoc/classes/router_template-factory.TemplateFactoryProvider.html +0 -1689
- package/typedoc/classes/router_transition_hook-builder.HookBuilder.html +0 -823
- package/typedoc/classes/router_transition_hook-registry.RegisteredHook.html +0 -1302
- package/typedoc/classes/router_transition_reject-factory.Rejection.html +0 -1299
- package/typedoc/classes/router_transition_transition-event-type.TransitionEventType.html +0 -995
- package/typedoc/classes/router_transition_transition-hook.TransitionHook.html +0 -1739
- package/typedoc/classes/router_transition_transition-service.TransitionProvider.html +0 -1763
- package/typedoc/classes/router_transition_transition.Transition.html +0 -3942
- package/typedoc/classes/router_url_url-config.UrlConfigProvider.html +0 -1198
- package/typedoc/classes/router_url_url-matcher.UrlMatcher.html +0 -2056
- package/typedoc/classes/router_url_url-rule.BaseUrlRule.html +0 -736
- package/typedoc/classes/router_url_url-rule.UrlRuleFactory.html +0 -1461
- package/typedoc/classes/router_url_url-rules.UrlRules.html +0 -1808
- package/typedoc/classes/router_url_url-service.UrlService.html +0 -2792
- package/typedoc/classes/router_view-scroll.ViewScrollProvider.html +0 -687
- package/typedoc/classes/router_view_view.ViewService.html +0 -1691
- package/typedoc/classes/services_anchor-scroll.AnchorScrollProvider.html +0 -618
- package/typedoc/classes/services_browser.Browser.html +0 -1331
- package/typedoc/classes/services_browser.BrowserProvider.html +0 -564
- package/typedoc/classes/services_http-backend_http-backend.HttpBackendProvider.html +0 -782
- package/typedoc/classes/services_http_http.HttpParamSerializerProvider.html +0 -535
- package/typedoc/classes/services_http_http.HttpProvider.html +0 -1537
- package/typedoc/classes/services_log.LogProvider.html +0 -776
- package/typedoc/classes/services_template-request.TemplateRequestProvider.html +0 -914
- package/typedoc/classes/shared_noderef.NodeRef.html +0 -1529
- package/typedoc/enums/core_parse_ast-type.ASTType.html +0 -903
- package/typedoc/enums/router_common_trace.Category.html +0 -492
- package/typedoc/enums/router_transition_interface.TransitionHookPhase.html +0 -489
- package/typedoc/enums/router_transition_interface.TransitionHookScope.html +0 -390
- package/typedoc/enums/router_transition_reject-factory.RejectType.html +0 -546
- package/typedoc/functions/animations_animate-cache.animateCache.html +0 -818
- package/typedoc/functions/animations_animate-children-directive.__AnimateChildrenDirective.html +0 -412
- package/typedoc/functions/animations_animate-swap.ngAnimateSwapDirective.html +0 -409
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +0 -294
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +0 -297
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +0 -296
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +0 -297
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +0 -311
- package/typedoc/functions/animations_shared.applyInlineStyle.html +0 -293
- package/typedoc/functions/animations_shared.assertArg.html +0 -303
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +0 -299
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +0 -297
- package/typedoc/functions/animations_shared.concatWithSpace.html +0 -293
- package/typedoc/functions/animations_shared.extractElementNode.html +0 -292
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +0 -307
- package/typedoc/functions/animations_shared.mergeClasses.html +0 -293
- package/typedoc/functions/animations_shared.packageStyles.html +0 -299
- package/typedoc/functions/animations_shared.pendClasses.html +0 -303
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +0 -287
- package/typedoc/functions/animations_shared.removeFromArray.html +0 -293
- package/typedoc/functions/animations_shared.resolveElementClasses.html +0 -328
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +0 -299
- package/typedoc/functions/core_controller_controller.identifierForController.html +0 -299
- package/typedoc/functions/core_di_injector.annotate.html +0 -311
- package/typedoc/functions/core_di_injector.createInjector.html +0 -323
- package/typedoc/functions/core_location_location.serverBase.html +0 -285
- package/typedoc/functions/core_location_location.stripBaseUrl.html +0 -303
- package/typedoc/functions/core_location_location.stripFile.html +0 -285
- package/typedoc/functions/core_location_location.stripHash.html +0 -285
- package/typedoc/functions/core_parse_interpreter.isAssignable.html +0 -294
- package/typedoc/functions/core_parse_parse.constantWatchDelegate.html +0 -323
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +0 -281
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +0 -281
- package/typedoc/functions/core_scope_scope.createScope.html +0 -334
- package/typedoc/functions/core_scope_scope.nextId.html +0 -268
- package/typedoc/functions/core_url-utils_url-utils.getBaseUrl.html +0 -274
- package/typedoc/functions/core_url-utils_url-utils.urlIsAllowedOriginFactory.html +0 -314
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOrigin.html +0 -303
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOriginAsBaseUrl.html +0 -309
- package/typedoc/functions/core_url-utils_url-utils.urlResolve.html +0 -285
- package/typedoc/functions/core_url-utils_url-utils.urlsAreSameOrigin.html +0 -320
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +0 -400
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +0 -489
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +0 -428
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +0 -400
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +0 -399
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +0 -334
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +0 -512
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +0 -400
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +0 -400
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +0 -399
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +0 -399
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +0 -279
- package/typedoc/functions/directive_bind_bind.ngBindHtmlDirective.html +0 -408
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +0 -283
- package/typedoc/functions/directive_channel_channel.ngChannelDirective.html +0 -312
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +0 -279
- package/typedoc/functions/directive_controller_controller.ngControllerDirective.html +0 -283
- package/typedoc/functions/directive_events_events.createEventDirective.html +0 -353
- package/typedoc/functions/directive_form_form.setupValidity.html +0 -285
- package/typedoc/functions/directive_if_if.ngIfDirective.html +0 -407
- package/typedoc/functions/directive_include_include.ngIncludeDirective.html +0 -464
- package/typedoc/functions/directive_include_include.ngIncludeFillContentDirective.html +0 -419
- package/typedoc/functions/directive_init_init.ngInitDirective.html +0 -279
- package/typedoc/functions/directive_input_input.badInputChecker.html +0 -332
- package/typedoc/functions/directive_input_input.countDecimals.html +0 -285
- package/typedoc/functions/directive_input_input.createDateInputType.html +0 -392
- package/typedoc/functions/directive_input_input.createDateParser.html +0 -319
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +0 -287
- package/typedoc/functions/directive_input_input.inputDirective.html +0 -523
- package/typedoc/functions/directive_input_input.isNumberInteger.html +0 -285
- package/typedoc/functions/directive_input_input.isValidForStep.html +0 -305
- package/typedoc/functions/directive_input_input.ngValueDirective.html +0 -279
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +0 -289
- package/typedoc/functions/directive_input_input.numberInputType.html +0 -354
- package/typedoc/functions/directive_input_input.rangeInputType.html +0 -315
- package/typedoc/functions/directive_input_input.weekParser.html +0 -295
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +0 -464
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +0 -476
- package/typedoc/functions/directive_model-options_model-options.ngModelOptionsDirective.html +0 -283
- package/typedoc/functions/directive_model_model.ngModelDirective.html +0 -449
- package/typedoc/functions/directive_non-bindable_non-bindable.ngNonBindableDirective.html +0 -283
- package/typedoc/functions/directive_observe_observe.ngObserveDirective.html +0 -317
- package/typedoc/functions/directive_ref_ref.ngRefDirective.html +0 -483
- package/typedoc/functions/directive_repeat_repeat.ngRepeatDirective.html +0 -409
- package/typedoc/functions/directive_script_script.scriptDirective.html +0 -413
- package/typedoc/functions/directive_select_select.optionDirective.html +0 -498
- package/typedoc/functions/directive_select_select.selectDirective.html +0 -279
- package/typedoc/functions/directive_setter_setter.ngSetterDirective.html +0 -431
- package/typedoc/functions/directive_show-hide_show-hide.ngHideDirective.html +0 -405
- package/typedoc/functions/directive_show-hide_show-hide.ngShowDirective.html +0 -405
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +0 -279
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +0 -283
- package/typedoc/functions/directive_switch_switch.ngSwitchDirective.html +0 -405
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +0 -283
- package/typedoc/functions/filters_filter.filterFilter.html +0 -275
- package/typedoc/functions/filters_filters.formatNumber.html +0 -435
- package/typedoc/functions/filters_filters.jsonFilter.html +0 -277
- package/typedoc/functions/filters_limit-to.limitToFilter.html +0 -277
- package/typedoc/functions/filters_order-by.orderByFilter.html +0 -403
- package/typedoc/functions/public.publishExternalAPI.html +0 -305
- package/typedoc/functions/router_common_glob.hasGlobs.html +0 -292
- package/typedoc/functions/router_directives_state-directives._StateRefActiveDirective.html +0 -468
- package/typedoc/functions/router_directives_state-directives._StateRefDirective.html +0 -493
- package/typedoc/functions/router_directives_state-directives._StateRefDynamicDirective.html +0 -439
- package/typedoc/functions/router_directives_view-directive._ViewDirectiveFill.html +0 -477
- package/typedoc/functions/router_hooks_core-resolvables.registerAddCoreResolvables.html +0 -292
- package/typedoc/functions/router_hooks_core-resolvables.treeChangesCleanup.html +0 -288
- package/typedoc/functions/router_hooks_ignored-transition.registerIgnoredTransitionHook.html +0 -292
- package/typedoc/functions/router_hooks_invalid-transition.registerInvalidTransitionHook.html +0 -292
- package/typedoc/functions/router_hooks_lazy-load.lazyLoadState.html +0 -318
- package/typedoc/functions/router_hooks_lazy-load.registerLazyLoadHook.html +0 -381
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnEnterHook.html +0 -289
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnExitHook.html +0 -289
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnRetainHook.html +0 -289
- package/typedoc/functions/router_hooks_redirect-to.registerRedirectToHook.html +0 -300
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +0 -290
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +0 -290
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +0 -290
- package/typedoc/functions/router_hooks_update-globals.registerUpdateGlobalState.html +0 -292
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +0 -309
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +0 -300
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +0 -292
- package/typedoc/functions/router_path_path-utils.makeTargetState.html +0 -324
- package/typedoc/functions/router_state-filters._IncludedByStateFilter.html +0 -437
- package/typedoc/functions/router_state-filters._IsStateFilter.html +0 -433
- package/typedoc/functions/router_state_state-builder.resolvablesBuilder.html +0 -347
- package/typedoc/functions/router_state_state-registry.getLocals.html +0 -285
- package/typedoc/functions/router_state_views.getViewConfigFactory.html +0 -300
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +0 -304
- package/typedoc/functions/router_transition_hook-registry.makeEvent.html +0 -343
- package/typedoc/functions/router_transition_hook-registry.matchState.html +0 -334
- package/typedoc/functions/services_browser.trimEmptyHash.html +0 -291
- package/typedoc/functions/services_cookie-reader.getCookies.html +0 -272
- package/typedoc/functions/services_http-backend_http-backend.createHttpBackend.html +0 -406
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +0 -301
- package/typedoc/functions/shared_common._removeFrom.html +0 -291
- package/typedoc/functions/shared_common.allTrueR.html +0 -314
- package/typedoc/functions/shared_common.ancestors.html +0 -309
- package/typedoc/functions/shared_common.anyTrueR.html +0 -317
- package/typedoc/functions/shared_common.applyPairs.html +0 -322
- package/typedoc/functions/shared_common.arrayTuples.html +0 -313
- package/typedoc/functions/shared_common.assertFn.html +0 -306
- package/typedoc/functions/shared_common.copy.html +0 -292
- package/typedoc/functions/shared_common.createProxyFunctions.html +0 -430
- package/typedoc/functions/shared_common.defaults.html +0 -304
- package/typedoc/functions/shared_common.deregAll.html +0 -288
- package/typedoc/functions/shared_common.equals.html +0 -291
- package/typedoc/functions/shared_common.filter.html +0 -298
- package/typedoc/functions/shared_common.find.html +0 -295
- package/typedoc/functions/shared_common.flatten.html +0 -301
- package/typedoc/functions/shared_common.flattenR.html +0 -311
- package/typedoc/functions/shared_common.inherit.html +0 -317
- package/typedoc/functions/shared_common.map.html +0 -304
- package/typedoc/functions/shared_common.omit.html +0 -322
- package/typedoc/functions/shared_common.pairs.html +0 -305
- package/typedoc/functions/shared_common.pick.html +0 -334
- package/typedoc/functions/shared_common.pushR.html +0 -296
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +0 -285
- package/typedoc/functions/shared_common.silentRejection.html +0 -281
- package/typedoc/functions/shared_common.tail.html +0 -282
- package/typedoc/functions/shared_common.uniqR.html +0 -292
- package/typedoc/functions/shared_common.unnest.html +0 -303
- package/typedoc/functions/shared_common.unnestR.html +0 -311
- package/typedoc/functions/shared_dom.appendNodesToElement.html +0 -316
- package/typedoc/functions/shared_dom.buildFragment.html +0 -284
- package/typedoc/functions/shared_dom.cleanElementData.html +0 -302
- package/typedoc/functions/shared_dom.createElementFromHTML.html +0 -299
- package/typedoc/functions/shared_dom.createNodelistFromHTML.html +0 -296
- package/typedoc/functions/shared_dom.dealoc.html +0 -295
- package/typedoc/functions/shared_dom.deleteCacheData.html +0 -306
- package/typedoc/functions/shared_dom.domInsert.html +0 -301
- package/typedoc/functions/shared_dom.emptyElement.html +0 -289
- package/typedoc/functions/shared_dom.getBlockNodes.html +0 -298
- package/typedoc/functions/shared_dom.getBooleanAttrName.html +0 -316
- package/typedoc/functions/shared_dom.getCacheData.html +0 -313
- package/typedoc/functions/shared_dom.getController.html +0 -318
- package/typedoc/functions/shared_dom.getExpando.html +0 -333
- package/typedoc/functions/shared_dom.getInheritedData.html +0 -294
- package/typedoc/functions/shared_dom.getInjector.html +0 -294
- package/typedoc/functions/shared_dom.getIsolateScope.html +0 -295
- package/typedoc/functions/shared_dom.getOrSetCacheData.html +0 -330
- package/typedoc/functions/shared_dom.getScope.html +0 -295
- package/typedoc/functions/shared_dom.isRoot.html +0 -286
- package/typedoc/functions/shared_dom.isTextNode.html +0 -290
- package/typedoc/functions/shared_dom.kebabToCamel.html +0 -289
- package/typedoc/functions/shared_dom.parseHtml.html +0 -295
- package/typedoc/functions/shared_dom.removeElement.html +0 -297
- package/typedoc/functions/shared_dom.removeElementData.html +0 -305
- package/typedoc/functions/shared_dom.setCacheData.html +0 -328
- package/typedoc/functions/shared_dom.setInheritedData.html +0 -312
- package/typedoc/functions/shared_dom.setIsolateScope.html +0 -310
- package/typedoc/functions/shared_dom.setScope.html +0 -318
- package/typedoc/functions/shared_dom.snakeToCamel.html +0 -286
- package/typedoc/functions/shared_dom.startingTag.html +0 -301
- package/typedoc/functions/shared_hof.all.html +0 -305
- package/typedoc/functions/shared_hof.compose.html +0 -306
- package/typedoc/functions/shared_hof.curry.html +0 -319
- package/typedoc/functions/shared_hof.is.html +0 -297
- package/typedoc/functions/shared_hof.or.html +0 -312
- package/typedoc/functions/shared_hof.parse.html +0 -292
- package/typedoc/functions/shared_hof.pattern.html +0 -343
- package/typedoc/functions/shared_hof.pipe.html +0 -289
- package/typedoc/functions/shared_hof.val.html +0 -288
- package/typedoc/functions/shared_predicates.isInjectable.html +0 -294
- package/typedoc/functions/shared_predicates.isPromise.html +0 -292
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +0 -302
- package/typedoc/functions/shared_strings.fnToString.html +0 -281
- package/typedoc/functions/shared_strings.functionToString.html +0 -281
- package/typedoc/functions/shared_strings.joinNeighborsR.html +0 -327
- package/typedoc/functions/shared_strings.kebobString.html +0 -281
- package/typedoc/functions/shared_strings.maxLength.html +0 -309
- package/typedoc/functions/shared_strings.padString.html +0 -312
- package/typedoc/functions/shared_strings.splitOnDelim.html +0 -328
- package/typedoc/functions/shared_strings.stringify.html +0 -281
- package/typedoc/functions/shared_strings.stripLastPathElement.html +0 -284
- package/typedoc/functions/shared_strings.trimHashVal.html +0 -281
- package/typedoc/functions/shared_test-utils.bootstrap.html +0 -297
- package/typedoc/functions/shared_test-utils.browserTrigger.html +0 -307
- package/typedoc/functions/shared_test-utils.wait.html +0 -301
- package/typedoc/functions/shared_utils.addDateMinutes.html +0 -291
- package/typedoc/functions/shared_utils.arrayRemove.html +0 -344
- package/typedoc/functions/shared_utils.assert.html +0 -300
- package/typedoc/functions/shared_utils.assertArg.html +0 -305
- package/typedoc/functions/shared_utils.assertArgFn.html +0 -302
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +0 -310
- package/typedoc/functions/shared_utils.baseExtend.html +0 -301
- package/typedoc/functions/shared_utils.bind.html +0 -333
- package/typedoc/functions/shared_utils.concat.html +0 -301
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +0 -305
- package/typedoc/functions/shared_utils.csp.html +0 -263
- package/typedoc/functions/shared_utils.directiveNormalize.html +0 -295
- package/typedoc/functions/shared_utils.encodeUriQuery.html +0 -314
- package/typedoc/functions/shared_utils.encodeUriSegment.html +0 -302
- package/typedoc/functions/shared_utils.equals.html +0 -357
- package/typedoc/functions/shared_utils.errorHandlingConfig.html +0 -313
- package/typedoc/functions/shared_utils.extend.html +0 -323
- package/typedoc/functions/shared_utils.fromJson.html +0 -290
- package/typedoc/functions/shared_utils.getNgAttribute.html +0 -291
- package/typedoc/functions/shared_utils.getNodeName.html +0 -292
- package/typedoc/functions/shared_utils.hasAnimate.html +0 -286
- package/typedoc/functions/shared_utils.hasCustomToString.html +0 -281
- package/typedoc/functions/shared_utils.hasOwn.html +0 -339
- package/typedoc/functions/shared_utils.hashKey.html +0 -296
- package/typedoc/functions/shared_utils.includes.html +0 -291
- package/typedoc/functions/shared_utils.inherit.html +0 -294
- package/typedoc/functions/shared_utils.isArrayBuffer.html +0 -283
- package/typedoc/functions/shared_utils.isArrayLike.html +0 -290
- package/typedoc/functions/shared_utils.isBlankObject.html +0 -295
- package/typedoc/functions/shared_utils.isBlob.html +0 -283
- package/typedoc/functions/shared_utils.isBoolean.html +0 -283
- package/typedoc/functions/shared_utils.isDate.html +0 -281
- package/typedoc/functions/shared_utils.isDefined.html +0 -290
- package/typedoc/functions/shared_utils.isElement.html +0 -281
- package/typedoc/functions/shared_utils.isError.html +0 -296
- package/typedoc/functions/shared_utils.isFile.html +0 -283
- package/typedoc/functions/shared_utils.isFormData.html +0 -283
- package/typedoc/functions/shared_utils.isFunction.html +0 -290
- package/typedoc/functions/shared_utils.isNull.html +0 -290
- package/typedoc/functions/shared_utils.isNullOrUndefined.html +0 -290
- package/typedoc/functions/shared_utils.isNumber.html +0 -303
- package/typedoc/functions/shared_utils.isNumberNaN.html +0 -283
- package/typedoc/functions/shared_utils.isObject.html +0 -298
- package/typedoc/functions/shared_utils.isObjectEmpty.html +0 -283
- package/typedoc/functions/shared_utils.isPromiseLike.html +0 -283
- package/typedoc/functions/shared_utils.isProxy.html +0 -283
- package/typedoc/functions/shared_utils.isRegExp.html +0 -290
- package/typedoc/functions/shared_utils.isScope.html +0 -283
- package/typedoc/functions/shared_utils.isString.html +0 -290
- package/typedoc/functions/shared_utils.isTypedArray.html +0 -283
- package/typedoc/functions/shared_utils.isUndefined.html +0 -290
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +0 -287
- package/typedoc/functions/shared_utils.isWindow.html +0 -290
- package/typedoc/functions/shared_utils.lowercase.html +0 -302
- package/typedoc/functions/shared_utils.mergeClasses.html +0 -291
- package/typedoc/functions/shared_utils.minErr.html +0 -341
- package/typedoc/functions/shared_utils.nextUid.html +0 -268
- package/typedoc/functions/shared_utils.parseKeyValue.html +0 -288
- package/typedoc/functions/shared_utils.setHashKey.html +0 -303
- package/typedoc/functions/shared_utils.shallowCopy.html +0 -299
- package/typedoc/functions/shared_utils.simpleCompare.html +0 -291
- package/typedoc/functions/shared_utils.sliceArgs.html +0 -291
- package/typedoc/functions/shared_utils.snakeCase.html +0 -291
- package/typedoc/functions/shared_utils.stringify.html +0 -281
- package/typedoc/functions/shared_utils.timezoneToOffset.html +0 -291
- package/typedoc/functions/shared_utils.toDebugString.html +0 -281
- package/typedoc/functions/shared_utils.toInt.html +0 -280
- package/typedoc/functions/shared_utils.toJson.html +0 -350
- package/typedoc/functions/shared_utils.toKeyValue.html +0 -281
- package/typedoc/functions/shared_utils.trim.html +0 -280
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +0 -300
- package/typedoc/functions/shared_utils.uppercase.html +0 -302
- package/typedoc/hierarchy.html +0 -274
- package/typedoc/index.html +0 -668
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +0 -506
- package/typedoc/interfaces/animations_raf-scheduler.ServiceProvider.html +0 -390
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +0 -448
- package/typedoc/interfaces/core_compile_compile.LinkFnMapping.html +0 -466
- package/typedoc/interfaces/core_compile_compile.NodeLinkFnCtx.html +0 -596
- package/typedoc/interfaces/core_compile_compile.SimpleChange.html +0 -412
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +0 -444
- package/typedoc/interfaces/core_location_location.Html5Mode.html +0 -491
- package/typedoc/interfaces/core_parse_ast_ast.Token.html +0 -598
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionHandlerMap.html +0 -570
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionProps.html +0 -959
- package/typedoc/interfaces/core_parse_lexer_lexer.LexerOptions.html +0 -466
- package/typedoc/interfaces/core_parse_parser_parser.ParsedAST.html +0 -378
- package/typedoc/interfaces/core_sanitize_interface.SanitizerFn.html +0 -305
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +0 -455
- package/typedoc/interfaces/core_scope_scope.Listener.html +0 -688
- package/typedoc/interfaces/directive_model-options_model-options.ModelOptionsConfig.html +0 -570
- package/typedoc/interfaces/interface.ChangesObject.html +0 -445
- package/typedoc/interfaces/interface.ComponentOptions.html +0 -712
- package/typedoc/interfaces/interface.Controller.html +0 -582
- package/typedoc/interfaces/interface.Directive.html +0 -1250
- package/typedoc/interfaces/interface.DirectivePrePost.html +0 -423
- package/typedoc/interfaces/interface.NgModelController.html +0 -1362
- package/typedoc/interfaces/interface.NgModelOptions.html +0 -660
- package/typedoc/interfaces/interface.Provider.html +0 -1056
- package/typedoc/interfaces/interface.TranscludeFunctionObject.html +0 -723
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +0 -374
- package/typedoc/interfaces/router_params_interface.ParamDeclaration.html +0 -1211
- package/typedoc/interfaces/router_params_interface.ParamTypeDefinition.html +0 -1273
- package/typedoc/interfaces/router_params_interface.RawParams.html +0 -295
- package/typedoc/interfaces/router_params_interface.Replace.html +0 -429
- package/typedoc/interfaces/router_resolve_interface.CustomAsyncPolicy.html +0 -291
- package/typedoc/interfaces/router_resolve_interface.ProviderLike.html +0 -580
- package/typedoc/interfaces/router_resolve_interface.ResolvableLiteral.html +0 -601
- package/typedoc/interfaces/router_resolve_interface.ResolvePolicy.html +0 -638
- package/typedoc/interfaces/router_state_interface.HrefOptions.html +0 -530
- package/typedoc/interfaces/router_state_interface.LazyLoadResult.html +0 -390
- package/typedoc/interfaces/router_state_interface.StateDeclaration.html +0 -2461
- package/typedoc/interfaces/router_state_interface.TargetStateDef.html +0 -468
- package/typedoc/interfaces/router_state_interface.TransitionPromise.html +0 -1192
- package/typedoc/interfaces/router_state_interface.ViewDeclaration.html +0 -1499
- package/typedoc/interfaces/router_template-factory.BindingTuple.html +0 -406
- package/typedoc/interfaces/router_transition_interface.HookMatchCriteria.html +0 -719
- package/typedoc/interfaces/router_transition_interface.HookRegOptions.html +0 -482
- package/typedoc/interfaces/router_transition_interface.IHookRegistry.html +0 -2969
- package/typedoc/interfaces/router_transition_interface.IMatchingNodes.html +0 -594
- package/typedoc/interfaces/router_transition_interface.PathType.html +0 -411
- package/typedoc/interfaces/router_transition_interface.PathTypes.html +0 -588
- package/typedoc/interfaces/router_transition_interface.RegisteredHooks.html +0 -266
- package/typedoc/interfaces/router_transition_interface.TransitionCreateHookFn.html +0 -316
- package/typedoc/interfaces/router_transition_interface.TransitionHookFn.html +0 -352
- package/typedoc/interfaces/router_transition_interface.TransitionHookOptions.html +0 -627
- package/typedoc/interfaces/router_transition_interface.TransitionOptions.html +0 -1096
- package/typedoc/interfaces/router_transition_interface.TransitionStateHookFn.html +0 -374
- package/typedoc/interfaces/router_transition_interface.TreeChanges.html +0 -769
- package/typedoc/interfaces/router_view_interface.ActiveUIView.html +0 -620
- package/typedoc/interfaces/router_view_interface.ViewConfig.html +0 -651
- package/typedoc/interfaces/router_view_interface.ViewContext.html +0 -419
- package/typedoc/interfaces/services_anchor-scroll.AnchorScrollObject.html +0 -379
- package/typedoc/interfaces/services_log.LogService.html +0 -566
- package/typedoc/interfaces/shared_interface.TypedMap.html +0 -268
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +0 -435
- package/typedoc/media/CONTRIBUTING.md +0 -248
- package/typedoc/media/DEVELOPERS.md +0 -500
- package/typedoc/modules/animations_animate-cache.html +0 -383
- package/typedoc/modules/animations_animate-children-directive.html +0 -326
- package/typedoc/modules/animations_animate-css-driver.html +0 -324
- package/typedoc/modules/animations_animate-css.html +0 -320
- package/typedoc/modules/animations_animate-js-driver.html +0 -324
- package/typedoc/modules/animations_animate-js.html +0 -320
- package/typedoc/modules/animations_animate-queue.html +0 -320
- package/typedoc/modules/animations_animate-runner.html +0 -382
- package/typedoc/modules/animations_animate-swap.html +0 -320
- package/typedoc/modules/animations_animate.html +0 -447
- package/typedoc/modules/animations_animation.html +0 -320
- package/typedoc/modules/animations_interface.html +0 -322
- package/typedoc/modules/animations_raf-scheduler.html +0 -446
- package/typedoc/modules/animations_shared.html +0 -1535
- package/typedoc/modules/core_cache_cache-factory.html +0 -385
- package/typedoc/modules/core_cache_cache.html +0 -457
- package/typedoc/modules/core_compile_attributes.html +0 -319
- package/typedoc/modules/core_compile_compile.html +0 -755
- package/typedoc/modules/core_controller_controller.html +0 -385
- package/typedoc/modules/core_di_injector.html +0 -346
- package/typedoc/modules/core_di_internal-injector.html +0 -350
- package/typedoc/modules/core_di_ng-module.html +0 -490
- package/typedoc/modules/core_error-handler.html +0 -322
- package/typedoc/modules/core_exception-handler.html +0 -448
- package/typedoc/modules/core_filter_filter.html +0 -319
- package/typedoc/modules/core_interpolate_interpolate.html +0 -322
- package/typedoc/modules/core_location_location.html +0 -636
- package/typedoc/modules/core_parse_ast-type.html +0 -321
- package/typedoc/modules/core_parse_ast_ast-node.html +0 -322
- package/typedoc/modules/core_parse_ast_ast.html +0 -436
- package/typedoc/modules/core_parse_interface.html +0 -470
- package/typedoc/modules/core_parse_interpreter.html +0 -537
- package/typedoc/modules/core_parse_lexer_lexer.html +0 -440
- package/typedoc/modules/core_parse_lexer_token.html +0 -319
- package/typedoc/modules/core_parse_parse.html +0 -382
- package/typedoc/modules/core_parse_parser_parser.html +0 -381
- package/typedoc/modules/core_pubsub_pubsub.html +0 -471
- package/typedoc/modules/core_sanitize_interface.html +0 -320
- package/typedoc/modules/core_sanitize_sanitize-uri.html +0 -386
- package/typedoc/modules/core_sce_sce.html +0 -560
- package/typedoc/modules/core_scope_scope.html +0 -700
- package/typedoc/modules/core_task-tracker-factory.html +0 -481
- package/typedoc/modules/core_url-utils_url-utils.html +0 -527
- package/typedoc/modules/directive_aria_aria.html +0 -672
- package/typedoc/modules/directive_attrs_attrs.html +0 -350
- package/typedoc/modules/directive_bind_bind.html +0 -377
- package/typedoc/modules/directive_channel_channel.html +0 -322
- package/typedoc/modules/directive_class_class.html +0 -376
- package/typedoc/modules/directive_cloak_cloak.html +0 -320
- package/typedoc/modules/directive_controller_controller.html +0 -322
- package/typedoc/modules/directive_events_events.html +0 -383
- package/typedoc/modules/directive_form_form.html +0 -524
- package/typedoc/modules/directive_if_if.html +0 -319
- package/typedoc/modules/directive_include_include.html +0 -352
- package/typedoc/modules/directive_init_init.html +0 -319
- package/typedoc/modules/directive_input_input.html +0 -804
- package/typedoc/modules/directive_messages_messages.html +0 -473
- package/typedoc/modules/directive_model-options_model-options.html +0 -452
- package/typedoc/modules/directive_model_model.html +0 -445
- package/typedoc/modules/directive_non-bindable_non-bindable.html +0 -324
- package/typedoc/modules/directive_observe_observe.html +0 -322
- package/typedoc/modules/directive_options_options.html +0 -322
- package/typedoc/modules/directive_ref_ref.html +0 -319
- package/typedoc/modules/directive_repeat_repeat.html +0 -320
- package/typedoc/modules/directive_script_script.html +0 -320
- package/typedoc/modules/directive_select_select.html +0 -348
- package/typedoc/modules/directive_setter_setter.html +0 -320
- package/typedoc/modules/directive_show-hide_show-hide.html +0 -350
- package/typedoc/modules/directive_style_style.html +0 -320
- package/typedoc/modules/directive_switch_switch.html +0 -378
- package/typedoc/modules/directive_transclude_transclude.html +0 -322
- package/typedoc/modules/directive_validators_validators.html +0 -406
- package/typedoc/modules/filters_filter.html +0 -319
- package/typedoc/modules/filters_filters.html +0 -346
- package/typedoc/modules/filters_limit-to.html +0 -319
- package/typedoc/modules/filters_order-by.html +0 -319
- package/typedoc/modules/index.html +0 -241
- package/typedoc/modules/injection-tokens.html +0 -319
- package/typedoc/modules/interface.html +0 -1010
- package/typedoc/modules/loader.html +0 -380
- package/typedoc/modules/public.html +0 -380
- package/typedoc/modules/router_common_glob.html +0 -377
- package/typedoc/modules/router_common_queue.html +0 -315
- package/typedoc/modules/router_common_trace.html +0 -522
- package/typedoc/modules/router_directives_state-directives.html +0 -384
- package/typedoc/modules/router_directives_view-directive.html +0 -387
- package/typedoc/modules/router_globals.html +0 -383
- package/typedoc/modules/router_hooks_core-resolvables.html +0 -352
- package/typedoc/modules/router_hooks_ignored-transition.html +0 -324
- package/typedoc/modules/router_hooks_invalid-transition.html +0 -324
- package/typedoc/modules/router_hooks_lazy-load.html +0 -348
- package/typedoc/modules/router_hooks_on-enter-exit-retain.html +0 -380
- package/typedoc/modules/router_hooks_redirect-to.html +0 -320
- package/typedoc/modules/router_hooks_resolve.html +0 -443
- package/typedoc/modules/router_hooks_update-globals.html +0 -324
- package/typedoc/modules/router_hooks_url.html +0 -319
- package/typedoc/modules/router_hooks_views.html +0 -350
- package/typedoc/modules/router_params_interface.html +0 -402
- package/typedoc/modules/router_params_param-factory.html +0 -322
- package/typedoc/modules/router_params_param-type.html +0 -319
- package/typedoc/modules/router_params_param-types.html +0 -321
- package/typedoc/modules/router_params_param.html +0 -377
- package/typedoc/modules/router_params_state-params.html +0 -322
- package/typedoc/modules/router_path_path-node.html +0 -319
- package/typedoc/modules/router_path_path-utils.html +0 -382
- package/typedoc/modules/router_resolve_interface.html +0 -521
- package/typedoc/modules/router_resolve_resolvable.html +0 -384
- package/typedoc/modules/router_resolve_resolve-context.html +0 -385
- package/typedoc/modules/router_state-filters.html +0 -349
- package/typedoc/modules/router_state-provider.html +0 -319
- package/typedoc/modules/router_state_interface.html +0 -606
- package/typedoc/modules/router_state_state-builder.html +0 -385
- package/typedoc/modules/router_state_state-matcher.html +0 -322
- package/typedoc/modules/router_state_state-object.html +0 -385
- package/typedoc/modules/router_state_state-queue-manager.html +0 -324
- package/typedoc/modules/router_state_state-registry.html +0 -449
- package/typedoc/modules/router_state_state-service.html +0 -322
- package/typedoc/modules/router_state_target-state.html +0 -321
- package/typedoc/modules/router_state_views.html +0 -409
- package/typedoc/modules/router_template-factory.html +0 -383
- package/typedoc/modules/router_transition_hook-builder.html +0 -322
- package/typedoc/modules/router_transition_hook-registry.html +0 -413
- package/typedoc/modules/router_transition_interface.html +0 -927
- package/typedoc/modules/router_transition_reject-factory.html +0 -390
- package/typedoc/modules/router_transition_transition-event-type.html +0 -324
- package/typedoc/modules/router_transition_transition-hook.html +0 -324
- package/typedoc/modules/router_transition_transition-service.html +0 -387
- package/typedoc/modules/router_transition_transition.html +0 -386
- package/typedoc/modules/router_url_url-config.html +0 -320
- package/typedoc/modules/router_url_url-matcher.html +0 -319
- package/typedoc/modules/router_url_url-rule.html +0 -346
- package/typedoc/modules/router_url_url-rules.html +0 -319
- package/typedoc/modules/router_url_url-service.html +0 -319
- package/typedoc/modules/router_view-scroll.html +0 -319
- package/typedoc/modules/router_view_interface.html +0 -373
- package/typedoc/modules/router_view_view.html +0 -319
- package/typedoc/modules/services_anchor-scroll.html +0 -477
- package/typedoc/modules/services_browser.html +0 -472
- package/typedoc/modules/services_cookie-reader.html +0 -319
- package/typedoc/modules/services_http-backend_http-backend.html +0 -387
- package/typedoc/modules/services_http_http.html +0 -414
- package/typedoc/modules/services_log.html +0 -507
- package/typedoc/modules/services_template-request.html +0 -322
- package/typedoc/modules/shared_common.html +0 -1145
- package/typedoc/modules/shared_constants.html +0 -590
- package/typedoc/modules/shared_dom.html +0 -1185
- package/typedoc/modules/shared_hof.html +0 -566
- package/typedoc/modules/shared_interface.html +0 -436
- package/typedoc/modules/shared_noderef.html +0 -318
- package/typedoc/modules/shared_predicates.html +0 -346
- package/typedoc/modules/shared_strings.html +0 -732
- package/typedoc/modules/shared_test-utils.html +0 -369
- package/typedoc/modules/shared_utils.html +0 -2343
- package/typedoc/modules.html +0 -4406
- package/typedoc/types/animations_animate.AnimationMethod.html +0 -265
- package/typedoc/types/animations_interface.RafScheduler.html +0 -602
- package/typedoc/types/core_cache_cache-factory.TemplateCache.html +0 -257
- package/typedoc/types/core_compile_compile.ApplyDirectivesToNodeFn.html +0 -251
- package/typedoc/types/core_compile_compile.BoundTranscludeFn.html +0 -279
- package/typedoc/types/core_compile_compile.CompileFn.html +0 -445
- package/typedoc/types/core_compile_compile.CompileNodesFn.html +0 -252
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +0 -358
- package/typedoc/types/core_compile_compile.NodeLinkFn.html +0 -285
- package/typedoc/types/core_compile_compile.PublicLinkFn.html +0 -381
- package/typedoc/types/core_compile_compile.TranscludeFn.html +0 -364
- package/typedoc/types/core_error-handler.ErrorHandler.html +0 -321
- package/typedoc/types/core_exception-handler.LogService.html +0 -256
- package/typedoc/types/core_parse_ast_ast-node.ASTNode.html +0 -1457
- package/typedoc/types/core_parse_interface.CompiledExpression.html +0 -268
- package/typedoc/types/core_parse_interface.CompiledExpressionFunction.html +0 -347
- package/typedoc/types/core_parse_interface.ParseService.html +0 -474
- package/typedoc/types/core_parse_interpreter.DecoratedASTNode.html +0 -279
- package/typedoc/types/core_scope_scope.ListenerFunction.html +0 -313
- package/typedoc/types/core_task-tracker-factory.AnnotatedFactory.html +0 -278
- package/typedoc/types/core_url-utils_url-utils.HttpProtocol.html +0 -254
- package/typedoc/types/interface.CloneAttachFunction.html +0 -318
- package/typedoc/types/interface.ControllerConstructor.html +0 -315
- package/typedoc/types/interface.DirectiveCompileFn.html +0 -406
- package/typedoc/types/interface.DirectiveController.html +0 -274
- package/typedoc/types/interface.DirectiveFactory.html +0 -328
- package/typedoc/types/interface.DirectiveLinkFn.html +0 -420
- package/typedoc/types/interface.Expression.html +0 -259
- package/typedoc/types/interface.FilterFactory.html +0 -310
- package/typedoc/types/interface.FilterFn.html +0 -314
- package/typedoc/types/interface.Injectable.html +0 -257
- package/typedoc/types/interface.InjectableFactory.html +0 -309
- package/typedoc/types/interface.OnChangesObject.html +0 -259
- package/typedoc/types/interface.TController.html +0 -261
- package/typedoc/types/router_resolve_interface.PolicyAsync.html +0 -259
- package/typedoc/types/router_resolve_interface.PolicyWhen.html +0 -253
- package/typedoc/types/router_state_interface.RedirectToResult.html +0 -287
- package/typedoc/types/router_state_interface.ResolveTypes.html +0 -267
- package/typedoc/types/router_state_interface.StateOrName.html +0 -263
- package/typedoc/types/router_state_interface._StateDeclaration.html +0 -274
- package/typedoc/types/router_transition_interface.HookFn.html +0 -267
- package/typedoc/types/router_transition_interface.HookMatchCriterion.html +0 -270
- package/typedoc/types/router_transition_interface.HookResult.html +0 -310
- package/typedoc/types/router_transition_interface.IHookRegistration.html +0 -362
- package/typedoc/types/router_transition_interface.IStateMatch.html +0 -272
- package/typedoc/types/services_anchor-scroll.AnchorScrollFunction.html +0 -292
- package/typedoc/types/services_anchor-scroll.AnchorScrollService.html +0 -262
- package/typedoc/types/services_browser.UrlChangeListener.html +0 -250
- package/typedoc/types/services_log.LogCall.html +0 -294
- package/typedoc/types/shared_interface.Mapper.html +0 -337
- package/typedoc/types/shared_interface.Predicate.html +0 -305
- package/typedoc/types/shared_interface.PredicateBinary.html +0 -330
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +0 -251
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +0 -249
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +0 -249
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +0 -252
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +0 -252
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +0 -255
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +0 -251
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +0 -249
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +0 -250
- package/typedoc/variables/animations_shared.DELAY_KEY.html +0 -249
- package/typedoc/variables/animations_shared.DURATION_KEY.html +0 -249
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +0 -249
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +0 -253
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +0 -251
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +0 -251
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +0 -250
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +0 -251
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +0 -257
- package/typedoc/variables/animations_shared.TIMING_KEY.html +0 -249
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +0 -249
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +0 -252
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +0 -252
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +0 -249
- package/typedoc/variables/animations_shared.ngMinErr.html +0 -307
- package/typedoc/variables/core_cache_cache.Cache.html +0 -267
- package/typedoc/variables/core_cache_cache.EXPANDO.html +0 -250
- package/typedoc/variables/core_cache_cache.ISOLATE_SCOPE_KEY.html +0 -253
- package/typedoc/variables/core_cache_cache.SCOPE_KEY.html +0 -253
- package/typedoc/variables/core_compile_compile.DirectiveSuffix.html +0 -251
- package/typedoc/variables/core_di_ng-module.ANIMATION_LITERAL.html +0 -249
- package/typedoc/variables/core_di_ng-module.COMPILE_LITERAL.html +0 -249
- package/typedoc/variables/core_di_ng-module.CONTROLLER_LITERAL.html +0 -251
- package/typedoc/variables/core_di_ng-module.FILTER_LITERAL.html +0 -249
- package/typedoc/variables/core_di_ng-module.INJECTOR_LITERAL.html +0 -249
- package/typedoc/variables/core_parse_interpreter.PURITY_ABSOLUTE.html +0 -251
- package/typedoc/variables/core_parse_interpreter.PURITY_RELATIVE.html +0 -251
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +0 -255
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +0 -327
- package/typedoc/variables/core_scope_scope.NONSCOPE.html +0 -253
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +0 -252
- package/typedoc/variables/core_scope_scope._postUpdateQueue.html +0 -252
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +0 -254
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +0 -262
- package/typedoc/variables/directive_class_class.ngClassDirective.html +0 -285
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +0 -287
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +0 -287
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +0 -256
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +0 -251
- package/typedoc/variables/directive_form_form.formDirective.html +0 -340
- package/typedoc/variables/directive_form_form.ngFormDirective.html +0 -340
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +0 -424
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +0 -252
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +0 -252
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +0 -252
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +0 -253
- package/typedoc/variables/directive_messages_messages.ngMessageDefaultDirective.html +0 -496
- package/typedoc/variables/directive_messages_messages.ngMessageDirective.html +0 -492
- package/typedoc/variables/directive_messages_messages.ngMessageExpDirective.html +0 -494
- package/typedoc/variables/directive_model-options_model-options.defaultModelOptions.html +0 -254
- package/typedoc/variables/directive_model_model.ngModelMinErr.html +0 -309
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +0 -692
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +0 -343
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +0 -401
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +0 -363
- package/typedoc/variables/directive_validators_validators.patternDirective.html +0 -424
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +0 -388
- package/typedoc/variables/injection-tokens._injectTokens.html +0 -270
- package/typedoc/variables/public.VERSION.html +0 -247
- package/typedoc/variables/router_common_trace.trace.html +0 -287
- package/typedoc/variables/router_directives_view-directive.ngView.html +0 -499
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +0 -253
- package/typedoc/variables/router_params_param.DefType.html +0 -251
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +0 -279
- package/typedoc/variables/router_resolve_resolve-context.resolvePolicies.html +0 -315
- package/typedoc/variables/router_transition_transition-service.defaultTransOpts.html +0 -380
- package/typedoc/variables/services_log.LogService.html +0 -252
- package/typedoc/variables/shared_common.assertMap.html +0 -344
- package/typedoc/variables/shared_common.assertPredicate.html +0 -344
- package/typedoc/variables/shared_common.pushTo.html +0 -252
- package/typedoc/variables/shared_common.removeFrom.html +0 -255
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +0 -329
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +0 -250
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +0 -252
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +0 -249
- package/typedoc/variables/shared_constants.VALID_CLASS.html +0 -249
- package/typedoc/variables/shared_dom.BOOLEAN_ATTR.html +0 -253
- package/typedoc/variables/shared_hof.propEq.html +0 -258
- package/typedoc/variables/shared_strings.hostRegex.html +0 -248
- package/typedoc/variables/shared_strings.splitEqual.html +0 -291
- package/typedoc/variables/shared_strings.splitHash.html +0 -291
- package/typedoc/variables/shared_strings.splitQuery.html +0 -291
- package/typedoc/variables/shared_utils.isProxySymbol.html +0 -250
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +0 -249
- /package/{typedoc → docs/static/typedoc}/.nojekyll +0 -0
- /package/{typedoc → docs/static/typedoc}/assets/icons.svg +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-wave/angular.ts",
|
|
3
|
-
"description": "A modern, optimized and typesafe version of
|
|
3
|
+
"description": "A modern, optimized and typesafe version of AngularJS",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/angular-ts.esm.js",
|
|
8
8
|
"module": "dist/angular-ts.esm.js",
|
package/playwright.config.ts
CHANGED
|
@@ -28,6 +28,8 @@ export default defineConfig({
|
|
|
28
28
|
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
29
29
|
baseURL: baseUrl,
|
|
30
30
|
|
|
31
|
+
screenshot: "only-on-failure",
|
|
32
|
+
|
|
31
33
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
32
34
|
trace: "on-first-retry",
|
|
33
35
|
},
|
package/src/binding.spec.js
CHANGED
package/src/core/cache/cache.js
CHANGED
|
@@ -3204,7 +3204,9 @@ export class CompileProvider {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
|
|
3206
3206
|
function triggerOnChangesHook() {
|
|
3207
|
-
destination["$onChanges"] &&
|
|
3207
|
+
destination["$onChanges"] &&
|
|
3208
|
+
changes &&
|
|
3209
|
+
destination["$onChanges"](changes);
|
|
3208
3210
|
// Now clear the changes so that we schedule onChanges when more changes arrive
|
|
3209
3211
|
changes = undefined;
|
|
3210
3212
|
}
|
|
@@ -8070,7 +8070,7 @@ describe("$compile", () => {
|
|
|
8070
8070
|
$rootScope.$apply("val = 42");
|
|
8071
8071
|
await wait();
|
|
8072
8072
|
|
|
8073
|
-
// Now we should have a
|
|
8073
|
+
// Now we should have a double changes entry in the log
|
|
8074
8074
|
expect(log[0]).toEqual({
|
|
8075
8075
|
prop1: jasmine.objectContaining({ currentValue: 42 }),
|
|
8076
8076
|
});
|
|
@@ -8081,7 +8081,7 @@ describe("$compile", () => {
|
|
|
8081
8081
|
// Clear the log
|
|
8082
8082
|
log = [];
|
|
8083
8083
|
|
|
8084
|
-
//
|
|
8084
|
+
// Update val to trigger the onChanges
|
|
8085
8085
|
$rootScope.$apply("val = 17");
|
|
8086
8086
|
await wait();
|
|
8087
8087
|
expect(log[0]).toEqual({
|
|
@@ -8381,65 +8381,6 @@ describe("$compile", () => {
|
|
|
8381
8381
|
expect(prototypeSpy).not.toHaveBeenCalled();
|
|
8382
8382
|
});
|
|
8383
8383
|
|
|
8384
|
-
xit("should not call `$onChanges` twice even when the initial value is `NaN`", async () => {
|
|
8385
|
-
const onChangesSpy = jasmine.createSpy("$onChanges");
|
|
8386
|
-
|
|
8387
|
-
module.component("test", {
|
|
8388
|
-
bindings: { prop: "<", attr: "@" },
|
|
8389
|
-
controller: function TestController() {
|
|
8390
|
-
this.$onChanges = onChangesSpy;
|
|
8391
|
-
},
|
|
8392
|
-
});
|
|
8393
|
-
|
|
8394
|
-
createInjector(["test1"]).invoke((_$compile_, _$rootScope_) => {
|
|
8395
|
-
$compile = _$compile_;
|
|
8396
|
-
$rootScope = _$rootScope_;
|
|
8397
|
-
});
|
|
8398
|
-
|
|
8399
|
-
const template =
|
|
8400
|
-
'<test prop="a" attr="{{a}}"></test>' +
|
|
8401
|
-
'<test prop="b" attr="{{b}}"></test>';
|
|
8402
|
-
$rootScope.a = "foo";
|
|
8403
|
-
$rootScope.b = NaN;
|
|
8404
|
-
|
|
8405
|
-
element = $compile(template)($rootScope);
|
|
8406
|
-
await wait();
|
|
8407
|
-
expect(onChangesSpy).toHaveBeenCalledTimes(2);
|
|
8408
|
-
expect(onChangesSpy.calls.argsFor(0)[0]).toEqual({
|
|
8409
|
-
prop: jasmine.objectContaining({ currentValue: "foo" }),
|
|
8410
|
-
attr: jasmine.objectContaining({ currentValue: "foo" }),
|
|
8411
|
-
});
|
|
8412
|
-
expect(onChangesSpy.calls.argsFor(1)[0]).toEqual({
|
|
8413
|
-
prop: jasmine.objectContaining({ currentValue: NaN }),
|
|
8414
|
-
attr: jasmine.objectContaining({ currentValue: "NaN" }),
|
|
8415
|
-
});
|
|
8416
|
-
|
|
8417
|
-
onChangesSpy.calls.reset();
|
|
8418
|
-
$rootScope.$apply('a = "bar"; b = 42');
|
|
8419
|
-
await wait();
|
|
8420
|
-
expect(onChangesSpy).toHaveBeenCalledTimes(2);
|
|
8421
|
-
expect(onChangesSpy.calls.argsFor(0)[0]).toEqual({
|
|
8422
|
-
prop: jasmine.objectContaining({
|
|
8423
|
-
previousValue: "foo",
|
|
8424
|
-
currentValue: "bar",
|
|
8425
|
-
}),
|
|
8426
|
-
attr: jasmine.objectContaining({
|
|
8427
|
-
previousValue: "foo",
|
|
8428
|
-
currentValue: "bar",
|
|
8429
|
-
}),
|
|
8430
|
-
});
|
|
8431
|
-
expect(onChangesSpy.calls.argsFor(1)[0]).toEqual({
|
|
8432
|
-
prop: jasmine.objectContaining({
|
|
8433
|
-
previousValue: NaN,
|
|
8434
|
-
currentValue: 42,
|
|
8435
|
-
}),
|
|
8436
|
-
attr: jasmine.objectContaining({
|
|
8437
|
-
previousValue: "NaN",
|
|
8438
|
-
currentValue: "42",
|
|
8439
|
-
}),
|
|
8440
|
-
});
|
|
8441
|
-
});
|
|
8442
|
-
|
|
8443
8384
|
it("should only trigger one extra digest however many controllers have changes", async () => {
|
|
8444
8385
|
let log = [];
|
|
8445
8386
|
function TestController1() {}
|
|
@@ -9420,56 +9361,29 @@ describe("$compile", () => {
|
|
|
9420
9361
|
expect(log).toEqual(["constructor", "$onInit"]);
|
|
9421
9362
|
});
|
|
9422
9363
|
|
|
9423
|
-
|
|
9364
|
+
it("should update isolate again after $onInit if outer has changed (before initial watchAction call)", async () => {
|
|
9424
9365
|
$rootScope.name = "outer1";
|
|
9425
9366
|
$compile('<ow-component input="name"></ow-component>')($rootScope);
|
|
9426
9367
|
|
|
9427
9368
|
expect(component.input).toEqual("$onInit");
|
|
9428
9369
|
$rootScope.$apply('name = "outer2"');
|
|
9429
|
-
|
|
9370
|
+
await wait();
|
|
9430
9371
|
expect($rootScope.name).toEqual("outer2");
|
|
9431
9372
|
expect(component.input).toEqual("outer2");
|
|
9432
|
-
|
|
9433
|
-
expect(log).toEqual([
|
|
9434
|
-
"constructor",
|
|
9435
|
-
[
|
|
9436
|
-
"$onChanges",
|
|
9437
|
-
jasmine.objectContaining({ currentValue: "outer1" }),
|
|
9438
|
-
],
|
|
9439
|
-
"$onInit",
|
|
9440
|
-
[
|
|
9441
|
-
"$onChanges",
|
|
9442
|
-
jasmine.objectContaining({
|
|
9443
|
-
currentValue: "outer2",
|
|
9444
|
-
}),
|
|
9445
|
-
],
|
|
9446
|
-
]);
|
|
9373
|
+
expect(log).toEqual(["constructor", "$onInit"]);
|
|
9447
9374
|
});
|
|
9448
9375
|
|
|
9449
|
-
|
|
9376
|
+
it("should update isolate again after $onInit if outer has changed (before initial watchAction call)", async () => {
|
|
9450
9377
|
$rootScope.name = "outer1";
|
|
9451
9378
|
$compile('<ow-component input="name" change-input></ow-component>')(
|
|
9452
9379
|
$rootScope,
|
|
9453
9380
|
);
|
|
9454
|
-
|
|
9455
9381
|
expect(component.input).toEqual("$onInit");
|
|
9382
|
+
|
|
9383
|
+
await wait();
|
|
9456
9384
|
expect($rootScope.name).toEqual("outer2");
|
|
9457
9385
|
expect(component.input).toEqual("outer2");
|
|
9458
|
-
expect(log).toEqual([
|
|
9459
|
-
"constructor",
|
|
9460
|
-
[
|
|
9461
|
-
"$onChanges",
|
|
9462
|
-
jasmine.objectContaining({ currentValue: "outer1" }),
|
|
9463
|
-
],
|
|
9464
|
-
"$onInit",
|
|
9465
|
-
[
|
|
9466
|
-
"$onChanges",
|
|
9467
|
-
jasmine.objectContaining({
|
|
9468
|
-
currentValue: "outer2",
|
|
9469
|
-
previousValue: "outer1",
|
|
9470
|
-
}),
|
|
9471
|
-
],
|
|
9472
|
-
]);
|
|
9386
|
+
expect(log).toEqual(["constructor", "$onInit"]);
|
|
9473
9387
|
});
|
|
9474
9388
|
|
|
9475
9389
|
it("should not break when isolate and origin both change to the same value", async () => {
|
package/src/core/di/injector.js
CHANGED
|
@@ -51,7 +51,7 @@ export function createInjector(modulesToLoad, strictDi = false) {
|
|
|
51
51
|
strictDi,
|
|
52
52
|
));
|
|
53
53
|
|
|
54
|
-
const protoInstanceInjector = new InjectorService(
|
|
54
|
+
const protoInstanceInjector = new InjectorService(providerInjector, strictDi);
|
|
55
55
|
|
|
56
56
|
providerCache.$injectorProvider = {
|
|
57
57
|
// $injectionProvider return instance injector
|
|
@@ -369,36 +369,6 @@ describe("injector.modules", () => {
|
|
|
369
369
|
fn.$inject = ["a", "b"];
|
|
370
370
|
expect(injector.invoke(fn, undefined, { b: 3 })).toBe(4);
|
|
371
371
|
});
|
|
372
|
-
|
|
373
|
-
it("should expose the loaded module info on the instance injector", () => {
|
|
374
|
-
angular.module("test1", ["test2"]).info({ version: "1.1" });
|
|
375
|
-
angular.module("test2", []).info({ version: "1.2" });
|
|
376
|
-
const injector = createInjector(["test1"]);
|
|
377
|
-
|
|
378
|
-
injector.invoke(function ($injector) {
|
|
379
|
-
expect($injector.modules.test1.info()).toEqual({ version: "1.1" });
|
|
380
|
-
expect($injector.modules.test2.info()).toEqual({ version: "1.2" });
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
it("should expose the loaded module info on the provider injector", () => {
|
|
385
|
-
let providerInjector;
|
|
386
|
-
const test1 = angular.module("test1", ["test2"]).info({ version: "1.1" });
|
|
387
|
-
const test2 = angular
|
|
388
|
-
.module("test2", [])
|
|
389
|
-
.info({ version: "1.2" })
|
|
390
|
-
.provider("test", [
|
|
391
|
-
"$injector",
|
|
392
|
-
function ($injector) {
|
|
393
|
-
providerInjector = $injector;
|
|
394
|
-
return { $get() {} };
|
|
395
|
-
},
|
|
396
|
-
]);
|
|
397
|
-
createInjector(["test1"]);
|
|
398
|
-
|
|
399
|
-
expect(providerInjector.modules.test1.info()).toEqual({ version: "1.1" });
|
|
400
|
-
expect(providerInjector.modules.test2.info()).toEqual({ version: "1.2" });
|
|
401
|
-
});
|
|
402
372
|
});
|
|
403
373
|
|
|
404
374
|
describe("annotate", () => {
|
|
@@ -149,7 +149,6 @@ class AbstractInjector {
|
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* Injector for providers
|
|
152
|
-
* @extends {AbstractInjector}
|
|
153
152
|
*/
|
|
154
153
|
export class ProviderInjector extends AbstractInjector {
|
|
155
154
|
/**
|
|
@@ -179,15 +178,13 @@ export class ProviderInjector extends AbstractInjector {
|
|
|
179
178
|
|
|
180
179
|
/**
|
|
181
180
|
* Injector for factories and services
|
|
182
|
-
* @extends {AbstractInjector}
|
|
183
181
|
*/
|
|
184
182
|
export class InjectorService extends AbstractInjector {
|
|
185
183
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @param {boolean} strictDi - Indicates if strict dependency injection is enforced.
|
|
188
184
|
* @param {ProviderInjector} providerInjector
|
|
185
|
+
* @param {boolean} strictDi - Indicates if strict dependency injection is enforced.
|
|
189
186
|
*/
|
|
190
|
-
constructor(
|
|
187
|
+
constructor(providerInjector, strictDi) {
|
|
191
188
|
super(strictDi);
|
|
192
189
|
this.providerInjector = providerInjector;
|
|
193
190
|
this.modules = this.providerInjector.modules;
|
package/src/core/di/ng-module.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { $injectTokens } from "../../injection-tokens.js";
|
|
2
|
-
import {
|
|
3
|
-
isFunction,
|
|
4
|
-
isDefined,
|
|
5
|
-
isObject,
|
|
6
|
-
isString,
|
|
7
|
-
assert,
|
|
8
|
-
} from "../../shared/utils.js";
|
|
2
|
+
import { isFunction, isString, assert } from "../../shared/utils.js";
|
|
9
3
|
|
|
10
4
|
export const INJECTOR_LITERAL = "$injector";
|
|
11
5
|
export const COMPILE_LITERAL = "$compileProvider";
|
|
@@ -56,27 +50,11 @@ export class NgModule {
|
|
|
56
50
|
/** @type {!Array.<Function>} */
|
|
57
51
|
this.runBlocks = [];
|
|
58
52
|
|
|
59
|
-
/** @type {Object} */
|
|
60
|
-
this.infoState = {};
|
|
61
|
-
|
|
62
53
|
if (configFn) {
|
|
63
54
|
this.config(configFn);
|
|
64
55
|
}
|
|
65
56
|
}
|
|
66
57
|
|
|
67
|
-
/**
|
|
68
|
-
* @param {Object} value
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
info(value) {
|
|
72
|
-
if (isDefined(value)) {
|
|
73
|
-
assert(isObject(value), "module info value must be an object");
|
|
74
|
-
this.infoState = value;
|
|
75
|
-
return this;
|
|
76
|
-
}
|
|
77
|
-
return this.infoState;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
58
|
/**
|
|
81
59
|
* @param {string} name
|
|
82
60
|
* @param {any} object
|
|
@@ -26,12 +26,6 @@ describe("NgModule", () => {
|
|
|
26
26
|
expect(() => new NgModule("test")).toThrowError();
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
it("can store info state as objects", () => {
|
|
30
|
-
expect(() => ngModule.info(false)).toThrowError();
|
|
31
|
-
ngModule.info({ a: 1 });
|
|
32
|
-
expect(ngModule.info().a).toBe(1);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
29
|
it("can store constants", () => {
|
|
36
30
|
// when contants are registered
|
|
37
31
|
ngModule.constant("aConstant", 42);
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* @see {@link angular.ErrorHandler AngularTS ErrorHandler}
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
/** @typedef {import('../services/log').LogService} LogService */
|
|
45
|
+
/** @typedef {import('../services/log.js').LogService} LogService */
|
|
46
46
|
|
|
47
47
|
/** @typedef {import("./error-handler.ts").ErrorHandler} ErrorHandler */
|
|
48
48
|
|
|
@@ -29,10 +29,10 @@ export class PubSub {
|
|
|
29
29
|
* strings corresponding to native Object properties, e.g. "constructor",
|
|
30
30
|
* "toString", "hasOwnProperty", etc.
|
|
31
31
|
*
|
|
32
|
-
* @param {boolean=}
|
|
32
|
+
* @param {boolean=} async Enable asynchronous behavior. Recommended for
|
|
33
33
|
* new code. See notes on the publish() method.
|
|
34
34
|
*/
|
|
35
|
-
constructor(
|
|
35
|
+
constructor(async = false) {
|
|
36
36
|
this.disposed = false;
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -89,7 +89,7 @@ export class PubSub {
|
|
|
89
89
|
/**
|
|
90
90
|
* @private @const {boolean}
|
|
91
91
|
*/
|
|
92
|
-
this.async_ = Boolean(
|
|
92
|
+
this.async_ = Boolean(async);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -173,9 +173,9 @@ export class PubSub {
|
|
|
173
173
|
* @param {Array} args Arguments to pass to the function.
|
|
174
174
|
*/
|
|
175
175
|
static runAsync_(fn, context, args) {
|
|
176
|
-
|
|
176
|
+
Promise.resolve().then(() => {
|
|
177
177
|
fn.apply(context, args);
|
|
178
|
-
}
|
|
178
|
+
});
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|
|
@@ -241,7 +241,7 @@ export class PubSub {
|
|
|
241
241
|
* the order in which they were added, passing all arguments along.
|
|
242
242
|
*
|
|
243
243
|
* If this object was created with async=true, subscribed functions are called
|
|
244
|
-
* via
|
|
244
|
+
* via Promise.resolve(). Otherwise, the functions are called directly, and if
|
|
245
245
|
* any of them throw an uncaught error, publishing is aborted.
|
|
246
246
|
*
|
|
247
247
|
* @param {string} topic Topic to publish to.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { EventBus } from "../../core/pubsub/pubsub.js";
|
|
2
1
|
import { isObject } from "../../shared/utils.js";
|
|
2
|
+
import { $injectTokens } from "../../injection-tokens.js";
|
|
3
3
|
|
|
4
|
+
ngChannelDirective.$inject = [$injectTokens.$eventBus];
|
|
4
5
|
/**
|
|
5
6
|
* Dynamically updates an element's content based on events published on a specified channel.
|
|
6
|
-
* If data is sent via `
|
|
7
|
+
* If data is sent via `$eventBus` on the specified `ngChannel`, the directive attempts to update the element's content accordingly,
|
|
7
8
|
* either by directly setting the inner HTML or merging the scope's data if the element contains a template.
|
|
8
9
|
*
|
|
9
10
|
* If the element has a template and incoming data is an object, the directive will merge all key/value pairs onto the scope,
|
|
@@ -16,17 +17,18 @@ import { isObject } from "../../shared/utils.js";
|
|
|
16
17
|
* <div ng-channel="userChannel">Hello {{ user.firstName }} {{ user.lastName }}</div>
|
|
17
18
|
*
|
|
18
19
|
* JavaScript:
|
|
19
|
-
* angular.
|
|
20
|
+
* angular.$eventBus.publish('userChannel', { user: { firstName: 'John', lastName: 'Smith' } });
|
|
20
21
|
*
|
|
22
|
+
* @param {import("../../core/pubsub/pubsub.js").PubSub} $eventBus
|
|
21
23
|
* @returns {import("../../interface.ts").Directive}
|
|
22
24
|
*/
|
|
23
|
-
export function ngChannelDirective() {
|
|
25
|
+
export function ngChannelDirective($eventBus) {
|
|
24
26
|
return {
|
|
25
27
|
link: (scope, element, attrs) => {
|
|
26
28
|
const hasTemplate = element.childNodes.length > 0;
|
|
27
29
|
const channel = attrs["ngChannel"];
|
|
28
30
|
|
|
29
|
-
const key =
|
|
31
|
+
const key = $eventBus.subscribe(channel, (val) => {
|
|
30
32
|
if (!hasTemplate) {
|
|
31
33
|
element.innerHTML = val;
|
|
32
34
|
} else {
|
|
@@ -37,7 +39,7 @@ export function ngChannelDirective() {
|
|
|
37
39
|
});
|
|
38
40
|
|
|
39
41
|
scope.$on("$destroy", () => {
|
|
40
|
-
|
|
42
|
+
$eventBus.unsubscribeByKey(key);
|
|
41
43
|
});
|
|
42
44
|
},
|
|
43
45
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Angular } from "../../loader.js";
|
|
2
|
+
// import { browserTrigger, wait } from "../../shared/test-utils.js";
|
|
3
|
+
|
|
4
|
+
describe("ngDelete", () => {
|
|
5
|
+
let $compile, $rootScope, $httpBackend, el;
|
|
6
|
+
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
el = document.getElementById("app");
|
|
9
|
+
el.innerHTML = "";
|
|
10
|
+
let angular = new Angular();
|
|
11
|
+
angular.module("default", []);
|
|
12
|
+
angular
|
|
13
|
+
.bootstrap(el, ["default"])
|
|
14
|
+
.invoke((_$compile_, _$rootScope_, _$httpBackend_) => {
|
|
15
|
+
$compile = _$compile_;
|
|
16
|
+
$rootScope = _$rootScope_;
|
|
17
|
+
$httpBackend = _$httpBackend_;
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it("should pass", () => {
|
|
22
|
+
expect(true).toBeTrue();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { Angular } from "../../loader.js";
|
|
2
|
+
import { browserTrigger, wait } from "../../shared/test-utils.js";
|
|
3
|
+
|
|
4
|
+
describe("ngGet", () => {
|
|
5
|
+
let $compile, $rootScope, $log, el;
|
|
6
|
+
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
el = document.getElementById("app");
|
|
9
|
+
el.innerHTML = "";
|
|
10
|
+
let angular = new Angular();
|
|
11
|
+
angular.module("default", []);
|
|
12
|
+
angular
|
|
13
|
+
.bootstrap(el, ["default"])
|
|
14
|
+
.invoke((_$compile_, _$rootScope_, _$log_) => {
|
|
15
|
+
$compile = _$compile_;
|
|
16
|
+
$rootScope = _$rootScope_;
|
|
17
|
+
$log = _$log_;
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it("should replace innerHTML (default) on click", async () => {
|
|
22
|
+
const scope = $rootScope.$new();
|
|
23
|
+
el.innerHTML = '<button ng-get="/mock/hello">Load</button>';
|
|
24
|
+
$compile(el)(scope);
|
|
25
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
26
|
+
await wait(100);
|
|
27
|
+
expect(el.innerText).toBe("Hello");
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it("should replace innerHTML (default) on click when used with expression", async () => {
|
|
31
|
+
const scope = $rootScope.$new();
|
|
32
|
+
el.innerHTML = '<button ng-get="/mock/{{a}}">Load</button>';
|
|
33
|
+
scope.a = "div";
|
|
34
|
+
$compile(el)(scope);
|
|
35
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
36
|
+
await wait(100);
|
|
37
|
+
expect(el.firstChild.innerHTML).toBe("<div>Hello</div>");
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it("should replace innerHTML on error", async () => {
|
|
41
|
+
const scope = $rootScope.$new();
|
|
42
|
+
el.innerHTML = '<button ng-get="/mock/422">Load</button>';
|
|
43
|
+
$compile(el)(scope);
|
|
44
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
45
|
+
await wait(100);
|
|
46
|
+
expect(el.innerText).toBe("Invalid data");
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it("should not trigger request if element is disabled", async () => {
|
|
50
|
+
el.innerHTML = '<button ng-get="/mock/hello" disabled>Load</button>';
|
|
51
|
+
const scope = $rootScope.$new();
|
|
52
|
+
$compile(el)(scope);
|
|
53
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
54
|
+
await wait(100);
|
|
55
|
+
expect(el.innerText).toBe("Load");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it("should replace innerHTML on statuc error without a body", async () => {
|
|
59
|
+
const scope = $rootScope.$new();
|
|
60
|
+
el.innerHTML = '<button ng-get="/mock/401">Load</button>';
|
|
61
|
+
$compile(el)(scope);
|
|
62
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
63
|
+
await wait(100);
|
|
64
|
+
expect(el.innerText).toBe("Unauthorized");
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
describe("data-swap", () => {
|
|
68
|
+
it("should not change anything if swap is 'none'", async () => {
|
|
69
|
+
const scope = $rootScope.$new();
|
|
70
|
+
el.innerHTML =
|
|
71
|
+
'<button ng-get="/mock/div" data-swap="none" data-target="#found">Load</button><div id="found">Original</div>';
|
|
72
|
+
$compile(el)(scope);
|
|
73
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
74
|
+
await wait(100);
|
|
75
|
+
const found = el.querySelector("#found");
|
|
76
|
+
expect(found.textContent).toBe("Original");
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("should replace outerHTML on click", async () => {
|
|
80
|
+
const scope = $rootScope.$new();
|
|
81
|
+
el.innerHTML =
|
|
82
|
+
'<button ng-get="/mock/hello" data-swap="outerHTML">Load</button>';
|
|
83
|
+
$compile(el)(scope);
|
|
84
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
85
|
+
await wait(100);
|
|
86
|
+
expect(el.innerText).toBe("Hello");
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it("should replace textcontent on click", async () => {
|
|
90
|
+
const scope = $rootScope.$new();
|
|
91
|
+
el.innerHTML =
|
|
92
|
+
'<button ng-get="/mock/hello" data-swap="textContent">Load</button>';
|
|
93
|
+
$compile(el)(scope);
|
|
94
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
95
|
+
await wait(100);
|
|
96
|
+
expect(el.innerText).toBe("Hello");
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it("should replace beforebegin on click", async () => {
|
|
100
|
+
const scope = $rootScope.$new();
|
|
101
|
+
el.innerHTML =
|
|
102
|
+
'<button ng-get="/mock/div" data-swap="beforebegin">Load</button>';
|
|
103
|
+
$compile(el)(scope);
|
|
104
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
105
|
+
await wait(100);
|
|
106
|
+
expect(el.firstChild.innerText).toBe("Hello");
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("should replace beforeend on click", async () => {
|
|
110
|
+
const scope = $rootScope.$new();
|
|
111
|
+
el.innerHTML =
|
|
112
|
+
'<button ng-get="/mock/div" data-swap="beforeend">Load</button>';
|
|
113
|
+
$compile(el)(scope);
|
|
114
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
115
|
+
await wait(100);
|
|
116
|
+
expect(el.firstChild.lastChild.innerText).toBe("Hello");
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
it("should delete the target on click", async () => {
|
|
120
|
+
const scope = $rootScope.$new();
|
|
121
|
+
el.innerHTML =
|
|
122
|
+
'<button ng-get="/mock/hello" data-swap="delete" data-target="#found">Load</button><div id="found"></div>';
|
|
123
|
+
$compile(el)(scope);
|
|
124
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
125
|
+
await wait(100);
|
|
126
|
+
expect(el.querySelector("#found")).toBeNull();
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
describe("data-target", () => {
|
|
131
|
+
it("should remain unchanged if target is not found and log a warning", async () => {
|
|
132
|
+
const scope = $rootScope.$new();
|
|
133
|
+
spyOn($log, "warn");
|
|
134
|
+
el.innerHTML =
|
|
135
|
+
'<button ng-get="/mock/hello" data-target="#missing">Load</button>';
|
|
136
|
+
$compile(el)(scope);
|
|
137
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
138
|
+
await wait(100);
|
|
139
|
+
expect(el.firstChild.innerText).toBe("Load");
|
|
140
|
+
expect($log.warn).toHaveBeenCalled();
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it("should replace target innerHTML (default) on click", async () => {
|
|
144
|
+
const scope = $rootScope.$new();
|
|
145
|
+
el.innerHTML =
|
|
146
|
+
'<button ng-get="/mock/hello" data-target="#found">Load</button><div id="found"></div>';
|
|
147
|
+
$compile(el)(scope);
|
|
148
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
149
|
+
await wait(100);
|
|
150
|
+
expect(el.lastChild.innerHTML).toBe("Hello");
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
it("should replace textcontent on click", async () => {
|
|
154
|
+
const scope = $rootScope.$new();
|
|
155
|
+
el.innerHTML =
|
|
156
|
+
'<button ng-get="/mock/hello" data-swap="textContent" data-target="#found">Load</button><div id="found"></div>';
|
|
157
|
+
$compile(el)(scope);
|
|
158
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
159
|
+
await wait(100);
|
|
160
|
+
expect(el.lastChild.innerText).toBe("Hello");
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it("should replace beforebegin on click", async () => {
|
|
164
|
+
const scope = $rootScope.$new();
|
|
165
|
+
el.innerHTML =
|
|
166
|
+
'<button ng-get="/mock/div" data-swap="beforebegin" data-target="#found">Load</button><div id="found"></div>';
|
|
167
|
+
$compile(el)(scope);
|
|
168
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
169
|
+
await wait(100);
|
|
170
|
+
const found = el.querySelector("#found");
|
|
171
|
+
// The sibling before #found should contain "Hello"
|
|
172
|
+
const prevSibling = found.previousSibling;
|
|
173
|
+
expect(prevSibling.textContent).toBe("Hello");
|
|
174
|
+
expect(found.textContent).toBe(""); // found itself unchanged
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
it("should replace beforeend on click", async () => {
|
|
178
|
+
const scope = $rootScope.$new();
|
|
179
|
+
el.innerHTML =
|
|
180
|
+
'<button ng-get="/mock/div" data-swap="beforeend" data-target="#found">Load</button><div id="found"></div>';
|
|
181
|
+
$compile(el)(scope);
|
|
182
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
183
|
+
await wait(100);
|
|
184
|
+
const found = el.querySelector("#found");
|
|
185
|
+
expect(found.textContent).toBe("Hello");
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
it("should insert afterbegin on click", async () => {
|
|
189
|
+
const scope = $rootScope.$new();
|
|
190
|
+
el.innerHTML =
|
|
191
|
+
'<button ng-get="/mock/div" data-swap="afterbegin" data-target="#found">Load</button><div id="found"><div>World</div></div>';
|
|
192
|
+
$compile(el)(scope);
|
|
193
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
194
|
+
await wait(100);
|
|
195
|
+
const found = el.querySelector("#found");
|
|
196
|
+
expect(found.textContent).toBe("HelloWorld");
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
it("should insert afterend on click", async () => {
|
|
200
|
+
const scope = $rootScope.$new();
|
|
201
|
+
el.innerHTML =
|
|
202
|
+
'<button ng-get="/mock/div" data-swap="afterend" data-target="#found">Load</button><div id="found"><div>World</div></div>';
|
|
203
|
+
$compile(el)(scope);
|
|
204
|
+
browserTrigger(el.querySelector("button"), "click");
|
|
205
|
+
await wait(100);
|
|
206
|
+
const found = el.querySelector("#found");
|
|
207
|
+
const next = found.nextSibling;
|
|
208
|
+
expect(el.lastChild.textContent).toBe("Hello");
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
});
|