@angular-wave/angular.ts 0.2.3 → 0.3.0
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/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/core/cache/cache-factory.js +3 -0
- package/src/core/compile/compile.spec.js +92 -91
- package/src/directive/include/include.spec.js +7 -7
- package/src/directive/init/init.spec.js +2 -2
- package/src/directive/messages/messages.spec.js +9 -9
- package/src/directive/options/options.spec.js +1 -1
- package/src/directive/repeat/repeat.spec.js +4 -4
- package/src/directive/script/script.js +1 -1
- package/src/public.js +1 -3
- package/src/router/directives/view-directive.spec.js +16 -16
- package/src/services/http/http.js +8 -15
- package/src/services/http/template-request.spec.js +5 -20
- package/src/services/template-request.js +2 -1
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/classes/animations_animate.AnimateProvider.html +5 -5
- package/typedoc/classes/animations_animate_cache.__AnimateCacheProvider.html +2 -2
- package/typedoc/classes/animations_animate_css._AnimateCssProvider.html +2 -2
- package/typedoc/classes/animations_animate_css_driver.__AnimateCssDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_js.__AnimateJsProvider.html +2 -2
- package/typedoc/classes/animations_animate_js_driver.__AnimateJsDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_queue.__AnimateQueueProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateAsyncRunFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunner.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunnerFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animation.__AnimationProvider.html +2 -2
- package/typedoc/classes/animations_raf_scheduler.RafSchedulerProvider.html +3 -3
- package/typedoc/classes/core_cache_cache_factory.TemplateCacheProvider.html +3 -0
- package/typedoc/classes/core_compile_attributes.Attributes.html +11 -11
- package/typedoc/classes/core_compile_compile._CompileProvider.html +7 -7
- package/typedoc/classes/core_controller_controller._ControllerProvider.html +18 -11
- package/typedoc/classes/core_di_internal_injector.InjectorService.html +6 -6
- package/typedoc/classes/core_di_internal_injector.ProviderInjector.html +7 -7
- package/typedoc/classes/core_di_ng_module.NgModule.html +4 -4
- package/typedoc/classes/core_exception_handler._ExceptionHandlerProvider.html +2 -2
- package/typedoc/classes/core_filter_filter._FilterProvider.html +2 -2
- package/typedoc/classes/core_interpolate_interpolate._InterpolateProvider.html +4 -4
- package/typedoc/classes/core_interval_interval._IntervalProvider.html +2 -2
- package/typedoc/classes/core_interval_interval_factory.__IntervalFactoryProvider.html +2 -2
- package/typedoc/classes/core_location_location.Location.html +20 -20
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +21 -21
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +21 -21
- package/typedoc/classes/core_location_location._LocationProvider.html +4 -4
- package/typedoc/classes/core_parser_ast.AST.html +28 -28
- package/typedoc/classes/core_parser_interpreter.ASTInterpreter.html +26 -26
- package/typedoc/classes/core_parser_lexer.Lexer.html +16 -16
- package/typedoc/classes/core_parser_parse._ParseProvider.html +3 -3
- package/typedoc/classes/core_parser_parser.Parser.html +4 -4
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +9 -9
- package/typedoc/classes/core_q_q._QProvider.html +3 -3
- package/typedoc/classes/core_q_q.__QProvider.html +2 -2
- package/typedoc/classes/core_sanitize_sanitize_uri.SanitizeUriProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceDelegateProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceProvider.html +3 -3
- package/typedoc/classes/core_scope_scope.Scope.html +18 -18
- package/typedoc/classes/core_scope_scope._RootScopeProvider.html +2 -2
- package/typedoc/classes/core_task_tracker_factory.TaskTracker.html +7 -7
- package/typedoc/classes/core_task_tracker_factory.__TaskTrackerFactoryProvider.html +2 -2
- package/typedoc/classes/core_timeout_timeout._TimeoutProvider.html +2 -2
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +2 -2
- package/typedoc/classes/directive_form_form.FormController.html +21 -21
- package/typedoc/classes/directive_model_model.NgModelController.html +32 -32
- package/typedoc/classes/loader.Angular.html +5 -5
- package/typedoc/classes/router_common_glob.Glob.html +4 -4
- package/typedoc/classes/router_common_queue.Queue.html +2 -2
- package/typedoc/classes/router_common_trace.Trace.html +17 -17
- package/typedoc/classes/router_globals.UIRouterGlobals.html +3 -3
- package/typedoc/classes/router_params_param.Param.html +6 -6
- package/typedoc/classes/router_params_param_factory.ParamFactory.html +2 -2
- package/typedoc/classes/router_params_param_type.ParamType.html +4 -4
- package/typedoc/classes/router_params_param_types.ParamTypes.html +3 -3
- package/typedoc/classes/router_params_state_params.StateParams.html +3 -3
- package/typedoc/classes/router_path_path_node.PathNode.html +7 -7
- package/typedoc/classes/router_path_path_utils.PathUtils.html +10 -10
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +4 -4
- package/typedoc/classes/router_resolve_resolve_context.ResolveContext.html +10 -10
- package/typedoc/classes/router_state_state_builder.StateBuilder.html +3 -3
- package/typedoc/classes/router_state_state_matcher.StateMatcher.html +2 -2
- package/typedoc/classes/router_state_state_object.StateObject.html +9 -9
- package/typedoc/classes/router_state_state_queue_manager.StateQueueManager.html +2 -2
- package/typedoc/classes/router_state_state_registry.StateRegistry.html +8 -8
- package/typedoc/classes/router_state_state_service.StateService.html +17 -17
- package/typedoc/classes/router_state_target_state.TargetState.html +15 -15
- package/typedoc/classes/router_state_views.Ng1ViewConfig.html +4 -4
- package/typedoc/classes/router_template_factory.TemplateFactory.html +9 -9
- package/typedoc/classes/router_transition_hook_builder.HookBuilder.html +4 -4
- package/typedoc/classes/router_transition_hook_registry.RegisteredHook.html +6 -6
- package/typedoc/classes/router_transition_reject_factory.Rejection.html +9 -9
- package/typedoc/classes/router_transition_transition.Transition.html +31 -31
- package/typedoc/classes/router_transition_transition_event_type.TransitionEventType.html +3 -3
- package/typedoc/classes/router_transition_transition_hook.TransitionHook.html +10 -10
- package/typedoc/classes/router_transition_transition_service.TransitionService.html +8 -8
- package/typedoc/classes/router_url_url_config.UrlConfigProvider.html +6 -6
- package/typedoc/classes/router_url_url_matcher.UrlMatcher.html +12 -12
- package/typedoc/classes/router_url_url_rule.BaseUrlRule.html +3 -3
- package/typedoc/classes/router_url_url_rule.UrlRuleFactory.html +5 -5
- package/typedoc/classes/router_url_url_rules.UrlRules.html +9 -9
- package/typedoc/classes/router_url_url_service.UrlService.html +20 -20
- package/typedoc/classes/router_view_scroll._ViewScrollProvider.html +2 -2
- package/typedoc/classes/router_view_view.ViewService.html +7 -7
- package/typedoc/classes/services_anchor_scroll.AnchorScrollProvider.html +2 -2
- package/typedoc/classes/services_browser.Browser.html +7 -7
- package/typedoc/classes/services_browser.BrowserProvider.html +2 -2
- package/typedoc/classes/services_http_backend_http_backend._HttpBackendProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerJQLikeProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpProvider.html +3 -3
- package/typedoc/classes/services_log._LogProvider.html +3 -3
- package/typedoc/classes/services_template_request.TemplateRequestProvider.html +4 -4
- package/typedoc/classes/shared_jqlite_jqlite.JQLite.html +20 -20
- package/typedoc/enums/core_parser_ast_type.ASTType.html +2 -2
- package/typedoc/enums/core_scope_scope.ScopePhase.html +2 -2
- package/typedoc/enums/router_transition_reject_factory.RejectType.html +6 -6
- package/typedoc/functions/animations_animate.domInsert.html +1 -1
- package/typedoc/functions/animations_animate_cache.animateCache.html +6 -6
- package/typedoc/functions/animations_animate_children_directive.__AnimateChildrenDirective.html +2 -2
- package/typedoc/functions/animations_animate_swap.ngAnimateSwapDirective.html +2 -2
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +1 -1
- package/typedoc/functions/animations_shared.applyInlineStyle.html +1 -1
- package/typedoc/functions/animations_shared.assertArg.html +1 -1
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +1 -1
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +1 -1
- package/typedoc/functions/animations_shared.concatWithSpace.html +1 -1
- package/typedoc/functions/animations_shared.extractElementNode.html +1 -1
- package/typedoc/functions/animations_shared.getDomNode.html +1 -1
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +1 -1
- package/typedoc/functions/animations_shared.mergeClasses.html +1 -1
- package/typedoc/functions/animations_shared.ngMinErr.html +1 -1
- package/typedoc/functions/animations_shared.packageStyles.html +1 -1
- package/typedoc/functions/animations_shared.pendClasses.html +1 -1
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +1 -1
- package/typedoc/functions/animations_shared.removeFromArray.html +1 -1
- package/typedoc/functions/animations_shared.resolveElementClasses.html +1 -1
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +1 -1
- package/typedoc/functions/core_controller_controller.identifierForController.html +1 -1
- package/typedoc/functions/core_di_injector.annotate.html +1 -1
- package/typedoc/functions/core_di_injector.createInjector.html +1 -1
- package/typedoc/functions/core_exception_handler.errorHandler-1.html +1 -1
- package/typedoc/functions/core_location_location.serverBase.html +1 -1
- package/typedoc/functions/core_location_location.stripBaseUrl.html +1 -1
- package/typedoc/functions/core_location_location.stripFile.html +1 -1
- package/typedoc/functions/core_location_location.stripHash.html +1 -1
- package/typedoc/functions/core_parser_interpreter.isAssignable.html +1 -1
- package/typedoc/functions/core_parser_parse.constantWatchDelegate.html +1 -1
- package/typedoc/functions/core_q_q.markQExceptionHandled.html +1 -1
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +1 -1
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +1 -1
- package/typedoc/functions/core_scope_scope.countChildScopes.html +1 -1
- package/typedoc/functions/core_scope_scope.countWatchers.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.getBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsAllowedOriginFactory.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOrigin.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOriginAsBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlResolve.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlsAreSameOrigin.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +2 -2
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +1 -1
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +1 -1
- package/typedoc/functions/directive_change_change.ngChangeDirective.html +1 -1
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +1 -1
- package/typedoc/functions/directive_events_events.createEventDirective.html +1 -1
- package/typedoc/functions/directive_form_form.addSetValidityMethod.html +1 -1
- package/typedoc/functions/directive_form_form.isObjectEmpty.html +1 -1
- package/typedoc/functions/directive_form_form.setupValidity.html +1 -1
- package/typedoc/functions/directive_if_if.ngIfDirective.html +2 -2
- package/typedoc/functions/directive_init_init.ngInitDirective.html +1 -1
- package/typedoc/functions/directive_input_input.badInputChecker.html +1 -1
- package/typedoc/functions/directive_input_input.countDecimals.html +1 -1
- package/typedoc/functions/directive_input_input.createDateInputType.html +1 -1
- package/typedoc/functions/directive_input_input.createDateParser.html +1 -1
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +1 -1
- package/typedoc/functions/directive_input_input.inputDirective.html +2 -2
- package/typedoc/functions/directive_input_input.isNumberInteger.html +1 -1
- package/typedoc/functions/directive_input_input.isValidForStep.html +1 -1
- package/typedoc/functions/directive_input_input.ngValueDirective.html +1 -1
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +1 -1
- package/typedoc/functions/directive_input_input.numberInputType.html +1 -1
- package/typedoc/functions/directive_input_input.rangeInputType.html +1 -1
- package/typedoc/functions/directive_input_input.weekParser.html +1 -1
- package/typedoc/functions/directive_list_list.ngListDirective.html +1 -1
- package/typedoc/functions/directive_messages_messages.ngMessageDefaultDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageExpDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelMinErr.html +1 -1
- package/typedoc/functions/directive_model_options_model_options.ngModelOptionsDirective.html +1 -1
- package/typedoc/functions/directive_non_bindable_non_bindable.ngNonBindableDirective.html +1 -1
- package/typedoc/functions/directive_select_select.optionDirective.html +2 -2
- package/typedoc/functions/directive_select_select.selectDirective.html +1 -1
- package/typedoc/functions/directive_show_hide_show_hide.ngHideDirective.html +2 -2
- package/typedoc/functions/directive_show_hide_show_hide.ngShowDirective.html +2 -2
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +1 -1
- package/typedoc/functions/filters_filter.filterFilter.html +1 -1
- package/typedoc/functions/filters_filters.formatNumber.html +1 -1
- package/typedoc/functions/filters_filters.jsonFilter.html +1 -1
- package/typedoc/functions/filters_limit_to.limitToFilter.html +1 -1
- package/typedoc/functions/filters_order_by.orderByFilter.html +2 -2
- package/typedoc/functions/public.publishExternalAPI.html +1 -1
- package/typedoc/functions/router_directives_state_directives._StateRefActiveDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDynamicDirective.html +2 -2
- package/typedoc/functions/router_directives_view_directive._ViewDirectiveFill.html +2 -2
- package/typedoc/functions/router_hooks_core_resolvables.registerAddCoreResolvables.html +1 -1
- package/typedoc/functions/router_hooks_core_resolvables.treeChangesCleanup.html +1 -1
- package/typedoc/functions/router_hooks_ignored_transition.registerIgnoredTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_invalid_transition.registerInvalidTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.lazyLoadState.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.registerLazyLoadHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnEnterHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnExitHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnRetainHook.html +1 -1
- package/typedoc/functions/router_hooks_redirect_to.registerRedirectToHook.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +1 -1
- package/typedoc/functions/router_hooks_update_globals.registerUpdateGlobalState.html +1 -1
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +1 -1
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +1 -1
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +1 -1
- package/typedoc/functions/router_state_filters._IncludedByStateFilter.html +2 -2
- package/typedoc/functions/router_state_filters._IsStateFilter.html +2 -2
- package/typedoc/functions/router_state_state_builder.resolvablesBuilder.html +1 -1
- package/typedoc/functions/router_state_state_registry.getLocals.html +1 -1
- package/typedoc/functions/router_state_views.getNg1ViewConfigFactory.html +1 -1
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.makeEvent.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.matchState.html +1 -1
- package/typedoc/functions/services_browser.trimEmptyHash.html +1 -1
- package/typedoc/functions/services_cookie_reader.getCookies.html +1 -1
- package/typedoc/functions/services_http_backend_http_backend.createHttpBackend.html +1 -1
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +1 -1
- package/typedoc/functions/shared_common._removeFrom.html +1 -1
- package/typedoc/functions/shared_common.allTrueR.html +1 -1
- package/typedoc/functions/shared_common.ancestors.html +1 -1
- package/typedoc/functions/shared_common.anyTrueR.html +1 -1
- package/typedoc/functions/shared_common.applyPairs.html +1 -1
- package/typedoc/functions/shared_common.arrayTuples.html +1 -1
- package/typedoc/functions/shared_common.assertFn.html +1 -1
- package/typedoc/functions/shared_common.assertMap.html +1 -1
- package/typedoc/functions/shared_common.assertPredicate.html +1 -1
- package/typedoc/functions/shared_common.copy.html +1 -1
- package/typedoc/functions/shared_common.createProxyFunctions.html +1 -1
- package/typedoc/functions/shared_common.defaults.html +1 -1
- package/typedoc/functions/shared_common.deregAll.html +1 -1
- package/typedoc/functions/shared_common.equals.html +1 -1
- package/typedoc/functions/shared_common.filter.html +1 -1
- package/typedoc/functions/shared_common.find.html +1 -1
- package/typedoc/functions/shared_common.flatten.html +1 -1
- package/typedoc/functions/shared_common.flattenR.html +1 -1
- package/typedoc/functions/shared_common.forEach.html +1 -1
- package/typedoc/functions/shared_common.inherit.html +1 -1
- package/typedoc/functions/shared_common.map.html +1 -1
- package/typedoc/functions/shared_common.mergeR.html +1 -1
- package/typedoc/functions/shared_common.omit.html +1 -1
- package/typedoc/functions/shared_common.pairs.html +1 -1
- package/typedoc/functions/shared_common.pick.html +1 -1
- package/typedoc/functions/shared_common.pluck.html +1 -1
- package/typedoc/functions/shared_common.pushR.html +1 -1
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +1 -1
- package/typedoc/functions/shared_common.silentRejection.html +1 -1
- package/typedoc/functions/shared_common.tail.html +1 -1
- package/typedoc/functions/shared_common.uniqR.html +1 -1
- package/typedoc/functions/shared_common.unnest.html +1 -1
- package/typedoc/functions/shared_common.unnestR.html +1 -1
- package/typedoc/functions/shared_hof.all.html +1 -1
- package/typedoc/functions/shared_hof.compose.html +1 -1
- package/typedoc/functions/shared_hof.curry.html +1 -1
- package/typedoc/functions/shared_hof.is.html +1 -1
- package/typedoc/functions/shared_hof.or.html +1 -1
- package/typedoc/functions/shared_hof.parse.html +1 -1
- package/typedoc/functions/shared_hof.pattern.html +1 -1
- package/typedoc/functions/shared_hof.pipe.html +1 -1
- package/typedoc/functions/shared_hof.prop.html +1 -1
- package/typedoc/functions/shared_hof.val.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.buildFragment.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.cleanElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.dealoc.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBlockNodes.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBooleanAttrName.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getOrSetCacheData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.isTextNode.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.kebabToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElement.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.snakeToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.startingTag.html +1 -1
- package/typedoc/functions/shared_predicates.isInjectable.html +1 -1
- package/typedoc/functions/shared_predicates.isNull.html +1 -1
- package/typedoc/functions/shared_predicates.isNullOrUndefined.html +1 -1
- package/typedoc/functions/shared_predicates.isPromise.html +1 -1
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +1 -1
- package/typedoc/functions/shared_strings.fnToString.html +1 -1
- package/typedoc/functions/shared_strings.functionToString.html +1 -1
- package/typedoc/functions/shared_strings.joinNeighborsR.html +1 -1
- package/typedoc/functions/shared_strings.kebobString.html +1 -1
- package/typedoc/functions/shared_strings.maxLength.html +1 -1
- package/typedoc/functions/shared_strings.padString.html +1 -1
- package/typedoc/functions/shared_strings.splitEqual.html +1 -1
- package/typedoc/functions/shared_strings.splitHash.html +1 -1
- package/typedoc/functions/shared_strings.splitOnDelim.html +1 -1
- package/typedoc/functions/shared_strings.splitQuery.html +1 -1
- package/typedoc/functions/shared_strings.stringify.html +1 -1
- package/typedoc/functions/shared_strings.stripLastPathElement.html +1 -1
- package/typedoc/functions/shared_strings.trimHashVal.html +1 -1
- package/typedoc/functions/shared_utils.addDateMinutes.html +1 -1
- package/typedoc/functions/shared_utils.arrayRemove.html +1 -1
- package/typedoc/functions/shared_utils.assert.html +1 -1
- package/typedoc/functions/shared_utils.assertArg.html +1 -1
- package/typedoc/functions/shared_utils.assertArgFn.html +1 -1
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +1 -1
- package/typedoc/functions/shared_utils.baseExtend.html +1 -1
- package/typedoc/functions/shared_utils.bind.html +1 -1
- package/typedoc/functions/shared_utils.concat.html +1 -1
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +1 -1
- package/typedoc/functions/shared_utils.csp.html +1 -1
- package/typedoc/functions/shared_utils.directiveNormalize.html +3 -3
- package/typedoc/functions/shared_utils.encodeUriQuery.html +1 -1
- package/typedoc/functions/shared_utils.encodeUriSegment.html +1 -1
- package/typedoc/functions/shared_utils.equals.html +1 -1
- package/typedoc/functions/shared_utils.errorHandlingConfig-1.html +1 -1
- package/typedoc/functions/shared_utils.extend.html +1 -1
- package/typedoc/functions/shared_utils.forEach.html +1 -1
- package/typedoc/functions/shared_utils.fromJson.html +1 -1
- package/typedoc/functions/shared_utils.getNgAttribute.html +1 -1
- package/typedoc/functions/shared_utils.getNodeName.html +1 -1
- package/typedoc/functions/shared_utils.hasAnimate.html +1 -1
- package/typedoc/functions/shared_utils.hasCustomToString.html +1 -1
- package/typedoc/functions/shared_utils.hashKey.html +1 -1
- package/typedoc/functions/shared_utils.includes.html +1 -1
- package/typedoc/functions/shared_utils.inherit.html +1 -1
- package/typedoc/functions/shared_utils.isArrayBuffer.html +1 -1
- package/typedoc/functions/shared_utils.isArrayLike.html +1 -1
- package/typedoc/functions/shared_utils.isBlankObject.html +1 -1
- package/typedoc/functions/shared_utils.isBlob.html +1 -1
- package/typedoc/functions/shared_utils.isBoolean.html +1 -1
- package/typedoc/functions/shared_utils.isDate.html +1 -1
- package/typedoc/functions/shared_utils.isDefined.html +1 -1
- package/typedoc/functions/shared_utils.isElement.html +1 -1
- package/typedoc/functions/shared_utils.isError.html +1 -1
- package/typedoc/functions/shared_utils.isFile.html +1 -1
- package/typedoc/functions/shared_utils.isFormData.html +1 -1
- package/typedoc/functions/shared_utils.isFunction.html +1 -1
- package/typedoc/functions/shared_utils.isNumber.html +1 -1
- package/typedoc/functions/shared_utils.isNumberNaN.html +1 -1
- package/typedoc/functions/shared_utils.isObject.html +1 -1
- package/typedoc/functions/shared_utils.isPromiseLike.html +1 -1
- package/typedoc/functions/shared_utils.isRegExp.html +1 -1
- package/typedoc/functions/shared_utils.isScope.html +1 -1
- package/typedoc/functions/shared_utils.isString.html +1 -1
- package/typedoc/functions/shared_utils.isTypedArray.html +1 -1
- package/typedoc/functions/shared_utils.isUndefined.html +1 -1
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +1 -1
- package/typedoc/functions/shared_utils.isWindow.html +1 -1
- package/typedoc/functions/shared_utils.lowercase.html +1 -1
- package/typedoc/functions/shared_utils.merge.html +1 -1
- package/typedoc/functions/shared_utils.mergeClasses.html +1 -1
- package/typedoc/functions/shared_utils.minErr.html +1 -1
- package/typedoc/functions/shared_utils.nextUid.html +1 -1
- package/typedoc/functions/shared_utils.parseKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.reverseParams.html +1 -1
- package/typedoc/functions/shared_utils.setHashKey.html +1 -1
- package/typedoc/functions/shared_utils.shallowCopy.html +1 -1
- package/typedoc/functions/shared_utils.simpleCompare.html +1 -1
- package/typedoc/functions/shared_utils.sliceArgs.html +1 -1
- package/typedoc/functions/shared_utils.snakeCase.html +1 -1
- package/typedoc/functions/shared_utils.stringify.html +1 -1
- package/typedoc/functions/shared_utils.timezoneToOffset.html +1 -1
- package/typedoc/functions/shared_utils.toDebugString.html +1 -1
- package/typedoc/functions/shared_utils.toInt.html +1 -1
- package/typedoc/functions/shared_utils.toJson.html +1 -1
- package/typedoc/functions/shared_utils.toKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.trim.html +1 -1
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +1 -1
- package/typedoc/functions/shared_utils.uppercase.html +1 -1
- package/typedoc/functions/shared_utils.valueFn.html +1 -1
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +5 -5
- package/typedoc/interfaces/animations_raf_scheduler.RafSchedulerObject.html +2 -2
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +2 -2
- package/typedoc/interfaces/core_compile_attributes.AttributeLike.html +2 -2
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +2 -2
- package/typedoc/interfaces/core_location_location.Html5Mode.html +2 -2
- package/typedoc/interfaces/core_parser_ast.ASTNode.html +23 -23
- package/typedoc/interfaces/core_parser_lexer.LexerOptions.html +3 -3
- package/typedoc/interfaces/core_parser_lexer.Token.html +7 -7
- package/typedoc/interfaces/core_parser_parse.CompiledExpressionProps.html +5 -5
- package/typedoc/interfaces/core_parser_parser.ParsedAST.html +3 -3
- package/typedoc/interfaces/core_q_q.Deferred.html +5 -5
- package/typedoc/interfaces/core_q_q.PromiseResolvables.html +2 -2
- package/typedoc/interfaces/core_q_q.PromiseState.html +2 -2
- package/typedoc/interfaces/core_q_q.QPromise.html +6 -6
- package/typedoc/interfaces/core_q_q.QService.html +2 -2
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +2 -2
- package/typedoc/interfaces/directive_model_options_model_options.ModelOptionsConfig.html +5 -5
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +2 -2
- package/typedoc/interfaces/router_template_factory.BindingTuple.html +2 -2
- package/typedoc/interfaces/services_anchor_scroll.AnchorScrollObject.html +2 -2
- package/typedoc/interfaces/services_log.LogService.html +6 -6
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +3 -3
- package/typedoc/interfaces/types.Annotated.html +2 -2
- package/typedoc/interfaces/types.ChangesObject.html +4 -4
- package/typedoc/interfaces/types.Controller.html +7 -7
- package/typedoc/interfaces/types.Directive.html +18 -18
- package/typedoc/interfaces/types.DirectivePrePost.html +3 -3
- package/typedoc/interfaces/types.FormController.html +20 -20
- package/typedoc/interfaces/types.Module.html +15 -15
- package/typedoc/interfaces/types.NgModelController.html +30 -30
- package/typedoc/interfaces/types.NgModelOptions.html +8 -8
- package/typedoc/interfaces/types.OnChangesObject.html +2 -2
- package/typedoc/interfaces/types.ServiceProviderClass.html +2 -2
- package/typedoc/interfaces/types.TranscludeFunctionObject.html +2 -2
- package/typedoc/modules/animations_animate.html +1 -1
- package/typedoc/modules/animations_animate_cache.html +1 -1
- package/typedoc/modules/animations_animate_children_directive.html +1 -1
- package/typedoc/modules/animations_animate_css.html +1 -1
- package/typedoc/modules/animations_animate_css_driver.html +1 -1
- package/typedoc/modules/animations_animate_js.html +1 -1
- package/typedoc/modules/animations_animate_js_driver.html +1 -1
- package/typedoc/modules/animations_animate_queue.html +1 -1
- package/typedoc/modules/animations_animate_runner.html +1 -1
- package/typedoc/modules/animations_animate_swap.html +1 -1
- package/typedoc/modules/animations_animation.html +1 -1
- package/typedoc/modules/animations_raf_scheduler.html +1 -1
- package/typedoc/modules/animations_shared.html +1 -1
- package/typedoc/modules/core_cache_cache.html +1 -1
- package/typedoc/modules/core_cache_cache_factory.html +2 -0
- package/typedoc/modules/core_compile_attributes.html +1 -1
- package/typedoc/modules/core_compile_compile.html +1 -1
- package/typedoc/modules/core_controller_controller.html +1 -1
- package/typedoc/modules/core_di_injector.html +1 -1
- package/typedoc/modules/core_di_internal_injector.html +1 -1
- package/typedoc/modules/core_di_ng_module.html +1 -1
- package/typedoc/modules/core_exception_handler.html +1 -1
- package/typedoc/modules/core_filter_filter.html +1 -1
- package/typedoc/modules/core_interpolate_interpolate.html +1 -1
- package/typedoc/modules/core_interval_interval.html +1 -1
- package/typedoc/modules/core_interval_interval_factory.html +1 -1
- package/typedoc/modules/core_location_location.html +1 -1
- package/typedoc/modules/core_parser_ast.html +1 -1
- package/typedoc/modules/core_parser_ast_type.html +1 -1
- package/typedoc/modules/core_parser_interpreter.html +1 -1
- package/typedoc/modules/core_parser_lexer.html +1 -1
- package/typedoc/modules/core_parser_parse.html +1 -1
- package/typedoc/modules/core_parser_parser.html +1 -1
- package/typedoc/modules/core_pubsub_pubsub.html +1 -1
- package/typedoc/modules/core_q_q.html +1 -1
- package/typedoc/modules/core_sanitize_sanitize_uri.html +1 -1
- package/typedoc/modules/core_sce_sce.html +1 -1
- package/typedoc/modules/core_scope_scope.html +1 -1
- package/typedoc/modules/core_task_tracker_factory.html +1 -1
- package/typedoc/modules/core_timeout_timeout.html +1 -1
- package/typedoc/modules/core_url_utils_url_utils.html +1 -1
- package/typedoc/modules/directive_aria_aria.html +1 -1
- package/typedoc/modules/directive_attrs_attrs.html +1 -1
- package/typedoc/modules/directive_bind_bind.html +1 -1
- package/typedoc/modules/directive_change_change.html +1 -1
- package/typedoc/modules/directive_class_class.html +1 -1
- package/typedoc/modules/directive_cloak_cloak.html +1 -1
- package/typedoc/modules/directive_controller_controller.html +1 -1
- package/typedoc/modules/directive_events_events.html +1 -1
- package/typedoc/modules/directive_form_form.html +1 -1
- package/typedoc/modules/directive_if_if.html +1 -1
- package/typedoc/modules/directive_include_include.html +1 -1
- package/typedoc/modules/directive_init_init.html +1 -1
- package/typedoc/modules/directive_input_input.html +1 -1
- package/typedoc/modules/directive_list_list.html +1 -1
- package/typedoc/modules/directive_messages_messages.html +1 -1
- package/typedoc/modules/directive_model_model.html +1 -1
- package/typedoc/modules/directive_model_options_model_options.html +1 -1
- package/typedoc/modules/directive_non_bindable_non_bindable.html +1 -1
- package/typedoc/modules/directive_options_options.html +1 -1
- package/typedoc/modules/directive_ref_ref.html +1 -1
- package/typedoc/modules/directive_repeat_repeat.html +1 -1
- package/typedoc/modules/directive_script_script.html +1 -1
- package/typedoc/modules/directive_select_select.html +1 -1
- package/typedoc/modules/directive_show_hide_show_hide.html +1 -1
- package/typedoc/modules/directive_style_style.html +1 -1
- package/typedoc/modules/directive_switch_switch.html +1 -1
- package/typedoc/modules/directive_transclude_transclude.html +1 -1
- package/typedoc/modules/directive_validators_validators.html +1 -1
- package/typedoc/modules/filters_filter.html +1 -1
- package/typedoc/modules/filters_filters.html +1 -1
- package/typedoc/modules/filters_limit_to.html +1 -1
- package/typedoc/modules/filters_order_by.html +1 -1
- package/typedoc/modules/index.html +1 -1
- package/typedoc/modules/loader.html +1 -1
- package/typedoc/modules/public.html +1 -1
- package/typedoc/modules/router_common_coreservices.html +1 -1
- package/typedoc/modules/router_common_glob.html +1 -1
- package/typedoc/modules/router_common_queue.html +1 -1
- package/typedoc/modules/router_common_trace.html +1 -1
- package/typedoc/modules/router_directives_state_directives.html +1 -1
- package/typedoc/modules/router_directives_view_directive.html +1 -1
- package/typedoc/modules/router_globals.html +1 -1
- package/typedoc/modules/router_hooks_core_resolvables.html +1 -1
- package/typedoc/modules/router_hooks_ignored_transition.html +1 -1
- package/typedoc/modules/router_hooks_invalid_transition.html +1 -1
- package/typedoc/modules/router_hooks_lazy_load.html +1 -1
- package/typedoc/modules/router_hooks_on_enter_exit_retain.html +1 -1
- package/typedoc/modules/router_hooks_redirect_to.html +1 -1
- package/typedoc/modules/router_hooks_resolve.html +1 -1
- package/typedoc/modules/router_hooks_update_globals.html +1 -1
- package/typedoc/modules/router_hooks_url.html +1 -1
- package/typedoc/modules/router_hooks_views.html +1 -1
- package/typedoc/modules/router_params_param.html +1 -1
- package/typedoc/modules/router_params_param_factory.html +1 -1
- package/typedoc/modules/router_params_param_type.html +1 -1
- package/typedoc/modules/router_params_param_types.html +1 -1
- package/typedoc/modules/router_params_state_params.html +1 -1
- package/typedoc/modules/router_path_path_node.html +1 -1
- package/typedoc/modules/router_path_path_utils.html +1 -1
- package/typedoc/modules/router_resolve_resolvable.html +1 -1
- package/typedoc/modules/router_resolve_resolve_context.html +1 -1
- package/typedoc/modules/router_state_filters.html +1 -1
- package/typedoc/modules/router_state_state_builder.html +1 -1
- package/typedoc/modules/router_state_state_matcher.html +1 -1
- package/typedoc/modules/router_state_state_object.html +1 -1
- package/typedoc/modules/router_state_state_queue_manager.html +1 -1
- package/typedoc/modules/router_state_state_registry.html +1 -1
- package/typedoc/modules/router_state_state_service.html +1 -1
- package/typedoc/modules/router_state_target_state.html +1 -1
- package/typedoc/modules/router_state_views.html +1 -1
- package/typedoc/modules/router_template_factory.html +1 -1
- package/typedoc/modules/router_transition_hook_builder.html +1 -1
- package/typedoc/modules/router_transition_hook_registry.html +1 -1
- package/typedoc/modules/router_transition_interface.html +1 -1
- package/typedoc/modules/router_transition_reject_factory.html +1 -1
- package/typedoc/modules/router_transition_transition.html +1 -1
- package/typedoc/modules/router_transition_transition_event_type.html +1 -1
- package/typedoc/modules/router_transition_transition_hook.html +1 -1
- package/typedoc/modules/router_transition_transition_service.html +1 -1
- package/typedoc/modules/router_url_url_config.html +1 -1
- package/typedoc/modules/router_url_url_matcher.html +1 -1
- package/typedoc/modules/router_url_url_rule.html +1 -1
- package/typedoc/modules/router_url_url_rules.html +1 -1
- package/typedoc/modules/router_url_url_service.html +1 -1
- package/typedoc/modules/router_view_scroll.html +1 -1
- package/typedoc/modules/router_view_view.html +1 -1
- package/typedoc/modules/services_anchor_scroll.html +1 -1
- package/typedoc/modules/services_browser.html +1 -1
- package/typedoc/modules/services_cookie_reader.html +1 -1
- package/typedoc/modules/services_http_backend_http_backend.html +1 -1
- package/typedoc/modules/services_http_http.html +1 -1
- package/typedoc/modules/services_log.html +1 -1
- package/typedoc/modules/services_template_request.html +1 -1
- package/typedoc/modules/shared_common.html +1 -2
- package/typedoc/modules/shared_constants.html +1 -1
- package/typedoc/modules/shared_hof.html +1 -2
- package/typedoc/modules/shared_jqlite_jqlite.html +1 -1
- package/typedoc/modules/shared_predicates.html +1 -1
- package/typedoc/modules/shared_strings.html +1 -1
- package/typedoc/modules/shared_utils.html +1 -3
- package/typedoc/modules/types.html +1 -1
- package/typedoc/types/animations_animate.AnimationMethod.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafScheduler.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafSchedulerFunction.html +1 -1
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +1 -1
- package/typedoc/types/core_exception_handler.ErrorHandler.html +1 -1
- package/typedoc/types/core_exception_handler.ExceptionHandlerProvider.html +1 -1
- package/typedoc/types/core_interval_interval.IntervalId.html +1 -1
- package/typedoc/types/core_parser_interpreter.DecoratedASTNode.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpression.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpressionFunction.html +1 -1
- package/typedoc/types/core_parser_parse.ParseService.html +1 -1
- package/typedoc/types/core_scope_scope.TTL.html +1 -1
- package/typedoc/types/core_scope_scope.WatchExpression.html +1 -1
- package/typedoc/types/core_scope_scope.WatchListener.html +1 -1
- package/typedoc/types/core_url_utils_url_utils.HttpProtocol.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollFunction.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollService.html +1 -1
- package/typedoc/types/services_browser.UrlChangeListener.html +1 -1
- package/typedoc/types/services_log.LogCall.html +1 -1
- package/typedoc/types/types.AnnotatedFunction.html +1 -1
- package/typedoc/types/types.AsyncModelValidators.html +1 -1
- package/typedoc/types/types.Attributes.html +1 -1
- package/typedoc/types/types.BootstrapConfig.html +1 -1
- package/typedoc/types/types.CloneAttachFunction.html +1 -1
- package/typedoc/types/types.ComponentOptions.html +1 -1
- package/typedoc/types/types.ControllerConstructor.html +1 -1
- package/typedoc/types/types.DirectiveCompileFn.html +1 -1
- package/typedoc/types/types.DirectiveController.html +1 -1
- package/typedoc/types/types.DirectiveFactory.html +1 -1
- package/typedoc/types/types.DirectiveLinkFn.html +1 -1
- package/typedoc/types/types.FilterFactory.html +1 -1
- package/typedoc/types/types.FilterFunction.html +1 -1
- package/typedoc/types/types.Injectable.html +1 -1
- package/typedoc/types/types.ModelValidators.html +1 -1
- package/typedoc/types/types.ServiceProviderFactory.html +1 -1
- package/typedoc/types/types.TAttributes.html +1 -1
- package/typedoc/types/types.TController.html +1 -1
- package/typedoc/types/types.TElement.html +1 -1
- package/typedoc/types/types.TScope.html +1 -1
- package/typedoc/types/types.TranscludeFunction.html +1 -1
- package/typedoc/types/types.transcludeWithScope.html +1 -1
- package/typedoc/types/types.transcludeWithoutScope.html +1 -1
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.DELAY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.DURATION_KEY.html +1 -1
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +1 -1
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +1 -1
- package/typedoc/variables/animations_shared.TIMING_KEY.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +1 -1
- package/typedoc/variables/core_cache_cache.CACHE.html +1 -1
- package/typedoc/variables/core_cache_cache.EXPANDO.html +1 -1
- package/typedoc/variables/core_di_injector.path.html +1 -1
- package/typedoc/variables/core_di_ng_module.ANIMATION_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.COMPILE_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.CONTROLLER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.FILTER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.INJECTOR_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.PROVIDE_LITERAL.html +1 -1
- package/typedoc/variables/core_parser_ast.literals.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_ABSOLUTE.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_RELATIVE.html +1 -1
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +1 -1
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +1 -1
- package/typedoc/variables/core_scope_scope.TTL-1.html +1 -1
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__asyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__postDigestQueue.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +1 -1
- package/typedoc/variables/directive_bind_bind.ngBindHtmlDirective.html +1 -1
- package/typedoc/variables/directive_class_class.ngClassDirective.html +1 -58
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +1 -27
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +1 -27
- package/typedoc/variables/directive_controller_controller.ngControllerDirective.html +1 -1
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +1 -1
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +1 -1
- package/typedoc/variables/directive_form_form.formDirective.html +1 -1
- package/typedoc/variables/directive_form_form.ngFormDirective.html +1 -1
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeDirective.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeFillContentDirective.html +1 -1
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +1 -1
- package/typedoc/variables/directive_model_options_model_options.defaultModelOptions.html +1 -1
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +1 -1
- package/typedoc/variables/directive_ref_ref.ngRefDirective.html +1 -1
- package/typedoc/variables/directive_repeat_repeat.ngRepeatDirective.html +1 -1
- package/typedoc/variables/directive_script_script.scriptDirective.html +1 -1
- package/typedoc/variables/directive_switch_switch.ngSwitchDirective.html +1 -1
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.patternDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +1 -1
- package/typedoc/variables/index.angular.html +1 -1
- package/typedoc/variables/public.VERSION.html +1 -1
- package/typedoc/variables/router_common_coreservices.services.html +1 -1
- package/typedoc/variables/router_common_trace.Category.html +1 -1
- package/typedoc/variables/router_common_trace.trace-1.html +1 -1
- package/typedoc/variables/router_directives_view_directive.ngView.html +1 -1
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +1 -1
- package/typedoc/variables/router_params_param.DefType.html +1 -1
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +1 -1
- package/typedoc/variables/router_resolve_resolve_context.resolvePolicies.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookPhase.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookScope.html +1 -1
- package/typedoc/variables/router_transition_transition_service.defaultTransOpts.html +1 -1
- package/typedoc/variables/services_log.LogService-1.html +1 -1
- package/typedoc/variables/shared_common.pushTo.html +1 -1
- package/typedoc/variables/shared_common.removeFrom.html +1 -1
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +1 -1
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.VALID_CLASS.html +1 -1
- package/typedoc/variables/shared_hof.propEq.html +1 -1
- package/typedoc/variables/shared_jqlite_jqlite.BOOLEAN_ATTR.html +1 -1
- package/typedoc/variables/shared_strings.hostRegex.html +1 -1
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +1 -1
- package/types/core/cache/cache-factory.d.ts +4 -0
- package/types/directive/model/model.d.ts +4 -4
- package/types/services/http/http.d.ts +1 -1
- package/src/core/cache/cache-factory.html +0 -18
- package/src/core/cache/cache-factory.spec.js +0 -334
- package/src/core/cache/cache-factory.test.js +0 -11
- package/src/services/cache-factory.js +0 -289
- package/src/services/cache-factory.md +0 -75
- package/typedoc/classes/services_cache_factory.CacheFactoryProvider.html +0 -3
- package/typedoc/classes/services_cache_factory.TemplateCacheProvider.html +0 -53
- package/typedoc/functions/shared_common.mapObj.html +0 -3
- package/typedoc/functions/shared_hof.eq.html +0 -2
- package/typedoc/functions/shared_utils.forEachSorted.html +0 -1
- package/typedoc/functions/shared_utils.getter.html +0 -5
- package/typedoc/modules/services_cache_factory.html +0 -3
- package/types/services/cache-factory.d.ts +0 -68
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { Angular } from "../../loader";
|
|
2
|
-
import { createInjector } from "../di/injector";
|
|
3
|
-
|
|
4
|
-
describe("$cacheFactory", () => {
|
|
5
|
-
let $cacheFactory;
|
|
6
|
-
|
|
7
|
-
beforeEach(() => {
|
|
8
|
-
window.angular = new Angular();
|
|
9
|
-
createInjector(["ng"]).invoke((_$cacheFactory_) => {
|
|
10
|
-
$cacheFactory = _$cacheFactory_;
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it("should be injected", () => {
|
|
15
|
-
expect($cacheFactory).toBeDefined();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("should return a new cache whenever called", () => {
|
|
19
|
-
const cache1 = $cacheFactory("cache1");
|
|
20
|
-
const cache2 = $cacheFactory("cache2");
|
|
21
|
-
expect(cache1).not.toEqual(cache2);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it("should complain if the cache id is being reused", () => {
|
|
25
|
-
$cacheFactory("cache1");
|
|
26
|
-
expect(() => {
|
|
27
|
-
$cacheFactory("cache1");
|
|
28
|
-
}).toThrowError(/iid/);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
describe("info", () => {
|
|
32
|
-
it("should provide info about all created caches", () => {
|
|
33
|
-
expect($cacheFactory.info()).toEqual({});
|
|
34
|
-
|
|
35
|
-
const cache1 = $cacheFactory("cache1");
|
|
36
|
-
expect($cacheFactory.info()).toEqual({
|
|
37
|
-
cache1: { id: "cache1", size: 0 },
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
cache1.put("foo", "bar");
|
|
41
|
-
expect($cacheFactory.info()).toEqual({
|
|
42
|
-
cache1: { id: "cache1", size: 1 },
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
describe("get", () => {
|
|
48
|
-
it("should return a cache if looked up by id", () => {
|
|
49
|
-
const cache1 = $cacheFactory("cache1");
|
|
50
|
-
const cache2 = $cacheFactory("cache2");
|
|
51
|
-
|
|
52
|
-
expect(cache1).not.toBe(cache2);
|
|
53
|
-
expect(cache1).toBe($cacheFactory.get("cache1"));
|
|
54
|
-
expect(cache2).toBe($cacheFactory.get("cache2"));
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
describe("cache", () => {
|
|
59
|
-
let cache;
|
|
60
|
-
|
|
61
|
-
beforeEach(() => {
|
|
62
|
-
cache = $cacheFactory("test");
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
describe("put, get & remove", () => {
|
|
66
|
-
it("should add cache entries via add and retrieve them via get", () => {
|
|
67
|
-
cache.put("key1", "bar");
|
|
68
|
-
cache.put("key2", { bar: "baz" });
|
|
69
|
-
|
|
70
|
-
expect(cache.get("key2")).toEqual({ bar: "baz" });
|
|
71
|
-
expect(cache.get("key1")).toBe("bar");
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it("should ignore put if the value is undefined", () => {
|
|
75
|
-
cache.put();
|
|
76
|
-
cache.put("key1");
|
|
77
|
-
cache.put("key2", undefined);
|
|
78
|
-
|
|
79
|
-
expect(cache.info().size).toBe(0);
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
it("should remove entries via remove", () => {
|
|
83
|
-
cache.put("k1", "foo");
|
|
84
|
-
cache.put("k2", "bar");
|
|
85
|
-
|
|
86
|
-
cache.remove("k2");
|
|
87
|
-
|
|
88
|
-
expect(cache.get("k1")).toBe("foo");
|
|
89
|
-
expect(cache.get("k2")).toBeUndefined();
|
|
90
|
-
|
|
91
|
-
cache.remove("k1");
|
|
92
|
-
|
|
93
|
-
expect(cache.get("k1")).toBeUndefined();
|
|
94
|
-
expect(cache.get("k2")).toBeUndefined();
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it("should return undefined when entry does not exist", () => {
|
|
98
|
-
expect(cache.remove("non-existent")).toBeUndefined();
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it("should stringify keys", () => {
|
|
102
|
-
cache.put("123", "foo");
|
|
103
|
-
cache.put(123, "bar");
|
|
104
|
-
|
|
105
|
-
expect(cache.get("123")).toBe("bar");
|
|
106
|
-
expect(cache.info().size).toBe(1);
|
|
107
|
-
|
|
108
|
-
cache.remove(123);
|
|
109
|
-
expect(cache.info().size).toBe(0);
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
it("should return value from put", () => {
|
|
113
|
-
const obj = {};
|
|
114
|
-
expect(cache.put("k1", obj)).toBe(obj);
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
describe("info", () => {
|
|
119
|
-
it("should size increment with put and decrement with remove", () => {
|
|
120
|
-
expect(cache.info().size).toBe(0);
|
|
121
|
-
|
|
122
|
-
cache.put("foo", "bar");
|
|
123
|
-
expect(cache.info().size).toBe(1);
|
|
124
|
-
|
|
125
|
-
cache.put("baz", "boo");
|
|
126
|
-
expect(cache.info().size).toBe(2);
|
|
127
|
-
|
|
128
|
-
cache.remove("baz");
|
|
129
|
-
expect(cache.info().size).toBe(1);
|
|
130
|
-
|
|
131
|
-
cache.remove("foo");
|
|
132
|
-
expect(cache.info().size).toBe(0);
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
it("should only decrement size when an element is actually removed via remove", () => {
|
|
136
|
-
cache.put("foo", "bar");
|
|
137
|
-
expect(cache.info().size).toBe(1);
|
|
138
|
-
|
|
139
|
-
cache.remove("undefined");
|
|
140
|
-
expect(cache.info().size).toBe(1);
|
|
141
|
-
|
|
142
|
-
cache.remove("hasOwnProperty");
|
|
143
|
-
expect(cache.info().size).toBe(1);
|
|
144
|
-
|
|
145
|
-
cache.remove("foo");
|
|
146
|
-
expect(cache.info().size).toBe(0);
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
it("should return cache id", () => {
|
|
150
|
-
expect(cache.info().id).toBe("test");
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
describe("removeAll", () => {
|
|
155
|
-
it("should blow away all data", () => {
|
|
156
|
-
cache.put("id1", 1);
|
|
157
|
-
cache.put("id2", 2);
|
|
158
|
-
cache.put("id3", 3);
|
|
159
|
-
expect(cache.info().size).toBe(3);
|
|
160
|
-
|
|
161
|
-
cache.removeAll();
|
|
162
|
-
|
|
163
|
-
expect(cache.info().size).toBe(0);
|
|
164
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
165
|
-
expect(cache.get("id2")).toBeUndefined();
|
|
166
|
-
expect(cache.get("id3")).toBeUndefined();
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
describe("destroy", () => {
|
|
171
|
-
it("should make the cache unusable and remove references to it from $cacheFactory", () => {
|
|
172
|
-
cache.put("foo", "bar");
|
|
173
|
-
cache.destroy();
|
|
174
|
-
|
|
175
|
-
expect(() => {
|
|
176
|
-
cache.get("foo");
|
|
177
|
-
}).toThrow();
|
|
178
|
-
expect(() => {
|
|
179
|
-
cache.get("neverexisted");
|
|
180
|
-
}).toThrow();
|
|
181
|
-
expect(() => {
|
|
182
|
-
cache.put("foo", "bar");
|
|
183
|
-
}).toThrow();
|
|
184
|
-
|
|
185
|
-
expect($cacheFactory.get("test")).toBeUndefined();
|
|
186
|
-
expect($cacheFactory.info()).toEqual({});
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
describe("LRU cache", () => {
|
|
192
|
-
it("should create cache with defined capacity", () => {
|
|
193
|
-
const cache = $cacheFactory("cache1", { capacity: 5 });
|
|
194
|
-
expect(cache.info().size).toBe(0);
|
|
195
|
-
|
|
196
|
-
for (let i = 0; i < 5; i++) {
|
|
197
|
-
cache.put(`id${i}`, i);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
expect(cache.info().size).toBe(5);
|
|
201
|
-
|
|
202
|
-
cache.put("id5", 5);
|
|
203
|
-
expect(cache.info().size).toBe(5);
|
|
204
|
-
cache.put("id6", 6);
|
|
205
|
-
expect(cache.info().size).toBe(5);
|
|
206
|
-
});
|
|
207
|
-
|
|
208
|
-
describe("eviction", () => {
|
|
209
|
-
let cache;
|
|
210
|
-
|
|
211
|
-
beforeEach(() => {
|
|
212
|
-
cache = $cacheFactory("cache1", { capacity: 2 });
|
|
213
|
-
|
|
214
|
-
cache.put("id0", 0);
|
|
215
|
-
cache.put("id1", 1);
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
it("should kick out the first entry on put", () => {
|
|
219
|
-
cache.put("id2", 2);
|
|
220
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
221
|
-
expect(cache.get("id1")).toBe(1);
|
|
222
|
-
expect(cache.get("id2")).toBe(2);
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
it("should refresh an entry via get", () => {
|
|
226
|
-
cache.get("id0");
|
|
227
|
-
cache.put("id2", 2);
|
|
228
|
-
expect(cache.get("id0")).toBe(0);
|
|
229
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
230
|
-
expect(cache.get("id2")).toBe(2);
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
it("should refresh an entry via put", () => {
|
|
234
|
-
cache.put("id0", "00");
|
|
235
|
-
cache.put("id2", 2);
|
|
236
|
-
expect(cache.get("id0")).toBe("00");
|
|
237
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
238
|
-
expect(cache.get("id2")).toBe(2);
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
it("should not purge an entry if another one was removed", () => {
|
|
242
|
-
cache.remove("id1");
|
|
243
|
-
cache.put("id2", 2);
|
|
244
|
-
expect(cache.get("id0")).toBe(0);
|
|
245
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
246
|
-
expect(cache.get("id2")).toBe(2);
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
it("should purge the next entry if the stalest one was removed", () => {
|
|
250
|
-
cache.remove("id0");
|
|
251
|
-
cache.put("id2", 2);
|
|
252
|
-
cache.put("id3", 3);
|
|
253
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
254
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
255
|
-
expect(cache.get("id2")).toBe(2);
|
|
256
|
-
expect(cache.get("id3")).toBe(3);
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
it("should correctly recreate the linked list if all cache entries were removed", () => {
|
|
260
|
-
cache.remove("id0");
|
|
261
|
-
cache.remove("id1");
|
|
262
|
-
cache.put("id2", 2);
|
|
263
|
-
cache.put("id3", 3);
|
|
264
|
-
cache.put("id4", 4);
|
|
265
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
266
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
267
|
-
expect(cache.get("id2")).toBeUndefined();
|
|
268
|
-
expect(cache.get("id3")).toBe(3);
|
|
269
|
-
expect(cache.get("id4")).toBe(4);
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
it("should blow away the entire cache via removeAll and start evicting when full", () => {
|
|
273
|
-
cache.put("id0", 0);
|
|
274
|
-
cache.put("id1", 1);
|
|
275
|
-
cache.removeAll();
|
|
276
|
-
|
|
277
|
-
cache.put("id2", 2);
|
|
278
|
-
cache.put("id3", 3);
|
|
279
|
-
cache.put("id4", 4);
|
|
280
|
-
|
|
281
|
-
expect(cache.info().size).toBe(2);
|
|
282
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
283
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
284
|
-
expect(cache.get("id2")).toBeUndefined();
|
|
285
|
-
expect(cache.get("id3")).toBe(3);
|
|
286
|
-
expect(cache.get("id4")).toBe(4);
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
it("should correctly refresh and evict items if operations are chained", () => {
|
|
290
|
-
cache = $cacheFactory("cache2", { capacity: 3 });
|
|
291
|
-
|
|
292
|
-
cache.put("id0", 0); // 0
|
|
293
|
-
cache.put("id1", 1); // 1,0
|
|
294
|
-
cache.put("id2", 2); // 2,1,0
|
|
295
|
-
cache.get("id0"); // 0,2,1
|
|
296
|
-
cache.put("id3", 3); // 3,0,2
|
|
297
|
-
cache.put("id0", 9); // 0,3,2
|
|
298
|
-
cache.put("id4", 4); // 4,0,3
|
|
299
|
-
|
|
300
|
-
expect(cache.get("id3")).toBe(3);
|
|
301
|
-
expect(cache.get("id0")).toBe(9);
|
|
302
|
-
expect(cache.get("id4")).toBe(4);
|
|
303
|
-
|
|
304
|
-
cache.remove("id0"); // 4,3
|
|
305
|
-
cache.remove("id3"); // 4
|
|
306
|
-
cache.put("id5", 5); // 5,4
|
|
307
|
-
cache.put("id6", 6); // 6,5,4
|
|
308
|
-
cache.get("id4"); // 4,6,5
|
|
309
|
-
cache.put("id7", 7); // 7,4,6
|
|
310
|
-
|
|
311
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
312
|
-
expect(cache.get("id1")).toBeUndefined();
|
|
313
|
-
expect(cache.get("id2")).toBeUndefined();
|
|
314
|
-
expect(cache.get("id3")).toBeUndefined();
|
|
315
|
-
expect(cache.get("id4")).toBe(4);
|
|
316
|
-
expect(cache.get("id5")).toBeUndefined();
|
|
317
|
-
expect(cache.get("id6")).toBe(6);
|
|
318
|
-
expect(cache.get("id7")).toBe(7);
|
|
319
|
-
|
|
320
|
-
cache.removeAll();
|
|
321
|
-
cache.put("id0", 0); // 0
|
|
322
|
-
cache.put("id1", 1); // 1,0
|
|
323
|
-
cache.put("id2", 2); // 2,1,0
|
|
324
|
-
cache.put("id3", 3); // 3,2,1
|
|
325
|
-
|
|
326
|
-
expect(cache.info().size).toBe(3);
|
|
327
|
-
expect(cache.get("id0")).toBeUndefined();
|
|
328
|
-
expect(cache.get("id1")).toBe(1);
|
|
329
|
-
expect(cache.get("id2")).toBe(2);
|
|
330
|
-
expect(cache.get("id3")).toBe(3);
|
|
331
|
-
});
|
|
332
|
-
});
|
|
333
|
-
});
|
|
334
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { test, expect } from "@playwright/test";
|
|
2
|
-
|
|
3
|
-
const TEST_URL = "src/core/cache/cache-factory.html";
|
|
4
|
-
|
|
5
|
-
test("unit tests contain no errors", async ({ page }) => {
|
|
6
|
-
await page.goto(TEST_URL);
|
|
7
|
-
await page.content();
|
|
8
|
-
await expect(page.locator(".jasmine-overall-result")).toHaveText(
|
|
9
|
-
/0 failures/,
|
|
10
|
-
);
|
|
11
|
-
});
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { extend, forEach, isUndefined, minErr } from "../shared/utils";
|
|
2
|
-
|
|
3
|
-
export function CacheFactoryProvider() {
|
|
4
|
-
this.$get = function () {
|
|
5
|
-
const caches = {};
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @param {string} cacheId Name or id of the newly created cache.
|
|
9
|
-
* @param {object=} options Options object that specifies the cache behavior. Properties:
|
|
10
|
-
*
|
|
11
|
-
* - `{number=}` `capacity` — turns the cache into LRU cache.
|
|
12
|
-
*
|
|
13
|
-
* @returns {object} Newly created cache object with the following set of methods:
|
|
14
|
-
*
|
|
15
|
-
* - `{object}` `info()` — Returns id, size, and options of cache.
|
|
16
|
-
* - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns
|
|
17
|
-
* it.
|
|
18
|
-
* - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
|
|
19
|
-
* - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
|
|
20
|
-
* - `{void}` `removeAll()` — Removes all cached values.
|
|
21
|
-
* - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
|
|
22
|
-
*/
|
|
23
|
-
function cacheFactory(cacheId, options) {
|
|
24
|
-
if (cacheId in caches) {
|
|
25
|
-
throw minErr("$cacheFactory")(
|
|
26
|
-
"iid",
|
|
27
|
-
"CacheId '{0}' is already taken!",
|
|
28
|
-
cacheId,
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
let size = 0;
|
|
33
|
-
let stats = extend({}, options, { id: cacheId });
|
|
34
|
-
let data = Object.create(null);
|
|
35
|
-
const capacity = (options && options.capacity) || Number.MAX_VALUE;
|
|
36
|
-
let lruHash = Object.create(null);
|
|
37
|
-
let freshEnd = null;
|
|
38
|
-
let staleEnd = null;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* A cache object used to store and retrieve data, primarily used by
|
|
42
|
-
* {@link $templateRequest $templateRequest} and the {@link ng.directive:script script}
|
|
43
|
-
* directive to cache templates and other data.
|
|
44
|
-
*
|
|
45
|
-
* ```js
|
|
46
|
-
* angular.module('superCache')
|
|
47
|
-
* .factory('superCache', ['$cacheFactory', function($cacheFactory) {
|
|
48
|
-
* return $cacheFactory('super-cache');
|
|
49
|
-
* }]);
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* Example test:
|
|
53
|
-
*
|
|
54
|
-
* ```js
|
|
55
|
-
* it('should behave like a cache', inject(function(superCache) {
|
|
56
|
-
* superCache.put('key', 'value');
|
|
57
|
-
* superCache.put('another key', 'another value');
|
|
58
|
-
*
|
|
59
|
-
* expect(superCache.info()).toEqual({
|
|
60
|
-
* id: 'super-cache',
|
|
61
|
-
* size: 2
|
|
62
|
-
* });
|
|
63
|
-
*
|
|
64
|
-
* superCache.remove('another key');
|
|
65
|
-
* expect(superCache.get('another key')).toBeUndefined();
|
|
66
|
-
*
|
|
67
|
-
* superCache.removeAll();
|
|
68
|
-
* expect(superCache.info()).toEqual({
|
|
69
|
-
* id: 'super-cache',
|
|
70
|
-
* size: 0
|
|
71
|
-
* });
|
|
72
|
-
* }));
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
return (caches[cacheId] = {
|
|
76
|
-
/**
|
|
77
|
-
* Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
|
|
78
|
-
* retrieved later, and incrementing the size of the cache if the key was not already
|
|
79
|
-
* present in the cache. If behaving like an LRU cache, it will also remove stale
|
|
80
|
-
* entries from the set.
|
|
81
|
-
*
|
|
82
|
-
* It will not insert undefined values into the cache.
|
|
83
|
-
*
|
|
84
|
-
* @param {string} key the key under which the cached data is stored.
|
|
85
|
-
* @param {*} value the value to store alongside the key. If it is undefined, the key
|
|
86
|
-
* will not be stored.
|
|
87
|
-
* @returns {*} the value stored.
|
|
88
|
-
*/
|
|
89
|
-
put(key, value) {
|
|
90
|
-
if (isUndefined(value)) return;
|
|
91
|
-
if (capacity < Number.MAX_VALUE) {
|
|
92
|
-
const lruEntry = lruHash[key] || (lruHash[key] = { key });
|
|
93
|
-
|
|
94
|
-
refresh(lruEntry);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (!(key in data)) size++;
|
|
98
|
-
data[key] = value;
|
|
99
|
-
|
|
100
|
-
if (size > capacity) {
|
|
101
|
-
this.remove(staleEnd.key);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return value;
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.
|
|
109
|
-
*
|
|
110
|
-
* @param {string} key the key of the data to be retrieved
|
|
111
|
-
* @returns {*} the value stored.
|
|
112
|
-
*/
|
|
113
|
-
get(key) {
|
|
114
|
-
if (capacity < Number.MAX_VALUE) {
|
|
115
|
-
const lruEntry = lruHash[key];
|
|
116
|
-
|
|
117
|
-
if (!lruEntry) return;
|
|
118
|
-
|
|
119
|
-
refresh(lruEntry);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return data[key];
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Removes an entry from the {@link $cacheFactory.Cache Cache} object.
|
|
127
|
-
*
|
|
128
|
-
* @param {string} key the key of the entry to be removed
|
|
129
|
-
*/
|
|
130
|
-
remove(key) {
|
|
131
|
-
if (capacity < Number.MAX_VALUE) {
|
|
132
|
-
const lruEntry = lruHash[key];
|
|
133
|
-
|
|
134
|
-
if (!lruEntry) return;
|
|
135
|
-
|
|
136
|
-
if (lruEntry === freshEnd) freshEnd = lruEntry.p;
|
|
137
|
-
if (lruEntry === staleEnd) staleEnd = lruEntry.n;
|
|
138
|
-
link(lruEntry.n, lruEntry.p);
|
|
139
|
-
|
|
140
|
-
delete lruHash[key];
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (!(key in data)) return;
|
|
144
|
-
|
|
145
|
-
delete data[key];
|
|
146
|
-
size--;
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Clears the cache object of any entries.
|
|
151
|
-
*/
|
|
152
|
-
removeAll() {
|
|
153
|
-
data = Object.create(null);
|
|
154
|
-
size = 0;
|
|
155
|
-
lruHash = Object.create(null);
|
|
156
|
-
freshEnd = staleEnd = null;
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Destroys the {@link $cacheFactory.Cache Cache} object entirely,
|
|
161
|
-
* removing it from the {@link $cacheFactory $cacheFactory} set.
|
|
162
|
-
*/
|
|
163
|
-
destroy() {
|
|
164
|
-
data = null;
|
|
165
|
-
stats = null;
|
|
166
|
-
lruHash = null;
|
|
167
|
-
delete caches[cacheId];
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.
|
|
172
|
-
*
|
|
173
|
-
* @returns {object} an object with the following properties:
|
|
174
|
-
* <ul>
|
|
175
|
-
* <li>**id**: the id of the cache instance</li>
|
|
176
|
-
* <li>**size**: the number of entries kept in the cache instance</li>
|
|
177
|
-
* <li>**...**: any additional properties from the options object when creating the
|
|
178
|
-
* cache.</li>
|
|
179
|
-
* </ul>
|
|
180
|
-
*/
|
|
181
|
-
info() {
|
|
182
|
-
return extend({}, stats, { size });
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* makes the `entry` the freshEnd of the LRU linked list
|
|
188
|
-
*/
|
|
189
|
-
function refresh(entry) {
|
|
190
|
-
if (entry !== freshEnd) {
|
|
191
|
-
if (!staleEnd) {
|
|
192
|
-
staleEnd = entry;
|
|
193
|
-
} else if (staleEnd === entry) {
|
|
194
|
-
staleEnd = entry.n;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
link(entry.n, entry.p);
|
|
198
|
-
link(entry, freshEnd);
|
|
199
|
-
freshEnd = entry;
|
|
200
|
-
freshEnd.n = null;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* bidirectionally links two entries of the LRU linked list
|
|
206
|
-
*/
|
|
207
|
-
function link(nextEntry, prevEntry) {
|
|
208
|
-
if (nextEntry !== prevEntry) {
|
|
209
|
-
if (nextEntry) nextEntry.p = prevEntry; // p stands for previous, 'prev' didn't minify
|
|
210
|
-
if (prevEntry) prevEntry.n = nextEntry; // n stands for next, 'next' didn't minify
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Get information about all the caches that have been created
|
|
217
|
-
*
|
|
218
|
-
* @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`
|
|
219
|
-
*/
|
|
220
|
-
cacheFactory.info = function () {
|
|
221
|
-
const info = {};
|
|
222
|
-
forEach(caches, (cache, cacheId) => {
|
|
223
|
-
info[cacheId] = cache.info();
|
|
224
|
-
});
|
|
225
|
-
return info;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Get access to a cache object by the `cacheId` used when it was created.
|
|
230
|
-
*
|
|
231
|
-
* @param {string} cacheId Name or id of a cache to access.
|
|
232
|
-
* @returns {object} Cache object identified by the cacheId or undefined if no such cache.
|
|
233
|
-
*/
|
|
234
|
-
cacheFactory.get = function (cacheId) {
|
|
235
|
-
return caches[cacheId];
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
return cacheFactory;
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @name $templateCache
|
|
244
|
-
*
|
|
245
|
-
* @description
|
|
246
|
-
* `$templateCache` is a {@link $cacheFactory.Cache Cache object} created by the
|
|
247
|
-
* {@link ng.$cacheFactory $cacheFactory}.
|
|
248
|
-
*
|
|
249
|
-
* The first time a template is used, it is loaded in the template cache for quick retrieval. You
|
|
250
|
-
* can load templates directly into the cache in a `script` tag, by using {@link $templateRequest},
|
|
251
|
-
* or by consuming the `$templateCache` service directly.
|
|
252
|
-
*
|
|
253
|
-
* Adding via the `script` tag:
|
|
254
|
-
*
|
|
255
|
-
* ```html
|
|
256
|
-
* <script type="text/ng-template" id="templateId.html">
|
|
257
|
-
* <p>This is the content of the template</p>
|
|
258
|
-
* </script>
|
|
259
|
-
* ```
|
|
260
|
-
*
|
|
261
|
-
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
|
|
262
|
-
* the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (e.g.
|
|
263
|
-
* element with {@link ngApp} attribute), otherwise the template will be ignored.
|
|
264
|
-
*
|
|
265
|
-
* Adding via the `$templateCache` service:
|
|
266
|
-
*
|
|
267
|
-
* ```js
|
|
268
|
-
* let myApp = angular.module('myApp', []);
|
|
269
|
-
* myApp.run(function($templateCache) {
|
|
270
|
-
* $templateCache.put('templateId.html', 'This is the content of the template');
|
|
271
|
-
* });
|
|
272
|
-
* ```
|
|
273
|
-
*
|
|
274
|
-
* To retrieve the template later, simply use it in your component:
|
|
275
|
-
* ```js
|
|
276
|
-
* myApp.component('myComponent', {
|
|
277
|
-
* templateUrl: 'templateId.html'
|
|
278
|
-
* });
|
|
279
|
-
* ```
|
|
280
|
-
*
|
|
281
|
-
* or get it via the `$templateCache` service:
|
|
282
|
-
* ```js
|
|
283
|
-
* $templateCache.get('templateId.html')
|
|
284
|
-
* ```
|
|
285
|
-
*
|
|
286
|
-
*/
|
|
287
|
-
export function TemplateCacheProvider() {
|
|
288
|
-
this.$get = ["$cacheFactory", ($cacheFactory) => $cacheFactory("templates")];
|
|
289
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/\*\*
|
|
2
|
-
|
|
3
|
-
- @ngdoc service
|
|
4
|
-
- @name $cacheFactory
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
- @description
|
|
8
|
-
- Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
|
|
9
|
-
- them.
|
|
10
|
-
-
|
|
11
|
-
- ```js
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
- let cache = $cacheFactory('cacheId');
|
|
17
|
-
- expect($cacheFactory.get('cacheId')).toBe(cache);
|
|
18
|
-
- expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
|
|
19
|
-
-
|
|
20
|
-
- cache.put("key", "value");
|
|
21
|
-
- cache.put("another key", "another value");
|
|
22
|
-
-
|
|
23
|
-
- // We've specified no options on creation
|
|
24
|
-
- expect(cache.info()).toEqual({id: 'cacheId', size: 2});
|
|
25
|
-
-
|
|
26
|
-
- ```
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- @example
|
|
33
|
-
<example module="cacheExampleApp" name="cache-factory">
|
|
34
|
-
<file name="index.html">
|
|
35
|
-
<div ng-controller="CacheController">
|
|
36
|
-
<input ng-model="newCacheKey" placeholder="Key">
|
|
37
|
-
<input ng-model="newCacheValue" placeholder="Value">
|
|
38
|
-
<button ng-click="put(newCacheKey, newCacheValue)">Cache</button>
|
|
39
|
-
|
|
40
|
-
<p ng-if="keys.length">Cached Values</p>
|
|
41
|
-
<div ng-repeat="key in keys">
|
|
42
|
-
<span ng-bind="key"></span>
|
|
43
|
-
<span>: </span>
|
|
44
|
-
<b ng-bind="cache.get(key)"></b>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<p>Cache Info</p>
|
|
48
|
-
<div ng-repeat="(key, value) in cache.info()">
|
|
49
|
-
<span ng-bind="key"></span>
|
|
50
|
-
<span>: </span>
|
|
51
|
-
<b ng-bind="value"></b>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</file>
|
|
55
|
-
<file name="script.js">
|
|
56
|
-
angular.module('cacheExampleApp', []).
|
|
57
|
-
controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
|
|
58
|
-
$scope.keys = [];
|
|
59
|
-
$scope.cache = $cacheFactory('cacheId');
|
|
60
|
-
$scope.put = function(key, value) {
|
|
61
|
-
if (angular.isUndefined($scope.cache.get(key))) {
|
|
62
|
-
$scope.keys.push(key);
|
|
63
|
-
}
|
|
64
|
-
$scope.cache.put(key, angular.isUndefined(value) ? null : value);
|
|
65
|
-
};
|
|
66
|
-
}]);
|
|
67
|
-
</file>
|
|
68
|
-
<file name="style.css">
|
|
69
|
-
p {
|
|
70
|
-
margin: 10px 0 3px;
|
|
71
|
-
}
|
|
72
|
-
</file>
|
|
73
|
-
|
|
74
|
-
</example>
|
|
75
|
-
*/
|