@angular-wave/angular.ts 0.7.0-beta.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +58 -14
- package/.github/workflows/gh-pages.yml +75 -0
- package/@types/animations/animate.d.ts +11 -4
- package/@types/core/compile/attributes.d.ts +5 -2
- package/@types/core/compile/compile.d.ts +6 -6
- package/@types/core/di/injector.d.ts +1 -2
- package/@types/core/di/internal-injector.d.ts +10 -7
- package/@types/core/di/ng-module.d.ts +0 -1
- package/@types/core/error-handler.d.ts +1 -1
- package/@types/core/exception-handler.d.ts +1 -1
- package/@types/core/parse/interface.d.ts +3 -3
- package/@types/core/pubsub/pubsub.d.ts +21 -0
- package/@types/core/sce/sce.d.ts +2 -5
- package/@types/core/scope/scope.d.ts +23 -36
- package/@types/core/task-tracker-factory.d.ts +10 -5
- package/@types/directive/aria/aria.d.ts +4 -1
- package/@types/directive/include/include.d.ts +4 -18
- package/@types/directive/options/options.d.ts +1 -1
- package/@types/injection-tokens.d.ts +20 -0
- package/@types/interface.d.ts +4 -4
- package/@types/loader.d.ts +1 -0
- package/@types/public.d.ts +2 -2
- package/@types/router/directives/view-directive.d.ts +0 -2
- package/@types/router/params/param.d.ts +1 -1
- package/@types/router/state/interface.d.ts +3 -3
- package/@types/router/state/state-builder.d.ts +9 -2
- package/@types/router/transition/transition-service.d.ts +1 -0
- package/@types/services/anchor-scroll.d.ts +0 -1
- package/@types/shared/utils.d.ts +4 -14
- package/README.md +7 -9
- package/dist/angular-ts.esm.js +440 -304
- package/dist/angular-ts.umd.js +444 -309
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/.cspell.yml +2 -2
- package/docs/.github/dependabot.yml +12 -12
- package/docs/README.md +10 -7
- package/docs/assets/icons/logo.svg +1 -0
- package/docs/assets/scss/_variables_project.scss +1 -0
- package/docs/content/en/_index.md +5 -64
- package/docs/content/en/docs/_index.md +3 -4
- package/docs/docker-compose.yaml +1 -0
- package/docs/go.mod +1 -1
- package/docs/go.sum +6 -6
- package/docs/hugo-disabled.toml +6 -7
- package/docs/hugo.yaml +45 -64
- package/docs/layouts/404.html +2 -8
- package/docs/layouts/_markup/render-heading.html +1 -0
- package/docs/package-lock.json +2293 -0
- package/docs/package.json +18 -7
- package/index.html +1 -1
- package/package.json +1 -1
- package/src/animations/animate-children-directive.js +2 -1
- package/src/animations/animate-css.js +2 -2
- package/src/animations/animate-runner.js +3 -3
- package/src/animations/animate-swap.js +16 -19
- package/src/animations/animate.js +3 -1
- package/src/animations/shared.js +1 -1
- package/src/core/compile/attributes.js +4 -1
- package/src/core/compile/compile.js +29 -24
- package/src/core/compile/compile.spec.js +368 -371
- package/src/core/controller/controller.spec.js +27 -20
- package/src/core/di/injector.js +2 -5
- package/src/core/di/internal-injector.js +2 -0
- package/src/core/di/ng-module.js +19 -7
- package/src/core/di/ng-module.spec.js +16 -16
- package/src/core/error-handler.ts +1 -1
- package/src/core/exception-handler.js +1 -1
- package/src/core/filter/filter.js +0 -1
- package/src/core/parse/ast/ast.spec.js +1 -9
- package/src/core/parse/interface.ts +3 -3
- package/src/core/parse/parse.js +6 -6
- package/src/core/pubsub/pubsub.js +20 -0
- package/src/core/pubsub/pubsub.spec.js +14 -1
- package/src/core/sanitize/sanitize-uri.js +1 -0
- package/src/core/sce/sce.js +7 -15
- package/src/core/scope/scope.js +114 -117
- package/src/core/scope/scope.spec.js +11 -11
- package/src/core/task-tracker-factory.js +7 -0
- package/src/directive/aria/aria.js +11 -10
- package/src/directive/attrs/attrs.js +2 -1
- package/src/directive/bind/bind.js +2 -3
- package/src/directive/channel/channel.js +0 -1
- package/src/directive/class/class.js +0 -1
- package/src/directive/cloak/cloak.js +0 -1
- package/src/directive/include/include.js +22 -11
- package/src/directive/include/include.spec.js +1 -0
- package/src/directive/input/input-example.html +15 -0
- package/src/directive/input/input.js +8 -2
- package/src/directive/input/input.spec.js +12 -14
- package/src/directive/messages/messages.js +2 -2
- package/src/directive/non-bindable/non-bindable.js +0 -1
- package/src/directive/observe/test.html +1 -1
- package/src/directive/options/options-example.html +13 -0
- package/src/directive/options/options.js +33 -21
- package/src/directive/options/options.spec.js +207 -146
- package/src/directive/repeat/repeat.js +8 -7
- package/src/directive/select/select.spec.js +1 -1
- package/src/directive/setter/setter.js +1 -1
- package/src/directive/setter/setter.spec.js +5 -4
- package/src/directive/style/style.spec.js +1 -1
- package/src/directive/switch/switch.js +1 -2
- package/src/directive/transclude/transclude.js +0 -1
- package/src/directive/validators/validators.js +5 -5
- package/src/examples/counter.html +20 -0
- package/src/filters/order-by.js +2 -1
- package/src/filters/order-by.spec.js +4 -4
- package/src/index.spec.js +11 -0
- package/src/injection-tokens.js +71 -0
- package/src/interface.ts +4 -4
- package/src/loader.js +2 -0
- package/src/public.js +10 -3
- package/src/public.spec.js +1 -0
- package/src/router/directives/state-directives.js +1 -1
- package/src/router/directives/state-directives.spec.js +0 -2
- package/src/router/directives/view-directive.js +1 -2
- package/src/router/params/param.js +1 -1
- package/src/router/state/interface.ts +3 -3
- package/src/router/state/state-builder.js +4 -0
- package/src/router/state/state-builder.spec.js +21 -15
- package/src/router/state/state-registry.js +7 -6
- package/src/router/template-factory.spec.js +15 -9
- package/src/router/transition/transition-service.js +1 -0
- package/src/router/view/view.spec.js +1 -1
- package/src/router/view-scroll.spec.js +3 -4
- package/src/services/anchor-scroll.html +1 -1
- package/src/services/anchor-scroll.js +0 -4
- package/src/services/template-request.js +11 -7
- package/src/shared/noderef.js +1 -3
- package/src/shared/utils.js +5 -22
- package/src/src.html +2 -1
- package/typedoc/assets/hierarchy.js +1 -1
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/classes/animations_animate-cache.AnimateCacheProvider.html +4 -40
- package/typedoc/classes/animations_animate-css-driver.AnimateCssDriverProvider.html +4 -58
- package/typedoc/classes/animations_animate-css.AnimateCssProvider.html +4 -40
- package/typedoc/classes/animations_animate-js-driver.AnimateJsDriverProvider.html +4 -58
- package/typedoc/classes/animations_animate-js.AnimateJsProvider.html +4 -58
- package/typedoc/classes/animations_animate-queue.AnimateQueueProvider.html +4 -69
- package/typedoc/classes/animations_animate-runner.AnimateAsyncRunFactoryProvider.html +4 -40
- package/typedoc/classes/animations_animate-runner.AnimateRunner.html +4 -263
- package/typedoc/classes/animations_animate-runner.AnimateRunnerFactoryProvider.html +4 -40
- package/typedoc/classes/animations_animate.AnimateProvider.html +42 -108
- package/typedoc/classes/animations_animation.AnimationProvider.html +4 -51
- package/typedoc/classes/animations_raf-scheduler.RafSchedulerProvider.html +4 -115
- package/typedoc/classes/core_cache_cache-factory.TemplateCacheProvider.html +4 -29
- package/typedoc/classes/core_compile_attributes.Attributes.html +19 -227
- package/typedoc/classes/core_compile_compile.CompileProvider.html +52 -137
- package/typedoc/classes/core_controller_controller.ControllerProvider.html +4 -73
- package/typedoc/classes/core_di_internal-injector.InjectorService.html +7 -141
- package/typedoc/classes/core_di_internal-injector.ProviderInjector.html +7 -119
- package/typedoc/classes/core_di_ng-module.NgModule.html +4 -256
- package/typedoc/classes/core_exception-handler.ExceptionHandlerProvider.html +4 -69
- package/typedoc/classes/core_filter_filter.FilterProvider.html +4 -69
- package/typedoc/classes/core_interpolate_interpolate.InterpolateProvider.html +4 -84
- package/typedoc/classes/core_location_location.Location.html +5 -387
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +5 -340
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +5 -340
- package/typedoc/classes/core_location_location.LocationProvider.html +4 -113
- package/typedoc/classes/core_parse_ast_ast.AST.html +4 -359
- package/typedoc/classes/core_parse_interpreter.ASTInterpreter.html +4 -315
- package/typedoc/classes/core_parse_lexer_lexer.Lexer.html +4 -238
- package/typedoc/classes/core_parse_parse.ParseProvider.html +4 -51
- package/typedoc/classes/core_parse_parser_parser.Parser.html +4 -73
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +4 -146
- package/typedoc/classes/core_pubsub_pubsub.PubSubProvider.html +576 -0
- package/typedoc/classes/core_sanitize_sanitize-uri.SanitizeUriProvider.html +4 -62
- package/typedoc/classes/core_sce_sce.SceDelegateProvider.html +4 -73
- package/typedoc/classes/core_sce_sce.SceProvider.html +10 -63
- package/typedoc/classes/core_scope_scope.RootScopeProvider.html +4 -51
- package/typedoc/classes/core_scope_scope.Scope.html +49 -1280
- package/typedoc/classes/core_task-tracker-factory.TaskTracker.html +4 -84
- package/typedoc/classes/core_task-tracker-factory.TaskTrackerFactoryProvider.html +23 -128
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +4 -51
- package/typedoc/classes/directive_form_form.FormController.html +4 -429
- package/typedoc/classes/directive_model_model.NgModelController.html +4 -983
- package/typedoc/classes/loader.Angular.html +46 -179
- package/typedoc/classes/router_common_glob.Glob.html +4 -84
- package/typedoc/classes/router_common_queue.Queue.html +4 -161
- package/typedoc/classes/router_common_trace.Trace.html +4 -249
- package/typedoc/classes/router_globals.RouterGlobals.html +4 -117
- package/typedoc/classes/router_params_param-factory.ParamFactory.html +4 -73
- package/typedoc/classes/router_params_param-type.ParamType.html +4 -150
- package/typedoc/classes/router_params_param-types.ParamTypes.html +4 -95
- package/typedoc/classes/router_params_param.Param.html +4 -260
- package/typedoc/classes/router_params_state-params.StateParams.html +4 -40
- package/typedoc/classes/router_path_path-node.PathNode.html +4 -174
- package/typedoc/classes/router_path_path-utils.PathUtils.html +4 -128
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +4 -256
- package/typedoc/classes/router_resolve_resolve-context.ResolveContext.html +4 -150
- package/typedoc/classes/router_state-provider.StateProvider.html +4 -84
- package/typedoc/classes/router_state_state-builder.StateBuilder.html +4 -106
- package/typedoc/classes/router_state_state-matcher.StateMatcher.html +4 -73
- package/typedoc/classes/router_state_state-object.StateObject.html +4 -230
- package/typedoc/classes/router_state_state-queue-manager.StateQueueManager.html +4 -128
- package/typedoc/classes/router_state_state-registry.StateRegistryProvider.html +5 -246
- package/typedoc/classes/router_state_state-service.StateProvider.html +4 -322
- package/typedoc/classes/router_state_target-state.TargetState.html +4 -252
- package/typedoc/classes/router_state_views.ViewConfig.html +4 -161
- package/typedoc/classes/router_template-factory.TemplateFactoryProvider.html +4 -179
- package/typedoc/classes/router_transition_hook-builder.HookBuilder.html +4 -73
- package/typedoc/classes/router_transition_hook-registry.RegisteredHook.html +4 -201
- package/typedoc/classes/router_transition_reject-factory.Rejection.html +4 -183
- package/typedoc/classes/router_transition_transition-event-type.TransitionEventType.html +4 -117
- package/typedoc/classes/router_transition_transition-hook.TransitionHook.html +4 -280
- package/typedoc/classes/router_transition_transition-service.TransitionProvider.html +5 -238
- package/typedoc/classes/router_transition_transition.Transition.html +4 -648
- package/typedoc/classes/router_url_url-config.UrlConfigProvider.html +4 -149
- package/typedoc/classes/router_url_url-matcher.UrlMatcher.html +4 -274
- package/typedoc/classes/router_url_url-rule.BaseUrlRule.html +4 -95
- package/typedoc/classes/router_url_url-rule.UrlRuleFactory.html +4 -124
- package/typedoc/classes/router_url_url-rules.UrlRules.html +4 -222
- package/typedoc/classes/router_url_url-service.UrlService.html +4 -373
- package/typedoc/classes/router_view-scroll.ViewScrollProvider.html +4 -69
- package/typedoc/classes/router_view_view.ViewService.html +4 -223
- package/typedoc/classes/services_anchor-scroll.AnchorScrollProvider.html +4 -164
- package/typedoc/classes/services_browser.Browser.html +4 -276
- package/typedoc/classes/services_browser.BrowserProvider.html +4 -29
- package/typedoc/classes/services_http-backend_http-backend.HttpBackendProvider.html +4 -40
- package/typedoc/classes/services_http_http.HttpParamSerializerProvider.html +4 -40
- package/typedoc/classes/services_http_http.HttpProvider.html +4 -84
- package/typedoc/classes/services_log.LogProvider.html +4 -91
- package/typedoc/classes/services_template-request.TemplateRequestProvider.html +4 -51
- package/typedoc/classes/shared_noderef.NodeRef.html +4 -301
- package/typedoc/enums/core_parse_ast-type.ASTType.html +4 -212
- package/typedoc/enums/router_common_trace.Category.html +4 -80
- package/typedoc/enums/router_transition_interface.TransitionHookPhase.html +4 -73
- package/typedoc/enums/router_transition_interface.TransitionHookScope.html +4 -40
- package/typedoc/enums/router_transition_reject-factory.RejectType.html +4 -80
- package/typedoc/functions/animations_animate-cache.animateCache.html +4 -84
- package/typedoc/functions/animations_animate-children-directive.__AnimateChildrenDirective.html +4 -29
- package/typedoc/functions/animations_animate-swap.ngAnimateSwapDirective.html +4 -29
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +4 -18
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +4 -18
- package/typedoc/functions/animations_shared.applyInlineStyle.html +4 -18
- package/typedoc/functions/animations_shared.assertArg.html +4 -18
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +4 -18
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +4 -18
- package/typedoc/functions/animations_shared.concatWithSpace.html +4 -18
- package/typedoc/functions/animations_shared.extractElementNode.html +4 -18
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +4 -18
- package/typedoc/functions/animations_shared.mergeClasses.html +4 -18
- package/typedoc/functions/animations_shared.packageStyles.html +4 -18
- package/typedoc/functions/animations_shared.pendClasses.html +4 -18
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +4 -18
- package/typedoc/functions/animations_shared.removeFromArray.html +4 -18
- package/typedoc/functions/animations_shared.resolveElementClasses.html +4 -18
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +4 -18
- package/typedoc/functions/core_controller_controller.identifierForController.html +4 -18
- package/typedoc/functions/core_di_injector.annotate.html +4 -18
- package/typedoc/functions/core_di_injector.createInjector.html +4 -18
- package/typedoc/functions/core_location_location.serverBase.html +4 -18
- package/typedoc/functions/core_location_location.stripBaseUrl.html +4 -18
- package/typedoc/functions/core_location_location.stripFile.html +4 -18
- package/typedoc/functions/core_location_location.stripHash.html +4 -18
- package/typedoc/functions/core_parse_interpreter.isAssignable.html +4 -18
- package/typedoc/functions/core_parse_parse.constantWatchDelegate.html +4 -18
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +4 -18
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +4 -18
- package/typedoc/functions/core_scope_scope.createScope.html +4 -18
- package/typedoc/functions/core_scope_scope.nextId.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.getBaseUrl.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsAllowedOriginFactory.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOrigin.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlIsSameOriginAsBaseUrl.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlResolve.html +4 -18
- package/typedoc/functions/core_url-utils_url-utils.urlsAreSameOrigin.html +4 -18
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +6 -31
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +4 -18
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +4 -29
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +4 -29
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +4 -18
- package/typedoc/functions/directive_bind_bind.ngBindHtmlDirective.html +4 -29
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +4 -18
- package/typedoc/functions/directive_channel_channel.ngChannelDirective.html +4 -18
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +4 -18
- package/typedoc/functions/directive_controller_controller.ngControllerDirective.html +4 -18
- package/typedoc/functions/directive_events_events.createEventDirective.html +4 -18
- package/typedoc/functions/directive_form_form.setupValidity.html +4 -18
- package/typedoc/functions/directive_if_if.ngIfDirective.html +4 -29
- package/typedoc/functions/directive_include_include.ngIncludeDirective.html +33 -178
- package/typedoc/functions/directive_include_include.ngIncludeFillContentDirective.html +4 -29
- package/typedoc/functions/directive_init_init.ngInitDirective.html +4 -18
- package/typedoc/functions/directive_input_input.badInputChecker.html +4 -18
- package/typedoc/functions/directive_input_input.countDecimals.html +4 -18
- package/typedoc/functions/directive_input_input.createDateInputType.html +4 -18
- package/typedoc/functions/directive_input_input.createDateParser.html +4 -18
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +4 -18
- package/typedoc/functions/directive_input_input.inputDirective.html +4 -29
- package/typedoc/functions/directive_input_input.isNumberInteger.html +4 -18
- package/typedoc/functions/directive_input_input.isValidForStep.html +4 -18
- package/typedoc/functions/directive_input_input.ngValueDirective.html +4 -18
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +4 -18
- package/typedoc/functions/directive_input_input.numberInputType.html +4 -18
- package/typedoc/functions/directive_input_input.rangeInputType.html +4 -18
- package/typedoc/functions/directive_input_input.weekParser.html +4 -18
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +4 -29
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +4 -29
- package/typedoc/functions/directive_model-options_model-options.ngModelOptionsDirective.html +4 -18
- package/typedoc/functions/directive_model_model.ngModelDirective.html +4 -18
- package/typedoc/functions/directive_non-bindable_non-bindable.ngNonBindableDirective.html +4 -18
- package/typedoc/functions/directive_observe_observe.ngObserveDirective.html +4 -18
- package/typedoc/functions/directive_ref_ref.ngRefDirective.html +4 -29
- package/typedoc/functions/directive_repeat_repeat.ngRepeatDirective.html +4 -29
- package/typedoc/functions/directive_script_script.scriptDirective.html +4 -29
- package/typedoc/functions/directive_select_select.optionDirective.html +4 -29
- package/typedoc/functions/directive_select_select.selectDirective.html +4 -18
- package/typedoc/functions/directive_setter_setter.ngSetterDirective.html +4 -29
- package/typedoc/functions/directive_show-hide_show-hide.ngHideDirective.html +4 -29
- package/typedoc/functions/directive_show-hide_show-hide.ngShowDirective.html +4 -29
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +4 -18
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +4 -18
- package/typedoc/functions/directive_switch_switch.ngSwitchDirective.html +4 -29
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +4 -18
- package/typedoc/functions/filters_filter.filterFilter.html +4 -18
- package/typedoc/functions/filters_filters.formatNumber.html +4 -18
- package/typedoc/functions/filters_filters.jsonFilter.html +4 -18
- package/typedoc/functions/filters_limit-to.limitToFilter.html +4 -18
- package/typedoc/functions/filters_order-by.orderByFilter.html +4 -29
- package/typedoc/functions/public.publishExternalAPI.html +6 -24
- package/typedoc/functions/router_common_glob.hasGlobs.html +4 -18
- package/typedoc/functions/router_directives_state-directives._StateRefActiveDirective.html +4 -29
- package/typedoc/functions/router_directives_state-directives._StateRefDirective.html +4 -29
- package/typedoc/functions/router_directives_state-directives._StateRefDynamicDirective.html +4 -29
- package/typedoc/functions/router_directives_view-directive._ViewDirectiveFill.html +4 -39
- package/typedoc/functions/router_hooks_core-resolvables.registerAddCoreResolvables.html +4 -18
- package/typedoc/functions/router_hooks_core-resolvables.treeChangesCleanup.html +4 -18
- package/typedoc/functions/router_hooks_ignored-transition.registerIgnoredTransitionHook.html +4 -18
- package/typedoc/functions/router_hooks_invalid-transition.registerInvalidTransitionHook.html +4 -18
- package/typedoc/functions/router_hooks_lazy-load.lazyLoadState.html +4 -18
- package/typedoc/functions/router_hooks_lazy-load.registerLazyLoadHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnEnterHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnExitHook.html +4 -18
- package/typedoc/functions/router_hooks_on-enter-exit-retain.registerOnRetainHook.html +4 -18
- package/typedoc/functions/router_hooks_redirect-to.registerRedirectToHook.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +4 -18
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +4 -18
- package/typedoc/functions/router_hooks_update-globals.registerUpdateGlobalState.html +4 -18
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +4 -18
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +4 -18
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +4 -18
- package/typedoc/functions/router_path_path-utils.makeTargetState.html +4 -18
- package/typedoc/functions/router_state-filters._IncludedByStateFilter.html +4 -29
- package/typedoc/functions/router_state-filters._IsStateFilter.html +4 -29
- package/typedoc/functions/router_state_state-builder.resolvablesBuilder.html +4 -18
- package/typedoc/functions/router_state_state-registry.getLocals.html +4 -18
- package/typedoc/functions/router_state_views.getViewConfigFactory.html +4 -18
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +4 -18
- package/typedoc/functions/router_transition_hook-registry.makeEvent.html +4 -18
- package/typedoc/functions/router_transition_hook-registry.matchState.html +4 -18
- package/typedoc/functions/services_browser.trimEmptyHash.html +4 -18
- package/typedoc/functions/services_cookie-reader.getCookies.html +4 -18
- package/typedoc/functions/services_http-backend_http-backend.createHttpBackend.html +4 -18
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +4 -18
- package/typedoc/functions/shared_common._removeFrom.html +4 -18
- package/typedoc/functions/shared_common.allTrueR.html +4 -18
- package/typedoc/functions/shared_common.ancestors.html +4 -18
- package/typedoc/functions/shared_common.anyTrueR.html +4 -18
- package/typedoc/functions/shared_common.applyPairs.html +4 -18
- package/typedoc/functions/shared_common.arrayTuples.html +4 -18
- package/typedoc/functions/shared_common.assertFn.html +4 -18
- package/typedoc/functions/shared_common.copy.html +4 -18
- package/typedoc/functions/shared_common.createProxyFunctions.html +4 -18
- package/typedoc/functions/shared_common.defaults.html +4 -18
- package/typedoc/functions/shared_common.deregAll.html +4 -18
- package/typedoc/functions/shared_common.equals.html +4 -18
- package/typedoc/functions/shared_common.filter.html +4 -18
- package/typedoc/functions/shared_common.find.html +4 -18
- package/typedoc/functions/shared_common.flatten.html +4 -18
- package/typedoc/functions/shared_common.flattenR.html +4 -18
- package/typedoc/functions/shared_common.inherit.html +4 -18
- package/typedoc/functions/shared_common.map.html +4 -18
- package/typedoc/functions/shared_common.omit.html +4 -18
- package/typedoc/functions/shared_common.pairs.html +4 -18
- package/typedoc/functions/shared_common.pick.html +4 -18
- package/typedoc/functions/shared_common.pushR.html +4 -18
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +4 -18
- package/typedoc/functions/shared_common.silentRejection.html +4 -18
- package/typedoc/functions/shared_common.tail.html +4 -18
- package/typedoc/functions/shared_common.uniqR.html +4 -18
- package/typedoc/functions/shared_common.unnest.html +4 -18
- package/typedoc/functions/shared_common.unnestR.html +4 -18
- package/typedoc/functions/shared_dom.appendNodesToElement.html +4 -18
- package/typedoc/functions/shared_dom.buildFragment.html +4 -18
- package/typedoc/functions/shared_dom.cleanElementData.html +4 -18
- package/typedoc/functions/shared_dom.createElementFromHTML.html +4 -18
- package/typedoc/functions/shared_dom.createNodelistFromHTML.html +4 -18
- package/typedoc/functions/shared_dom.dealoc.html +4 -18
- package/typedoc/functions/shared_dom.deleteCacheData.html +4 -18
- package/typedoc/functions/shared_dom.domInsert.html +4 -18
- package/typedoc/functions/shared_dom.emptyElement.html +4 -18
- package/typedoc/functions/shared_dom.getBlockNodes.html +4 -18
- package/typedoc/functions/shared_dom.getBooleanAttrName.html +4 -18
- package/typedoc/functions/shared_dom.getCacheData.html +4 -18
- package/typedoc/functions/shared_dom.getController.html +4 -18
- package/typedoc/functions/shared_dom.getExpando.html +4 -18
- package/typedoc/functions/shared_dom.getInheritedData.html +4 -18
- package/typedoc/functions/shared_dom.getInjector.html +4 -18
- package/typedoc/functions/shared_dom.getIsolateScope.html +4 -18
- package/typedoc/functions/shared_dom.getOrSetCacheData.html +4 -18
- package/typedoc/functions/shared_dom.getScope.html +4 -18
- package/typedoc/functions/shared_dom.isRoot.html +4 -18
- package/typedoc/functions/shared_dom.isTextNode.html +4 -18
- package/typedoc/functions/shared_dom.kebabToCamel.html +4 -18
- package/typedoc/functions/shared_dom.parseHtml.html +4 -18
- package/typedoc/functions/shared_dom.removeElement.html +4 -18
- package/typedoc/functions/shared_dom.removeElementData.html +4 -18
- package/typedoc/functions/shared_dom.setCacheData.html +4 -18
- package/typedoc/functions/shared_dom.setInheritedData.html +4 -18
- package/typedoc/functions/shared_dom.setIsolateScope.html +4 -18
- package/typedoc/functions/shared_dom.setScope.html +4 -18
- package/typedoc/functions/shared_dom.snakeToCamel.html +4 -18
- package/typedoc/functions/shared_dom.startingTag.html +4 -18
- package/typedoc/functions/shared_hof.all.html +4 -18
- package/typedoc/functions/shared_hof.compose.html +4 -18
- package/typedoc/functions/shared_hof.curry.html +4 -18
- package/typedoc/functions/shared_hof.is.html +4 -18
- package/typedoc/functions/shared_hof.or.html +4 -18
- package/typedoc/functions/shared_hof.parse.html +4 -18
- package/typedoc/functions/shared_hof.pattern.html +4 -18
- package/typedoc/functions/shared_hof.pipe.html +4 -18
- package/typedoc/functions/shared_hof.val.html +4 -18
- package/typedoc/functions/shared_predicates.isInjectable.html +4 -18
- package/typedoc/functions/shared_predicates.isPromise.html +4 -18
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +4 -18
- package/typedoc/functions/shared_strings.fnToString.html +4 -18
- package/typedoc/functions/shared_strings.functionToString.html +4 -18
- package/typedoc/functions/shared_strings.joinNeighborsR.html +4 -18
- package/typedoc/functions/shared_strings.kebobString.html +4 -18
- package/typedoc/functions/shared_strings.maxLength.html +4 -18
- package/typedoc/functions/shared_strings.padString.html +4 -18
- package/typedoc/functions/shared_strings.splitOnDelim.html +4 -18
- package/typedoc/functions/shared_strings.stringify.html +4 -18
- package/typedoc/functions/shared_strings.stripLastPathElement.html +4 -18
- package/typedoc/functions/shared_strings.trimHashVal.html +4 -18
- package/typedoc/functions/shared_test-utils.bootstrap.html +4 -18
- package/typedoc/functions/shared_test-utils.browserTrigger.html +4 -18
- package/typedoc/functions/shared_test-utils.wait.html +4 -18
- package/typedoc/functions/shared_utils.addDateMinutes.html +4 -18
- package/typedoc/functions/shared_utils.arrayRemove.html +4 -18
- package/typedoc/functions/shared_utils.assert.html +4 -18
- package/typedoc/functions/shared_utils.assertArg.html +4 -18
- package/typedoc/functions/shared_utils.assertArgFn.html +4 -18
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +4 -18
- package/typedoc/functions/shared_utils.baseExtend.html +4 -18
- package/typedoc/functions/shared_utils.bind.html +4 -18
- package/typedoc/functions/shared_utils.concat.html +4 -18
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +4 -18
- package/typedoc/functions/shared_utils.csp.html +4 -18
- package/typedoc/functions/shared_utils.directiveNormalize.html +4 -18
- package/typedoc/functions/shared_utils.encodeUriQuery.html +4 -18
- package/typedoc/functions/shared_utils.encodeUriSegment.html +4 -18
- package/typedoc/functions/shared_utils.equals.html +4 -18
- package/typedoc/functions/shared_utils.errorHandlingConfig.html +4 -18
- package/typedoc/functions/shared_utils.extend.html +4 -18
- package/typedoc/functions/shared_utils.fromJson.html +4 -18
- package/typedoc/functions/shared_utils.getNgAttribute.html +4 -18
- package/typedoc/functions/shared_utils.getNodeName.html +4 -18
- package/typedoc/functions/shared_utils.hasAnimate.html +4 -18
- package/typedoc/functions/shared_utils.hasCustomToString.html +4 -18
- package/typedoc/functions/shared_utils.hasOwn.html +4 -18
- package/typedoc/functions/shared_utils.hashKey.html +4 -18
- package/typedoc/functions/shared_utils.includes.html +4 -18
- package/typedoc/functions/shared_utils.inherit.html +4 -18
- package/typedoc/functions/shared_utils.isArrayBuffer.html +4 -18
- package/typedoc/functions/shared_utils.isArrayLike.html +7 -18
- package/typedoc/functions/shared_utils.isBlankObject.html +8 -18
- package/typedoc/functions/shared_utils.isBlob.html +4 -18
- package/typedoc/functions/shared_utils.isBoolean.html +4 -18
- package/typedoc/functions/shared_utils.isDate.html +4 -18
- package/typedoc/functions/shared_utils.isDefined.html +4 -18
- package/typedoc/functions/shared_utils.isElement.html +4 -18
- package/typedoc/functions/shared_utils.isError.html +4 -18
- package/typedoc/functions/shared_utils.isFile.html +4 -18
- package/typedoc/functions/shared_utils.isFormData.html +4 -18
- package/typedoc/functions/shared_utils.isFunction.html +4 -18
- package/typedoc/functions/shared_utils.isNull.html +4 -18
- package/typedoc/functions/shared_utils.isNullOrUndefined.html +4 -18
- package/typedoc/functions/shared_utils.isNumber.html +4 -18
- package/typedoc/functions/shared_utils.isNumberNaN.html +4 -18
- package/typedoc/functions/shared_utils.isObject.html +4 -18
- package/typedoc/functions/shared_utils.isObjectEmpty.html +4 -18
- package/typedoc/functions/shared_utils.isPromiseLike.html +4 -18
- package/typedoc/functions/shared_utils.isProxy.html +4 -18
- package/typedoc/functions/shared_utils.isRegExp.html +4 -18
- package/typedoc/functions/shared_utils.isScope.html +4 -18
- package/typedoc/functions/shared_utils.isString.html +4 -18
- package/typedoc/functions/shared_utils.isTypedArray.html +4 -18
- package/typedoc/functions/shared_utils.isUndefined.html +4 -18
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +4 -18
- package/typedoc/functions/shared_utils.isWindow.html +4 -18
- package/typedoc/functions/shared_utils.lowercase.html +4 -18
- package/typedoc/functions/shared_utils.mergeClasses.html +4 -18
- package/typedoc/functions/shared_utils.minErr.html +4 -18
- package/typedoc/functions/shared_utils.nextUid.html +4 -18
- package/typedoc/functions/shared_utils.parseKeyValue.html +4 -18
- package/typedoc/functions/shared_utils.setHashKey.html +4 -18
- package/typedoc/functions/shared_utils.shallowCopy.html +4 -18
- package/typedoc/functions/shared_utils.simpleCompare.html +4 -18
- package/typedoc/functions/shared_utils.sliceArgs.html +4 -18
- package/typedoc/functions/shared_utils.snakeCase.html +4 -18
- package/typedoc/functions/shared_utils.stringify.html +4 -18
- package/typedoc/functions/shared_utils.timezoneToOffset.html +4 -18
- package/typedoc/functions/shared_utils.toDebugString.html +4 -18
- package/typedoc/functions/shared_utils.toInt.html +4 -18
- package/typedoc/functions/shared_utils.toJson.html +4 -18
- package/typedoc/functions/shared_utils.toKeyValue.html +4 -18
- package/typedoc/functions/shared_utils.trim.html +4 -18
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +9 -19
- package/typedoc/functions/shared_utils.uppercase.html +4 -18
- package/typedoc/hierarchy.html +8 -11
- package/typedoc/index.html +5 -8
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +4 -62
- package/typedoc/interfaces/animations_raf-scheduler.ServiceProvider.html +5 -30
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +4 -51
- package/typedoc/interfaces/core_compile_compile.LinkFnMapping.html +4 -51
- package/typedoc/interfaces/core_compile_compile.NodeLinkFnCtx.html +4 -84
- package/typedoc/interfaces/core_compile_compile.SimpleChange.html +4 -40
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +4 -51
- package/typedoc/interfaces/core_location_location.Html5Mode.html +4 -51
- package/typedoc/interfaces/core_parse_ast_ast.Token.html +4 -84
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionHandlerMap.html +4 -73
- package/typedoc/interfaces/core_parse_interface.CompiledExpressionProps.html +5 -107
- package/typedoc/interfaces/core_parse_lexer_lexer.LexerOptions.html +4 -40
- package/typedoc/interfaces/core_parse_parser_parser.ParsedAST.html +4 -29
- package/typedoc/interfaces/core_sanitize_interface.SanitizerFn.html +4 -18
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +4 -51
- package/typedoc/interfaces/core_scope_scope.Listener.html +4 -106
- package/typedoc/interfaces/directive_model-options_model-options.ModelOptionsConfig.html +4 -73
- package/typedoc/interfaces/interface.ChangesObject.html +4 -40
- package/typedoc/interfaces/interface.ComponentOptions.html +4 -95
- package/typedoc/interfaces/interface.Controller.html +5 -74
- package/typedoc/interfaces/interface.Directive.html +6 -207
- package/typedoc/interfaces/interface.DirectivePrePost.html +4 -40
- package/typedoc/interfaces/interface.NgModelController.html +4 -172
- package/typedoc/interfaces/interface.NgModelOptions.html +4 -95
- package/typedoc/interfaces/interface.Provider.html +4 -84
- package/typedoc/interfaces/interface.TranscludeFunctionObject.html +4 -51
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +4 -29
- package/typedoc/interfaces/router_params_interface.ParamDeclaration.html +4 -117
- package/typedoc/interfaces/router_params_interface.ParamTypeDefinition.html +4 -106
- package/typedoc/interfaces/router_params_interface.RawParams.html +4 -18
- package/typedoc/interfaces/router_params_interface.Replace.html +4 -40
- package/typedoc/interfaces/router_resolve_interface.CustomAsyncPolicy.html +4 -18
- package/typedoc/interfaces/router_resolve_interface.ProviderLike.html +4 -84
- package/typedoc/interfaces/router_resolve_interface.ResolvableLiteral.html +4 -73
- package/typedoc/interfaces/router_resolve_interface.ResolvePolicy.html +4 -40
- package/typedoc/interfaces/router_state_interface.HrefOptions.html +4 -62
- package/typedoc/interfaces/router_state_interface.LazyLoadResult.html +4 -29
- package/typedoc/interfaces/router_state_interface.StateDeclaration.html +11 -212
- package/typedoc/interfaces/router_state_interface.TargetStateDef.html +4 -51
- package/typedoc/interfaces/router_state_interface.TransitionPromise.html +5 -54
- package/typedoc/interfaces/router_state_interface.ViewDeclaration.html +4 -183
- package/typedoc/interfaces/router_template-factory.BindingTuple.html +4 -40
- package/typedoc/interfaces/router_transition_interface.HookMatchCriteria.html +4 -73
- package/typedoc/interfaces/router_transition_interface.HookRegOptions.html +4 -51
- package/typedoc/interfaces/router_transition_interface.IHookRegistry.html +4 -128
- package/typedoc/interfaces/router_transition_interface.IMatchingNodes.html +4 -73
- package/typedoc/interfaces/router_transition_interface.PathType.html +4 -40
- package/typedoc/interfaces/router_transition_interface.PathTypes.html +4 -73
- package/typedoc/interfaces/router_transition_interface.RegisteredHooks.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionCreateHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TransitionHookOptions.html +4 -95
- package/typedoc/interfaces/router_transition_interface.TransitionOptions.html +4 -139
- package/typedoc/interfaces/router_transition_interface.TransitionStateHookFn.html +4 -18
- package/typedoc/interfaces/router_transition_interface.TreeChanges.html +4 -84
- package/typedoc/interfaces/router_view_interface.ActiveUIView.html +4 -84
- package/typedoc/interfaces/router_view_interface.ViewConfig.html +4 -73
- package/typedoc/interfaces/router_view_interface.ViewContext.html +4 -40
- package/typedoc/interfaces/services_anchor-scroll.AnchorScrollObject.html +4 -29
- package/typedoc/interfaces/services_log.LogService.html +4 -80
- package/typedoc/interfaces/shared_interface.TypedMap.html +4 -18
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +4 -40
- package/typedoc/modules/animations_animate-cache.html +4 -7
- package/typedoc/modules/animations_animate-children-directive.html +4 -9
- package/typedoc/modules/animations_animate-css-driver.html +4 -7
- package/typedoc/modules/animations_animate-css.html +4 -7
- package/typedoc/modules/animations_animate-js-driver.html +4 -7
- package/typedoc/modules/animations_animate-js.html +4 -7
- package/typedoc/modules/animations_animate-queue.html +4 -7
- package/typedoc/modules/animations_animate-runner.html +4 -7
- package/typedoc/modules/animations_animate-swap.html +4 -7
- package/typedoc/modules/animations_animate.html +4 -7
- package/typedoc/modules/animations_animation.html +4 -7
- package/typedoc/modules/animations_interface.html +4 -7
- package/typedoc/modules/animations_raf-scheduler.html +4 -7
- package/typedoc/modules/animations_shared.html +4 -7
- package/typedoc/modules/core_cache_cache-factory.html +4 -7
- package/typedoc/modules/core_cache_cache.html +4 -7
- package/typedoc/modules/core_compile_attributes.html +4 -7
- package/typedoc/modules/core_compile_compile.html +4 -7
- package/typedoc/modules/core_controller_controller.html +4 -7
- package/typedoc/modules/core_di_injector.html +4 -65
- package/typedoc/modules/core_di_internal-injector.html +4 -7
- package/typedoc/modules/core_di_ng-module.html +4 -34
- package/typedoc/modules/core_error-handler.html +4 -7
- package/typedoc/modules/core_exception-handler.html +4 -7
- package/typedoc/modules/core_filter_filter.html +4 -7
- package/typedoc/modules/core_interpolate_interpolate.html +4 -7
- package/typedoc/modules/core_location_location.html +4 -7
- package/typedoc/modules/core_parse_ast-type.html +4 -7
- package/typedoc/modules/core_parse_ast_ast-node.html +4 -7
- package/typedoc/modules/core_parse_ast_ast.html +4 -7
- package/typedoc/modules/core_parse_interface.html +4 -7
- package/typedoc/modules/core_parse_interpreter.html +4 -7
- package/typedoc/modules/core_parse_lexer_lexer.html +4 -7
- package/typedoc/modules/core_parse_lexer_token.html +4 -7
- package/typedoc/modules/core_parse_parse.html +4 -7
- package/typedoc/modules/core_parse_parser_parser.html +4 -7
- package/typedoc/modules/core_pubsub_pubsub.html +95 -7
- package/typedoc/modules/core_sanitize_interface.html +4 -7
- package/typedoc/modules/core_sanitize_sanitize-uri.html +4 -7
- package/typedoc/modules/core_sce_sce.html +4 -7
- package/typedoc/modules/core_scope_scope.html +4 -7
- package/typedoc/modules/core_task-tracker-factory.html +134 -7
- package/typedoc/modules/core_url-utils_url-utils.html +4 -7
- package/typedoc/modules/directive_aria_aria.html +4 -7
- package/typedoc/modules/directive_attrs_attrs.html +4 -7
- package/typedoc/modules/directive_bind_bind.html +4 -7
- package/typedoc/modules/directive_channel_channel.html +4 -7
- package/typedoc/modules/directive_class_class.html +4 -7
- package/typedoc/modules/directive_cloak_cloak.html +4 -7
- package/typedoc/modules/directive_controller_controller.html +4 -7
- package/typedoc/modules/directive_events_events.html +4 -7
- package/typedoc/modules/directive_form_form.html +4 -7
- package/typedoc/modules/directive_if_if.html +4 -7
- package/typedoc/modules/directive_include_include.html +4 -7
- package/typedoc/modules/directive_init_init.html +4 -7
- package/typedoc/modules/directive_input_input.html +4 -7
- package/typedoc/modules/directive_messages_messages.html +4 -7
- package/typedoc/modules/directive_model-options_model-options.html +4 -9
- package/typedoc/modules/directive_model_model.html +4 -7
- package/typedoc/modules/directive_non-bindable_non-bindable.html +4 -9
- package/typedoc/modules/directive_observe_observe.html +4 -7
- package/typedoc/modules/directive_options_options.html +4 -7
- package/typedoc/modules/directive_ref_ref.html +4 -7
- package/typedoc/modules/directive_repeat_repeat.html +4 -7
- package/typedoc/modules/directive_script_script.html +4 -7
- package/typedoc/modules/directive_select_select.html +4 -7
- package/typedoc/modules/directive_setter_setter.html +4 -7
- package/typedoc/modules/directive_show-hide_show-hide.html +4 -7
- package/typedoc/modules/directive_style_style.html +4 -7
- package/typedoc/modules/directive_switch_switch.html +4 -7
- package/typedoc/modules/directive_transclude_transclude.html +4 -7
- package/typedoc/modules/directive_validators_validators.html +4 -7
- package/typedoc/modules/filters_filter.html +4 -7
- package/typedoc/modules/filters_filters.html +4 -7
- package/typedoc/modules/filters_limit-to.html +4 -7
- package/typedoc/modules/filters_order-by.html +4 -7
- package/typedoc/modules/index.html +4 -84
- package/typedoc/{variables/index.angular.html → modules/injection-tokens.html} +84 -30
- package/typedoc/modules/interface.html +35 -36
- package/typedoc/modules/loader.html +4 -7
- package/typedoc/modules/public.html +4 -7
- package/typedoc/modules/router_common_glob.html +4 -7
- package/typedoc/modules/router_common_queue.html +4 -7
- package/typedoc/modules/router_common_trace.html +4 -7
- package/typedoc/modules/router_directives_state-directives.html +4 -7
- package/typedoc/modules/router_directives_view-directive.html +4 -7
- package/typedoc/modules/router_globals.html +4 -7
- package/typedoc/modules/router_hooks_core-resolvables.html +4 -7
- package/typedoc/modules/router_hooks_ignored-transition.html +4 -7
- package/typedoc/modules/router_hooks_invalid-transition.html +4 -7
- package/typedoc/modules/router_hooks_lazy-load.html +4 -7
- package/typedoc/modules/router_hooks_on-enter-exit-retain.html +4 -7
- package/typedoc/modules/router_hooks_redirect-to.html +4 -7
- package/typedoc/modules/router_hooks_resolve.html +4 -7
- package/typedoc/modules/router_hooks_update-globals.html +4 -7
- package/typedoc/modules/router_hooks_url.html +4 -7
- package/typedoc/modules/router_hooks_views.html +4 -7
- package/typedoc/modules/router_params_interface.html +4 -7
- package/typedoc/modules/router_params_param-factory.html +4 -7
- package/typedoc/modules/router_params_param-type.html +4 -7
- package/typedoc/modules/router_params_param-types.html +4 -7
- package/typedoc/modules/router_params_param.html +4 -7
- package/typedoc/modules/router_params_state-params.html +4 -7
- package/typedoc/modules/router_path_path-node.html +4 -7
- package/typedoc/modules/router_path_path-utils.html +4 -7
- package/typedoc/modules/router_resolve_interface.html +4 -7
- package/typedoc/modules/router_resolve_resolvable.html +4 -7
- package/typedoc/modules/router_resolve_resolve-context.html +4 -7
- package/typedoc/modules/router_state-filters.html +4 -7
- package/typedoc/modules/router_state-provider.html +4 -7
- package/typedoc/modules/router_state_interface.html +4 -7
- package/typedoc/modules/router_state_state-builder.html +4 -7
- package/typedoc/modules/router_state_state-matcher.html +4 -7
- package/typedoc/modules/router_state_state-object.html +4 -7
- package/typedoc/modules/router_state_state-queue-manager.html +4 -7
- package/typedoc/modules/router_state_state-registry.html +4 -7
- package/typedoc/modules/router_state_state-service.html +4 -7
- package/typedoc/modules/router_state_target-state.html +4 -7
- package/typedoc/modules/router_state_views.html +4 -7
- package/typedoc/modules/router_template-factory.html +4 -7
- package/typedoc/modules/router_transition_hook-builder.html +4 -7
- package/typedoc/modules/router_transition_hook-registry.html +4 -7
- package/typedoc/modules/router_transition_interface.html +4 -7
- package/typedoc/modules/router_transition_reject-factory.html +4 -7
- package/typedoc/modules/router_transition_transition-event-type.html +4 -9
- package/typedoc/modules/router_transition_transition-hook.html +4 -7
- package/typedoc/modules/router_transition_transition-service.html +4 -9
- package/typedoc/modules/router_transition_transition.html +4 -7
- package/typedoc/modules/router_url_url-config.html +4 -7
- package/typedoc/modules/router_url_url-matcher.html +4 -7
- package/typedoc/modules/router_url_url-rule.html +4 -7
- package/typedoc/modules/router_url_url-rules.html +4 -7
- package/typedoc/modules/router_url_url-service.html +4 -7
- package/typedoc/modules/router_view-scroll.html +4 -7
- package/typedoc/modules/router_view_interface.html +4 -7
- package/typedoc/modules/router_view_view.html +4 -7
- package/typedoc/modules/services_anchor-scroll.html +4 -7
- package/typedoc/modules/services_browser.html +4 -7
- package/typedoc/modules/services_cookie-reader.html +4 -7
- package/typedoc/modules/services_http-backend_http-backend.html +4 -7
- package/typedoc/modules/services_http_http.html +4 -7
- package/typedoc/modules/services_log.html +4 -7
- package/typedoc/modules/services_template-request.html +4 -7
- package/typedoc/modules/shared_common.html +4 -7
- package/typedoc/modules/shared_constants.html +4 -7
- package/typedoc/modules/shared_dom.html +4 -7
- package/typedoc/modules/shared_hof.html +4 -7
- package/typedoc/modules/shared_interface.html +4 -7
- package/typedoc/modules/shared_noderef.html +4 -7
- package/typedoc/modules/shared_predicates.html +4 -7
- package/typedoc/modules/shared_strings.html +4 -7
- package/typedoc/modules/shared_test-utils.html +4 -7
- package/typedoc/modules/shared_utils.html +4 -34
- package/typedoc/modules.html +31 -8
- package/typedoc/types/animations_animate.AnimationMethod.html +4 -18
- package/typedoc/types/animations_interface.RafScheduler.html +4 -40
- package/typedoc/types/core_cache_cache-factory.TemplateCache.html +4 -18
- package/typedoc/types/core_compile_compile.ApplyDirectivesToNodeFn.html +4 -18
- package/typedoc/types/core_compile_compile.BoundTranscludeFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompileFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompileNodesFn.html +4 -18
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.NodeLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.PublicLinkFn.html +4 -18
- package/typedoc/types/core_compile_compile.TranscludeFn.html +4 -18
- package/typedoc/types/core_error-handler.ErrorHandler.html +4 -18
- package/typedoc/types/core_exception-handler.LogService.html +4 -18
- package/typedoc/types/core_parse_ast_ast-node.ASTNode.html +4 -293
- package/typedoc/types/core_parse_interface.CompiledExpression.html +4 -18
- package/typedoc/types/core_parse_interface.CompiledExpressionFunction.html +7 -20
- package/typedoc/types/core_parse_interface.ParseService.html +7 -20
- package/typedoc/types/core_parse_interpreter.DecoratedASTNode.html +4 -18
- package/typedoc/types/core_scope_scope.ListenerFunction.html +4 -18
- package/typedoc/types/{interface.AnnotatedFactory.html → core_task-tracker-factory.AnnotatedFactory.html} +9 -19
- package/typedoc/types/core_url-utils_url-utils.HttpProtocol.html +4 -18
- package/typedoc/types/interface.CloneAttachFunction.html +4 -18
- package/typedoc/types/interface.ControllerConstructor.html +5 -19
- package/typedoc/types/interface.DirectiveCompileFn.html +4 -18
- package/typedoc/types/interface.DirectiveController.html +4 -18
- package/typedoc/types/interface.DirectiveFactory.html +4 -18
- package/typedoc/types/interface.DirectiveLinkFn.html +4 -18
- package/typedoc/types/interface.Expression.html +4 -18
- package/typedoc/types/interface.FilterFactory.html +4 -18
- package/typedoc/types/interface.FilterFn.html +4 -18
- package/typedoc/types/interface.Injectable.html +5 -19
- package/typedoc/types/interface.InjectableFactory.html +5 -19
- package/typedoc/types/interface.OnChangesObject.html +4 -18
- package/typedoc/types/interface.TController.html +4 -18
- package/typedoc/types/router_resolve_interface.PolicyAsync.html +4 -18
- package/typedoc/types/router_resolve_interface.PolicyWhen.html +4 -18
- package/typedoc/types/router_state_interface.RedirectToResult.html +4 -18
- package/typedoc/types/router_state_interface.ResolveTypes.html +4 -18
- package/typedoc/types/router_state_interface.StateOrName.html +4 -18
- package/typedoc/types/router_state_interface._StateDeclaration.html +4 -18
- package/typedoc/types/router_transition_interface.HookFn.html +4 -18
- package/typedoc/types/router_transition_interface.HookMatchCriterion.html +4 -18
- package/typedoc/types/router_transition_interface.HookResult.html +4 -18
- package/typedoc/types/router_transition_interface.IHookRegistration.html +4 -18
- package/typedoc/types/router_transition_interface.IStateMatch.html +4 -18
- package/typedoc/types/services_anchor-scroll.AnchorScrollFunction.html +4 -18
- package/typedoc/types/services_anchor-scroll.AnchorScrollService.html +4 -18
- package/typedoc/types/services_browser.UrlChangeListener.html +4 -18
- package/typedoc/types/services_log.LogCall.html +4 -18
- package/typedoc/types/shared_interface.Mapper.html +4 -18
- package/typedoc/types/shared_interface.Predicate.html +4 -18
- package/typedoc/types/shared_interface.PredicateBinary.html +4 -18
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +4 -18
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +4 -18
- package/typedoc/variables/animations_shared.DELAY_KEY.html +4 -18
- package/typedoc/variables/animations_shared.DURATION_KEY.html +4 -18
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +4 -18
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +4 -18
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +4 -18
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +4 -18
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +4 -18
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +4 -18
- package/typedoc/variables/animations_shared.TIMING_KEY.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +4 -18
- package/typedoc/variables/animations_shared.ngMinErr.html +4 -18
- package/typedoc/variables/core_cache_cache.Cache.html +4 -18
- package/typedoc/variables/core_cache_cache.EXPANDO.html +4 -18
- package/typedoc/variables/core_cache_cache.ISOLATE_SCOPE_KEY.html +4 -18
- package/typedoc/variables/core_cache_cache.SCOPE_KEY.html +4 -18
- package/typedoc/variables/core_compile_compile.DirectiveSuffix.html +4 -18
- package/typedoc/variables/core_di_ng-module.ANIMATION_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.COMPILE_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.CONTROLLER_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.FILTER_LITERAL.html +4 -18
- package/typedoc/variables/core_di_ng-module.INJECTOR_LITERAL.html +4 -18
- package/typedoc/variables/core_parse_interpreter.PURITY_ABSOLUTE.html +4 -18
- package/typedoc/variables/core_parse_interpreter.PURITY_RELATIVE.html +4 -18
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +4 -18
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +4 -18
- package/typedoc/variables/core_scope_scope.NONSCOPE.html +4 -18
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +4 -18
- package/typedoc/variables/core_scope_scope._postUpdateQueue.html +4 -18
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +4 -18
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassDirective.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +4 -18
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +4 -18
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +4 -18
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +4 -18
- package/typedoc/variables/directive_form_form.formDirective.html +4 -18
- package/typedoc/variables/directive_form_form.ngFormDirective.html +4 -18
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +4 -18
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +4 -18
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageDefaultDirective.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageDirective.html +4 -18
- package/typedoc/variables/directive_messages_messages.ngMessageExpDirective.html +4 -18
- package/typedoc/variables/directive_model-options_model-options.defaultModelOptions.html +4 -18
- package/typedoc/variables/directive_model_model.ngModelMinErr.html +4 -18
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +20 -22
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.patternDirective.html +4 -18
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +4 -18
- package/typedoc/variables/{core_di_injector.path.html → injection-tokens._injectTokens.html} +28 -24
- package/typedoc/variables/public.VERSION.html +4 -18
- package/typedoc/variables/router_common_trace.trace.html +4 -18
- package/typedoc/variables/router_directives_view-directive.ngView.html +4 -23
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +4 -18
- package/typedoc/variables/router_params_param.DefType.html +4 -18
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +4 -18
- package/typedoc/variables/router_resolve_resolve-context.resolvePolicies.html +4 -18
- package/typedoc/variables/router_transition_transition-service.defaultTransOpts.html +4 -18
- package/typedoc/variables/services_log.LogService.html +4 -25
- package/typedoc/variables/shared_common.assertMap.html +4 -18
- package/typedoc/variables/shared_common.assertPredicate.html +4 -18
- package/typedoc/variables/shared_common.pushTo.html +4 -18
- package/typedoc/variables/shared_common.removeFrom.html +4 -18
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +4 -18
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +4 -18
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +4 -18
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +4 -18
- package/typedoc/variables/shared_constants.VALID_CLASS.html +4 -18
- package/typedoc/variables/shared_dom.BOOLEAN_ATTR.html +4 -18
- package/typedoc/variables/shared_hof.propEq.html +4 -18
- package/typedoc/variables/shared_strings.hostRegex.html +4 -18
- package/typedoc/variables/shared_strings.splitEqual.html +4 -18
- package/typedoc/variables/shared_strings.splitHash.html +4 -18
- package/typedoc/variables/shared_strings.splitQuery.html +4 -18
- package/typedoc/variables/shared_utils.isProxySymbol.html +4 -18
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +4 -18
- package/typedoc.json +3 -1
- package/SECURITY.md +0 -16
- package/TODO.md +0 -13
- package/docs/content/en/about/featured-background.jpg +0 -0
- package/docs/content/en/about/index.md +0 -37
- package/docs/content/en/blog/_index.md +0 -8
- package/docs/content/en/blog/news/_index.md +0 -4
- package/docs/content/en/blog/news/first-post/featured-sunset-get.png +0 -0
- package/docs/content/en/blog/news/first-post/index.md +0 -46
- package/docs/content/en/blog/news/second-post.md +0 -238
- package/docs/content/en/blog/releases/_index.md +0 -4
- package/docs/content/en/blog/releases/in-depth-monoliths-detailed-spec.md +0 -238
- package/docs/content/en/community/_index.md +0 -6
- package/docs/content/en/docs/concepts/_index.md +0 -14
- package/docs/content/en/docs/contribution-guidelines/_index.md +0 -77
- package/docs/content/en/docs/examples/_index.md +0 -13
- package/docs/content/en/docs/getting-started/_index.md +0 -35
- package/docs/content/en/docs/getting-started/example-page.md +0 -231
- package/docs/content/en/docs/overview/_index.md +0 -34
- package/docs/content/en/docs/reference/_index.md +0 -12
- package/docs/content/en/docs/reference/parameter-reference.md +0 -207
- package/docs/content/en/docs/tasks/Ponycopters/_index.md +0 -12
- package/docs/content/en/docs/tasks/Ponycopters/configuring-ponycopters.md +0 -230
- package/docs/content/en/docs/tasks/Ponycopters/launching-ponycopters.md +0 -230
- package/docs/content/en/docs/tasks/_index.md +0 -21
- package/docs/content/en/docs/tasks/beds.md +0 -230
- package/docs/content/en/docs/tasks/porridge.md +0 -230
- package/docs/content/en/docs/tasks/task.md +0 -230
- package/docs/content/en/docs/tutorials/_index.md +0 -12
- package/docs/content/en/docs/tutorials/multi-bear.md +0 -230
- package/docs/content/en/docs/tutorials/tutorial2.md +0 -230
- package/docs/content/en/featured-background.jpg +0 -0
- package/docs/content/en/search.md +0 -4
- package/docs/layouts/_default/_markup/render-heading.html +0 -1
- package/public/public/legacy.html +0 -13203
- package/typedoc/functions/shared_utils.replaceInline.html +0 -331
- package/typedoc/variables/core_di_ng-module.PROVIDE_LITERAL.html +0 -263
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../../shared/utils.js";
|
|
11
11
|
import { browserTrigger, wait } from "../../shared/test-utils.js";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
describe("ngOptions", () => {
|
|
14
14
|
let scope;
|
|
15
15
|
let formElement;
|
|
16
16
|
let element;
|
|
@@ -165,6 +165,7 @@ xdescribe("ngOptions", () => {
|
|
|
165
165
|
.module("myModule", ["ng"])
|
|
166
166
|
.decorator("$exceptionHandler", function () {
|
|
167
167
|
return (exception) => {
|
|
168
|
+
console.error(exception.message);
|
|
168
169
|
errors.push(exception.message);
|
|
169
170
|
};
|
|
170
171
|
});
|
|
@@ -277,13 +278,13 @@ xdescribe("ngOptions", () => {
|
|
|
277
278
|
);
|
|
278
279
|
}
|
|
279
280
|
|
|
280
|
-
|
|
281
|
+
fit('should throw when not formated "? for ? in ?"', async () => {
|
|
281
282
|
compile('<select ng-model="selected" ng-options="i dont parse"></select>');
|
|
282
283
|
await wait();
|
|
283
284
|
expect(errors[0]).toMatch("iexp");
|
|
284
285
|
});
|
|
285
286
|
|
|
286
|
-
|
|
287
|
+
fit("should have a dependency on ngModel", async () => {
|
|
287
288
|
try {
|
|
288
289
|
await compile('<select ng-options="item in items"></select>');
|
|
289
290
|
await wait();
|
|
@@ -292,37 +293,37 @@ xdescribe("ngOptions", () => {
|
|
|
292
293
|
}
|
|
293
294
|
});
|
|
294
295
|
|
|
295
|
-
|
|
296
|
+
fit("should render a list", async () => {
|
|
296
297
|
element.innerHTML =
|
|
297
298
|
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
298
299
|
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
300
|
+
await wait();
|
|
299
301
|
scope = injector.get("$rootScope");
|
|
300
302
|
await wait();
|
|
301
303
|
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
302
304
|
await wait();
|
|
303
|
-
|
|
304
|
-
scope.selected = { name: "B" };
|
|
305
|
-
|
|
305
|
+
scope.selected = scope.values[1];
|
|
306
306
|
await wait();
|
|
307
307
|
const options = element.querySelectorAll("option");
|
|
308
308
|
expect(options.length).toEqual(3);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
expect(options[0]).toEqualOption(scope.values[0], "A");
|
|
310
|
+
expect(options[1]).toEqualOption(scope.values[1], "B");
|
|
311
|
+
expect(options[2]).toEqualOption(scope.values[2], "C");
|
|
312
|
+
expect(options[1].selected).toEqual(true);
|
|
313
313
|
});
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
315
|
+
fit("should not include properties with non-numeric keys in array-like collections when using array syntax", async () => {
|
|
316
|
+
element.innerHTML =
|
|
317
|
+
'<select ng-model="selected" ng-options="value for value in values"></select>';
|
|
318
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
319
|
+
scope = injector.get("$rootScope");
|
|
320
|
+
await wait();
|
|
321
321
|
scope.$apply(() => {
|
|
322
322
|
scope.values = { 0: "X", 1: "Y", 2: "Z", a: "A", length: 3 };
|
|
323
|
-
scope.selected = scope.values[1];
|
|
324
323
|
});
|
|
325
|
-
|
|
324
|
+
await wait();
|
|
325
|
+
scope.selected = scope.values[1];
|
|
326
|
+
await wait();
|
|
326
327
|
const options = element.querySelectorAll("option");
|
|
327
328
|
expect(options.length).toEqual(3);
|
|
328
329
|
expect(options[0]).toEqualOption("X");
|
|
@@ -330,36 +331,38 @@ xdescribe("ngOptions", () => {
|
|
|
330
331
|
expect(options[2]).toEqualOption("Z");
|
|
331
332
|
});
|
|
332
333
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
334
|
+
fit("should include properties with non-numeric keys in array-like collections when using object syntax", async () => {
|
|
335
|
+
element.innerHTML =
|
|
336
|
+
'<select ng-model="selected" ng-options="value for (key, value) in values"></select>';
|
|
337
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
338
|
+
scope = injector.get("$rootScope");
|
|
339
|
+
await wait();
|
|
339
340
|
scope.$apply(() => {
|
|
340
341
|
scope.values = { 0: "X", 1: "Y", 2: "Z", a: "A", length: 3 };
|
|
341
342
|
scope.selected = scope.values[1];
|
|
342
343
|
});
|
|
343
|
-
|
|
344
|
+
await wait();
|
|
344
345
|
const options = element.querySelectorAll("option");
|
|
345
346
|
expect(options.length).toEqual(5);
|
|
346
347
|
expect(options[0]).toEqualOption("X");
|
|
347
348
|
expect(options[1]).toEqualOption("Y");
|
|
348
349
|
expect(options[2]).toEqualOption("Z");
|
|
349
|
-
expect(options
|
|
350
|
-
expect(options
|
|
350
|
+
expect(options[3]).toEqualOption("A");
|
|
351
|
+
expect(options[4]).toEqualOption(3);
|
|
351
352
|
});
|
|
352
353
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
354
|
+
fit("should render an object", async () => {
|
|
355
|
+
element.innerHTML =
|
|
356
|
+
'<select ng-model="selected" ng-options="value as key for (key, value) in object"></select>';
|
|
357
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
358
|
+
scope = injector.get("$rootScope");
|
|
359
|
+
await wait();
|
|
358
360
|
|
|
359
361
|
scope.$apply(() => {
|
|
360
362
|
scope.object = { red: "FF0000", green: "00FF00", blue: "0000FF" };
|
|
361
363
|
scope.selected = scope.object.green;
|
|
362
364
|
});
|
|
365
|
+
await wait();
|
|
363
366
|
|
|
364
367
|
let options = element.querySelectorAll("option");
|
|
365
368
|
expect(options.length).toEqual(3);
|
|
@@ -368,17 +371,21 @@ xdescribe("ngOptions", () => {
|
|
|
368
371
|
expect(options[2]).toEqualOption("0000FF", "blue");
|
|
369
372
|
expect(options[1].selected).toEqual(true);
|
|
370
373
|
scope.$apply('object.azur = "8888FF"');
|
|
371
|
-
|
|
374
|
+
await wait();
|
|
372
375
|
options = element.querySelectorAll("option");
|
|
373
376
|
expect(options[1].selected).toEqual(true);
|
|
374
|
-
|
|
377
|
+
await wait();
|
|
375
378
|
scope.$apply("selected = object.azur");
|
|
376
|
-
|
|
379
|
+
await wait();
|
|
377
380
|
options = element.querySelectorAll("option");
|
|
378
381
|
expect(options[3].selected).toEqual(true);
|
|
379
382
|
});
|
|
380
383
|
|
|
381
|
-
|
|
384
|
+
fit('should set the "selected" attribute and property on selected options', async () => {
|
|
385
|
+
element.innerHTML =
|
|
386
|
+
'<select ng-model="selected" ng-options="option.id as option.display for option in values"></select>';
|
|
387
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
388
|
+
scope = injector.get("$rootScope");
|
|
382
389
|
scope.values = [
|
|
383
390
|
{
|
|
384
391
|
id: "FF0000",
|
|
@@ -390,35 +397,37 @@ xdescribe("ngOptions", () => {
|
|
|
390
397
|
},
|
|
391
398
|
];
|
|
392
399
|
scope.selected = "FF0000";
|
|
400
|
+
await wait();
|
|
393
401
|
|
|
394
|
-
createSelect({
|
|
395
|
-
"ng-model": "selected",
|
|
396
|
-
"ng-options": "option.id as option.display for option in values",
|
|
397
|
-
});
|
|
398
402
|
const options = element.querySelectorAll("option");
|
|
399
403
|
expect(options.length).toEqual(2);
|
|
400
404
|
expect(options[0]).toEqualOption("FF0000", "red");
|
|
401
405
|
expect(options[1]).toEqualOption("0000FF", "blue");
|
|
402
406
|
|
|
403
|
-
expect(options[0][0].getAttribute("selected")).toBe("selected");
|
|
404
407
|
expect(options[0].getAttribute("selected")).toBe("selected");
|
|
405
|
-
expect(options[0]
|
|
406
|
-
expect(options[0]
|
|
408
|
+
expect(options[0].getAttribute("selected")).toBe("selected");
|
|
409
|
+
expect(options[0].selected).toBe(true);
|
|
410
|
+
expect(options[0].selected).toBe(true);
|
|
407
411
|
|
|
408
412
|
scope.selected = "0000FF";
|
|
409
|
-
|
|
413
|
+
await wait();
|
|
410
414
|
expect(options[1].getAttribute("selected")).toBe("selected");
|
|
411
|
-
expect(options[1]
|
|
412
|
-
expect(options[1]
|
|
415
|
+
expect(options[1].getAttribute("selected")).toBe("selected");
|
|
416
|
+
expect(options[1].selected).toBe(true);
|
|
417
|
+
expect(options[1].selected).toBe(true);
|
|
413
418
|
});
|
|
414
419
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
420
|
+
fit("should render zero as a valid display value", async () => {
|
|
421
|
+
element.innerHTML =
|
|
422
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
423
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
424
|
+
scope = injector.get("$rootScope");
|
|
425
|
+
await wait();
|
|
418
426
|
scope.$apply(() => {
|
|
419
427
|
scope.values = [{ name: 0 }, { name: 1 }, { name: 2 }];
|
|
420
428
|
scope.selected = scope.values[0];
|
|
421
429
|
});
|
|
430
|
+
await wait();
|
|
422
431
|
|
|
423
432
|
const options = element.querySelectorAll("option");
|
|
424
433
|
expect(options.length).toEqual(3);
|
|
@@ -427,36 +436,38 @@ xdescribe("ngOptions", () => {
|
|
|
427
436
|
expect(options[2]).toEqualOption(scope.values[2], "2");
|
|
428
437
|
});
|
|
429
438
|
|
|
430
|
-
|
|
431
|
-
element =
|
|
439
|
+
fit("should not be set when an option is selected and options are set asynchronously", async () => {
|
|
440
|
+
element.innerHTML =
|
|
432
441
|
'<select ng-model="model" ng-options="opt.id as opt.label for opt in options">' +
|
|
433
|
-
|
|
434
|
-
)(scope);
|
|
442
|
+
"</select>";
|
|
435
443
|
|
|
444
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
445
|
+
scope = injector.get("$rootScope");
|
|
436
446
|
scope.$apply(() => {
|
|
437
447
|
scope.model = 0;
|
|
438
448
|
});
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
done();
|
|
450
|
-
}, 0);
|
|
449
|
+
await wait();
|
|
450
|
+
scope.options = [
|
|
451
|
+
{ id: 0, label: "x" },
|
|
452
|
+
{ id: 1, label: "y" },
|
|
453
|
+
];
|
|
454
|
+
await wait();
|
|
455
|
+
const options = element.querySelectorAll("option");
|
|
456
|
+
expect(options.length).toEqual(2);
|
|
457
|
+
expect(options[0]).toEqualOption(0, "x");
|
|
458
|
+
expect(options[1]).toEqualOption(1, "y");
|
|
451
459
|
});
|
|
452
460
|
|
|
453
|
-
|
|
454
|
-
|
|
461
|
+
fit("should grow list", async () => {
|
|
462
|
+
element.innerHTML =
|
|
463
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
464
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
465
|
+
scope = injector.get("$rootScope");
|
|
455
466
|
|
|
456
467
|
scope.$apply(() => {
|
|
457
468
|
scope.values = [];
|
|
458
469
|
});
|
|
459
|
-
|
|
470
|
+
await wait();
|
|
460
471
|
expect(element.querySelectorAll("option").length).toEqual(1); // because we add special unknown option
|
|
461
472
|
expect(element.querySelectorAll("option")[0]).toEqualUnknownOption();
|
|
462
473
|
|
|
@@ -464,9 +475,9 @@ xdescribe("ngOptions", () => {
|
|
|
464
475
|
scope.values.push({ name: "A" });
|
|
465
476
|
scope.selected = scope.values[0];
|
|
466
477
|
});
|
|
467
|
-
|
|
478
|
+
await wait();
|
|
468
479
|
expect(element.querySelectorAll("option").length).toEqual(1);
|
|
469
|
-
expect(element.querySelectorAll("option")).toEqualOption(
|
|
480
|
+
expect(element.querySelectorAll("option")[0]).toEqualOption(
|
|
470
481
|
scope.values[0],
|
|
471
482
|
"A",
|
|
472
483
|
);
|
|
@@ -474,7 +485,7 @@ xdescribe("ngOptions", () => {
|
|
|
474
485
|
scope.$apply(() => {
|
|
475
486
|
scope.values.push({ name: "B" });
|
|
476
487
|
});
|
|
477
|
-
|
|
488
|
+
await wait();
|
|
478
489
|
expect(element.querySelectorAll("option").length).toEqual(2);
|
|
479
490
|
expect(element.querySelectorAll("option")[0]).toEqualOption(
|
|
480
491
|
scope.values[0],
|
|
@@ -486,20 +497,23 @@ xdescribe("ngOptions", () => {
|
|
|
486
497
|
);
|
|
487
498
|
});
|
|
488
499
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
500
|
+
fit("should shrink list", async () => {
|
|
501
|
+
element.innerHTML =
|
|
502
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
503
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
504
|
+
scope = injector.get("$rootScope");
|
|
505
|
+
await wait();
|
|
492
506
|
scope.$apply(() => {
|
|
493
507
|
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
494
508
|
scope.selected = scope.values[0];
|
|
495
509
|
});
|
|
496
|
-
|
|
510
|
+
await wait();
|
|
497
511
|
expect(element.querySelectorAll("option").length).toEqual(3);
|
|
498
512
|
|
|
499
513
|
scope.$apply(() => {
|
|
500
514
|
scope.values.pop();
|
|
501
515
|
});
|
|
502
|
-
|
|
516
|
+
await wait();
|
|
503
517
|
expect(element.querySelectorAll("option").length).toEqual(2);
|
|
504
518
|
expect(element.querySelectorAll("option")[0]).toEqualOption(
|
|
505
519
|
scope.values[0],
|
|
@@ -513,9 +527,10 @@ xdescribe("ngOptions", () => {
|
|
|
513
527
|
scope.$apply(() => {
|
|
514
528
|
scope.values.pop();
|
|
515
529
|
});
|
|
530
|
+
await wait();
|
|
516
531
|
|
|
517
532
|
expect(element.querySelectorAll("option").length).toEqual(1);
|
|
518
|
-
expect(element.querySelectorAll("option")).toEqualOption(
|
|
533
|
+
expect(element.querySelectorAll("option")[0]).toEqualOption(
|
|
519
534
|
scope.values[0],
|
|
520
535
|
"A",
|
|
521
536
|
);
|
|
@@ -524,48 +539,50 @@ xdescribe("ngOptions", () => {
|
|
|
524
539
|
scope.values.pop();
|
|
525
540
|
scope.selected = null;
|
|
526
541
|
});
|
|
542
|
+
await wait();
|
|
527
543
|
|
|
528
544
|
expect(element.querySelectorAll("option").length).toEqual(1); // we add back the special empty option
|
|
529
545
|
});
|
|
530
546
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
|
|
547
|
+
fit("should shrink and then grow list", async () => {
|
|
548
|
+
element.innerHTML =
|
|
549
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
550
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
551
|
+
scope = injector.get("$rootScope");
|
|
552
|
+
await wait();
|
|
553
|
+
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
554
|
+
await wait();
|
|
555
|
+
scope.selected = scope.values[0];
|
|
556
|
+
await wait();
|
|
539
557
|
expect(element.querySelectorAll("option").length).toEqual(3);
|
|
540
558
|
|
|
541
|
-
scope
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
559
|
+
scope.values = [{ name: "1" }, { name: "2" }];
|
|
560
|
+
await wait();
|
|
561
|
+
scope.selected = scope.values[0];
|
|
562
|
+
await wait();
|
|
546
563
|
expect(element.querySelectorAll("option").length).toEqual(2);
|
|
547
564
|
|
|
548
|
-
scope
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
565
|
+
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
566
|
+
await wait();
|
|
567
|
+
scope.selected = scope.values[0];
|
|
568
|
+
await wait();
|
|
553
569
|
expect(element.querySelectorAll("option").length).toEqual(3);
|
|
554
570
|
});
|
|
555
571
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
scope.selected = scope.values[0];
|
|
562
|
-
});
|
|
563
|
-
|
|
564
|
-
scope.$apply(() => {
|
|
565
|
-
scope.values = [{ name: "B" }, { name: "C" }, { name: "D" }];
|
|
566
|
-
scope.selected = scope.values[0];
|
|
567
|
-
});
|
|
572
|
+
fit("should update list", async () => {
|
|
573
|
+
element.innerHTML =
|
|
574
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
575
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
576
|
+
scope = injector.get("$rootScope");
|
|
568
577
|
|
|
578
|
+
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
579
|
+
await wait();
|
|
580
|
+
scope.selected = scope.values[0];
|
|
581
|
+
await wait();
|
|
582
|
+
scope.values = [{ name: "B" }, { name: "C" }, { name: "D" }];
|
|
583
|
+
await wait();
|
|
584
|
+
scope.selected = scope.values[0];
|
|
585
|
+
await wait();
|
|
569
586
|
const options = element.querySelectorAll("option");
|
|
570
587
|
expect(options.length).toEqual(3);
|
|
571
588
|
expect(options[0]).toEqualOption(scope.values[0], "B");
|
|
@@ -573,37 +590,36 @@ xdescribe("ngOptions", () => {
|
|
|
573
590
|
expect(options[2]).toEqualOption(scope.values[2], "D");
|
|
574
591
|
});
|
|
575
592
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
593
|
+
fit("should preserve pre-existing empty option", async () => {
|
|
594
|
+
element.innerHTML =
|
|
595
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
596
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
597
|
+
scope = injector.get("$rootScope");
|
|
598
|
+
await wait();
|
|
599
|
+
scope.values = [];
|
|
600
|
+
await wait();
|
|
582
601
|
expect(element.querySelectorAll("option").length).toEqual(1);
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
});
|
|
588
|
-
|
|
602
|
+
scope.values = [{ name: "A" }];
|
|
603
|
+
await wait();
|
|
604
|
+
scope.selected = scope.values[0];
|
|
605
|
+
await wait();
|
|
589
606
|
expect(element.querySelectorAll("option").length).toEqual(2);
|
|
590
607
|
expect(element.querySelectorAll("option")[0].textContent).toEqual("blank");
|
|
591
608
|
expect(element.querySelectorAll("option")[1].textContent).toEqual("A");
|
|
592
609
|
|
|
593
|
-
scope
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
610
|
+
scope.values = [];
|
|
611
|
+
await wait();
|
|
612
|
+
scope.selected = null;
|
|
613
|
+
await wait();
|
|
598
614
|
expect(element.querySelectorAll("option").length).toEqual(1);
|
|
599
615
|
expect(element.querySelectorAll("option")[0].textContent).toEqual("blank");
|
|
600
616
|
});
|
|
601
617
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
"ng-options"
|
|
605
|
-
|
|
606
|
-
|
|
618
|
+
fit("should ignore $ and $$ properties", async () => {
|
|
619
|
+
element.innerHTML =
|
|
620
|
+
'<select ng-model="selected" ng-options="key as value for (key, value) in object"></select>';
|
|
621
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
622
|
+
scope = injector.get("$rootScope");
|
|
607
623
|
|
|
608
624
|
scope.$apply(() => {
|
|
609
625
|
scope.object = {
|
|
@@ -613,7 +629,7 @@ xdescribe("ngOptions", () => {
|
|
|
613
629
|
};
|
|
614
630
|
scope.selected = "regularProperty";
|
|
615
631
|
});
|
|
616
|
-
|
|
632
|
+
await wait();
|
|
617
633
|
const options = element.querySelectorAll("option");
|
|
618
634
|
expect(options.length).toEqual(1);
|
|
619
635
|
expect(options[0]).toEqualOption("regularProperty", "visible");
|
|
@@ -687,7 +703,10 @@ xdescribe("ngOptions", () => {
|
|
|
687
703
|
it("should not update selected property of an option element on digest with no change event", () => {
|
|
688
704
|
// ng-options="value.name for value in values"
|
|
689
705
|
// ng-model="selected"
|
|
690
|
-
|
|
706
|
+
element.innerHTML =
|
|
707
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
708
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
709
|
+
scope = injector.get("$rootScope");
|
|
691
710
|
|
|
692
711
|
scope.$apply(() => {
|
|
693
712
|
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
@@ -713,7 +732,10 @@ xdescribe("ngOptions", () => {
|
|
|
713
732
|
it("should update the label property", () => {
|
|
714
733
|
// ng-options="value.name for value in values"
|
|
715
734
|
// ng-model="selected"
|
|
716
|
-
|
|
735
|
+
element.innerHTML =
|
|
736
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
737
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
738
|
+
scope = injector.get("$rootScope");
|
|
717
739
|
|
|
718
740
|
scope.$apply(() => {
|
|
719
741
|
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
@@ -729,7 +751,10 @@ xdescribe("ngOptions", () => {
|
|
|
729
751
|
it("should update the label if only the property has changed", () => {
|
|
730
752
|
// ng-options="value.name for value in values"
|
|
731
753
|
// ng-model="selected"
|
|
732
|
-
|
|
754
|
+
element.innerHTML =
|
|
755
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
756
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
757
|
+
scope = injector.get("$rootScope");
|
|
733
758
|
|
|
734
759
|
scope.$apply(() => {
|
|
735
760
|
scope.values = [{ name: "A" }, { name: "B" }, { name: "C" }];
|
|
@@ -1710,7 +1735,10 @@ xdescribe("ngOptions", () => {
|
|
|
1710
1735
|
|
|
1711
1736
|
describe("binding", () => {
|
|
1712
1737
|
it("should bind to scope value", () => {
|
|
1713
|
-
|
|
1738
|
+
element.innerHTML =
|
|
1739
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
1740
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
1741
|
+
scope = injector.get("$rootScope");
|
|
1714
1742
|
|
|
1715
1743
|
scope.$apply(() => {
|
|
1716
1744
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
@@ -2177,7 +2205,10 @@ xdescribe("ngOptions", () => {
|
|
|
2177
2205
|
});
|
|
2178
2206
|
|
|
2179
2207
|
it("should insert the unknown option if bound to null", () => {
|
|
2180
|
-
|
|
2208
|
+
element.innerHTML =
|
|
2209
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
2210
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2211
|
+
scope = injector.get("$rootScope");
|
|
2181
2212
|
|
|
2182
2213
|
scope.$apply(() => {
|
|
2183
2214
|
scope.values = [{ name: "A" }];
|
|
@@ -2197,7 +2228,10 @@ xdescribe("ngOptions", () => {
|
|
|
2197
2228
|
});
|
|
2198
2229
|
|
|
2199
2230
|
it("should select the provided empty option if bound to null", () => {
|
|
2200
|
-
|
|
2231
|
+
element.innerHTML =
|
|
2232
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2233
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2234
|
+
scope = injector.get("$rootScope");
|
|
2201
2235
|
|
|
2202
2236
|
scope.$apply(() => {
|
|
2203
2237
|
scope.values = [{ name: "A" }];
|
|
@@ -2218,7 +2252,10 @@ xdescribe("ngOptions", () => {
|
|
|
2218
2252
|
});
|
|
2219
2253
|
|
|
2220
2254
|
it("should reuse blank option if bound to null", () => {
|
|
2221
|
-
|
|
2255
|
+
element.innerHTML =
|
|
2256
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2257
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2258
|
+
scope = injector.get("$rootScope");
|
|
2222
2259
|
|
|
2223
2260
|
scope.$apply(() => {
|
|
2224
2261
|
scope.values = [{ name: "A" }];
|
|
@@ -2260,7 +2297,10 @@ xdescribe("ngOptions", () => {
|
|
|
2260
2297
|
});
|
|
2261
2298
|
|
|
2262
2299
|
it("should insert a unknown option if bound to something not in the list", () => {
|
|
2263
|
-
|
|
2300
|
+
element.innerHTML =
|
|
2301
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
2302
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2303
|
+
scope = injector.get("$rootScope");
|
|
2264
2304
|
|
|
2265
2305
|
scope.$apply(() => {
|
|
2266
2306
|
scope.values = [{ name: "A" }];
|
|
@@ -2287,7 +2327,10 @@ xdescribe("ngOptions", () => {
|
|
|
2287
2327
|
() => {
|
|
2288
2328
|
scope.selected = "C";
|
|
2289
2329
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
2290
|
-
|
|
2330
|
+
element.innerHTML =
|
|
2331
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2332
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2333
|
+
scope = injector.get("$rootScope");
|
|
2291
2334
|
|
|
2292
2335
|
expect(element.value).toBe("?");
|
|
2293
2336
|
expect(element.length).toBe(4);
|
|
@@ -2300,7 +2343,10 @@ xdescribe("ngOptions", () => {
|
|
|
2300
2343
|
);
|
|
2301
2344
|
|
|
2302
2345
|
it('should select correct input if previously selected option was "?"', () => {
|
|
2303
|
-
|
|
2346
|
+
element.innerHTML =
|
|
2347
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
2348
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2349
|
+
scope = injector.get("$rootScope");
|
|
2304
2350
|
|
|
2305
2351
|
scope.$apply(() => {
|
|
2306
2352
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
@@ -2321,7 +2367,10 @@ xdescribe("ngOptions", () => {
|
|
|
2321
2367
|
it("should remove unknown option when empty option exists and model is undefined", () => {
|
|
2322
2368
|
scope.selected = "C";
|
|
2323
2369
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
2324
|
-
|
|
2370
|
+
element.innerHTML =
|
|
2371
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2372
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2373
|
+
scope = injector.get("$rootScope");
|
|
2325
2374
|
|
|
2326
2375
|
expect(element.value).toBe("?");
|
|
2327
2376
|
|
|
@@ -2578,7 +2627,10 @@ xdescribe("ngOptions", () => {
|
|
|
2578
2627
|
scope.$apply(() => {
|
|
2579
2628
|
scope.values = [{ name: "A" }];
|
|
2580
2629
|
});
|
|
2581
|
-
|
|
2630
|
+
element.innerHTML =
|
|
2631
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2632
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2633
|
+
scope = injector.get("$rootScope");
|
|
2582
2634
|
// ensure the first option (the blank option) is selected
|
|
2583
2635
|
expect(element.selectedIndex).toEqual(0);
|
|
2584
2636
|
// ensure the option has not changed following the digest
|
|
@@ -2739,7 +2791,10 @@ xdescribe("ngOptions", () => {
|
|
|
2739
2791
|
|
|
2740
2792
|
describe("on change", () => {
|
|
2741
2793
|
it("should update model on change", () => {
|
|
2742
|
-
|
|
2794
|
+
element.innerHTML =
|
|
2795
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
2796
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2797
|
+
scope = injector.get("$rootScope");
|
|
2743
2798
|
|
|
2744
2799
|
scope.$apply(() => {
|
|
2745
2800
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
@@ -2773,7 +2828,10 @@ xdescribe("ngOptions", () => {
|
|
|
2773
2828
|
});
|
|
2774
2829
|
|
|
2775
2830
|
it("should update model to null on change", () => {
|
|
2776
|
-
|
|
2831
|
+
element.innerHTML =
|
|
2832
|
+
'<select ng-model="selected" ng-options="value.name for value in values"><option value="">blank</option></select>';
|
|
2833
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
2834
|
+
scope = injector.get("$rootScope");
|
|
2777
2835
|
|
|
2778
2836
|
scope.$apply(() => {
|
|
2779
2837
|
scope.values = [{ name: "A" }, { name: "B" }];
|
|
@@ -3221,7 +3279,10 @@ xdescribe("ngOptions", () => {
|
|
|
3221
3279
|
scope.values = ["a", "b"];
|
|
3222
3280
|
});
|
|
3223
3281
|
|
|
3224
|
-
|
|
3282
|
+
element.innerHTML =
|
|
3283
|
+
'<select ng-model="selected" ng-options="value.name for value in values"></select>';
|
|
3284
|
+
injector = window.angular.bootstrap(element, ["myModule"]);
|
|
3285
|
+
scope = injector.get("$rootScope");
|
|
3225
3286
|
|
|
3226
3287
|
expect(element.classList.contains("ng-valid")).toBeTrue();
|
|
3227
3288
|
expect(element.classList.contains("ng-pristine")).toBeTrue();
|