@angular/core 22.0.0-next.7 → 22.0.0-next.9
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/fesm2022/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +967 -872
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_pending_tasks-chunk.mjs +10 -8
- package/fesm2022/_pending_tasks-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +25 -11
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +350 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +4 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2 -12
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/can-match-snapshot-required.cjs +1 -1
- package/schematics/bundles/change-detection-eager.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/http-xhr-backend.cjs +1 -1
- package/schematics/bundles/imports-CKV-ITqD.cjs +1 -1
- package/schematics/bundles/incremental-hydration.cjs +91 -0
- package/schematics/bundles/index-DADA7AvC.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/json-file-Drblb4E1.cjs +1916 -0
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-B9LlDDUg.cjs +1 -1
- package/schematics/bundles/ng_component_template-DPAF1aEA.cjs +1 -1
- package/schematics/bundles/ng_decorators-IVztR9rk.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +14 -6
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/strict-safe-navigation-narrow.cjs +32 -0
- package/schematics/bundles/strict-templates-default.cjs +63 -0
- package/schematics/migrations.json +13 -3
- package/types/_api-chunk.d.ts +9 -3
- package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
- package/types/_debug_node-chunk.d.ts +132 -212
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +876 -749
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +2 -2
- package/schematics/bundles/strict-templates.cjs +0 -55
package/types/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.9
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { SIGNAL, ReactiveNodeKind } from './_formatter-chunk.js';
|
|
8
8
|
import { Signal, WritableSignal, OutputRef, Type as Type$1, ModuleWithProviders, EnvironmentProviders, Provider, TypeProvider, ValueProvider, ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, ProviderToken, Injector, ValueSansProvider, ExistingSansProvider, StaticClassSansProvider, ConstructorSansProvider, FactorySansProvider, ClassSansProvider, InjectionToken, InjectOptions, InternalInjectFlags, StaticProvider, ValueEqualityFn, EventCallback, isSignal, enableProfiling as enableProfiling$1, AbstractType } from './_chrome_dev_tools_performance-chunk.js';
|
|
9
9
|
export { CreateSignalOptions, DestroyRef, DestroyableInjector, OutputRefSubscription, isWritableSignal, signal, InternalEnvironmentProviders as ɵInternalEnvironmentProviders, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, Writable as ɵWritable, isEnvironmentProviders as ɵisEnvironmentProviders, ɵunwrapWritableSignal } from './_chrome_dev_tools_performance-chunk.js';
|
|
10
|
-
import { InputSignalNode, TypeDecorator, SchemaMetadata, InputTransformFunction, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, ComponentDef, DirectiveDef, PipeDef,
|
|
11
|
-
export { APP_BOOTSTRAP_LISTENER, AnimationCallbackEvent, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, MAX_ANIMATION_TIMEOUT,
|
|
10
|
+
import { InputSignalNode, TypeDecorator, ɵɵInjectableDeclaration as __InjectableDeclaration, SchemaMetadata, InputTransformFunction, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, ComponentDef, DirectiveDef, PipeDef, EnvironmentInjector, NgModuleRef as NgModuleRef$1, NgModuleFactory as NgModuleFactory$1, InternalNgModuleRef, ɵɵFactoryDeclaration as __FactoryDeclaration, AfterRenderRef, EffectCleanupRegisterFn, ApplicationRef, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, NgZone, ElementRef, EmbeddedViewRef, ViewRef as ViewRef$1, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, PlatformRef, DeferBlockConfig, DeferBlockDependencyInterceptor, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, LView, RNode, Component, TrustedHTML, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, ChangeDetectorRef, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, AnimationClassBindingFn, AnimationFunction, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, DehydratedDeferBlock, CompilerOptions, PipeType, DirectiveType, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript } from './_debug_node-chunk.js';
|
|
11
|
+
export { APP_BOOTSTRAP_LISTENER, AnimationCallbackEvent, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, MAX_ANIMATION_TIMEOUT, NO_ERRORS_SCHEMA, NgModuleDecorator, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, ControlDirectiveHost as ɵControlDirectiveHost, CssSelectorList as ɵCssSelectorList, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, NotificationSource as ɵNotificationSource, PROVIDED_ZONELESS as ɵPROVIDED_ZONELESS, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isInjectable as ɵisInjectable, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './_debug_node-chunk.js';
|
|
12
12
|
import { ResourceOptions, ResourceRef, WritableResource, ResourceStatus, ResourceSnapshot, Resource, ResourceParamsContext, ResourceStreamingLoader, ResourceStreamItem, DebounceTimer, DebouncedOptions } from './_api-chunk.js';
|
|
13
13
|
export { BaseResourceOptions, OutputEmitterRef, OutputOptions, PromiseResourceOptions, ResourceDependencyError, ResourceLoader, ResourceLoaderParams, ResourceParamsStatus, StreamingResourceOptions, output, getOutputDestroyRef as ɵgetOutputDestroyRef } from './_api-chunk.js';
|
|
14
14
|
import './_event_dispatcher-chunk.js';
|
|
@@ -960,6 +960,88 @@ interface Injectable {
|
|
|
960
960
|
*/
|
|
961
961
|
declare const Injectable: InjectableDecorator;
|
|
962
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Type of the Service decorator / constructor function.
|
|
965
|
+
*
|
|
966
|
+
* @publicApi
|
|
967
|
+
*/
|
|
968
|
+
interface ServiceDecorator {
|
|
969
|
+
/**
|
|
970
|
+
* Decorator that marks a class as a service and makes it automatically available
|
|
971
|
+
* in the dependency injection system.
|
|
972
|
+
*
|
|
973
|
+
* @see [Introduction to Services and DI](guide/di)
|
|
974
|
+
* @see [Creating and using services](guide/di/creating-and-using-services)
|
|
975
|
+
* @see [Defining dependency providers](guide/di/defining-dependency-providers)
|
|
976
|
+
*
|
|
977
|
+
* @developerPreview 22.0
|
|
978
|
+
*/
|
|
979
|
+
(): TypeDecorator;
|
|
980
|
+
/**
|
|
981
|
+
* When `autoProvided` is set to `false`, the service won't be exposed to the dependency
|
|
982
|
+
* injection system automatically. It is up to the user to expose it in a providers list.
|
|
983
|
+
*
|
|
984
|
+
* @developerPreview 22.0
|
|
985
|
+
*/
|
|
986
|
+
(options?: {
|
|
987
|
+
autoProvided: false;
|
|
988
|
+
}): TypeDecorator;
|
|
989
|
+
/**
|
|
990
|
+
* Creates a service that is automatically provided. Passing an optional
|
|
991
|
+
* `factory` allows for the runtime value to be replaced.
|
|
992
|
+
*
|
|
993
|
+
* @developerPreview 22.0
|
|
994
|
+
*/
|
|
995
|
+
(options?: {
|
|
996
|
+
autoProvided?: true;
|
|
997
|
+
factory?: () => unknown;
|
|
998
|
+
}): TypeDecorator;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Type of the Service metadata.
|
|
1002
|
+
*
|
|
1003
|
+
* @publicApi
|
|
1004
|
+
* @developerPreview 22.0
|
|
1005
|
+
*/
|
|
1006
|
+
interface Service {
|
|
1007
|
+
/**
|
|
1008
|
+
* Determines whether the service should be provided automatically or by the user.
|
|
1009
|
+
* Defaults to `true`.
|
|
1010
|
+
*/
|
|
1011
|
+
autoProvided?: boolean;
|
|
1012
|
+
/**
|
|
1013
|
+
* A function to invoke to create a value for this service.
|
|
1014
|
+
*/
|
|
1015
|
+
factory?: () => unknown;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Service decorator and metadata.
|
|
1019
|
+
*
|
|
1020
|
+
* @Annotation
|
|
1021
|
+
* @publicApi
|
|
1022
|
+
* @developerPreview 22.0
|
|
1023
|
+
*/
|
|
1024
|
+
declare const Service: ServiceDecorator;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Construct a definition which defines how a service will be constructed by the DI system.
|
|
1028
|
+
*
|
|
1029
|
+
* This should be assigned to a static `ɵprov` field on a type.
|
|
1030
|
+
*
|
|
1031
|
+
* Options:
|
|
1032
|
+
* * `autoProvided` determines whether the service should be provided automatically or whether
|
|
1033
|
+
* the user should be responsible for providing it.
|
|
1034
|
+
* * `factory` gives the zero argument function which will create an instance of the injectable.
|
|
1035
|
+
*
|
|
1036
|
+
* @codeGenApi
|
|
1037
|
+
* @publicApi
|
|
1038
|
+
*/
|
|
1039
|
+
declare function ɵɵdefineService<T>(opts: {
|
|
1040
|
+
token: unknown;
|
|
1041
|
+
autoProvided?: boolean;
|
|
1042
|
+
factory: (parent?: Type$1<unknown>) => T;
|
|
1043
|
+
}): __InjectableDeclaration<T>;
|
|
1044
|
+
|
|
963
1045
|
/**
|
|
964
1046
|
* A multi-provider token for initialization functions that will run upon construction of an
|
|
965
1047
|
* environment injector.
|
|
@@ -1573,143 +1655,380 @@ declare function setClassMetadata(type: any, decorators: any[] | null, ctorParam
|
|
|
1573
1655
|
} | null): void;
|
|
1574
1656
|
|
|
1575
1657
|
/**
|
|
1576
|
-
*
|
|
1658
|
+
* Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
|
|
1577
1659
|
*
|
|
1578
|
-
* @
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
* A strategy for tracking changes over time to an iterable. Used by {@link /api/common/NgForOf NgForOf} to
|
|
1583
|
-
* respond to changes in an iterable by effecting equivalent changes in the DOM.
|
|
1660
|
+
* @param ngModule NgModule class.
|
|
1661
|
+
* @param parentInjector Optional injector instance to use as a parent for the module injector. If
|
|
1662
|
+
* not provided, `NullInjector` will be used instead.
|
|
1663
|
+
* @returns NgModuleRef that represents an NgModule instance.
|
|
1584
1664
|
*
|
|
1585
1665
|
* @publicApi
|
|
1586
1666
|
*/
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1667
|
+
declare function createNgModule<T>(ngModule: Type$1<T>, parentInjector?: Injector): NgModuleRef$1<T>;
|
|
1668
|
+
declare class NgModuleRef<T> extends NgModuleRef$1<T> implements InternalNgModuleRef<T> {
|
|
1669
|
+
private readonly ngModuleType;
|
|
1670
|
+
_parent: Injector | null;
|
|
1671
|
+
_bootstrapComponents: Type$1<any>[];
|
|
1672
|
+
private readonly _r3Injector;
|
|
1673
|
+
instance: T;
|
|
1674
|
+
destroyCbs: (() => void)[] | null;
|
|
1675
|
+
constructor(ngModuleType: Type$1<T>, _parent: Injector | null, additionalProviders: Array<Provider | EnvironmentProviders>, runInjectorInitializers?: boolean);
|
|
1676
|
+
resolveInjectorInitializers(): void;
|
|
1677
|
+
get injector(): EnvironmentInjector;
|
|
1678
|
+
destroy(): void;
|
|
1679
|
+
onDestroy(callback: () => void): void;
|
|
1680
|
+
}
|
|
1681
|
+
declare class NgModuleFactory<T> extends NgModuleFactory$1<T> {
|
|
1682
|
+
moduleType: Type$1<T>;
|
|
1683
|
+
constructor(moduleType: Type$1<T>);
|
|
1684
|
+
create(parentInjector: Injector | null): NgModuleRef$1<T>;
|
|
1596
1685
|
}
|
|
1597
1686
|
/**
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1687
|
+
* Create a new environment injector.
|
|
1688
|
+
*
|
|
1689
|
+
* @param providers An array of providers.
|
|
1690
|
+
* @param parent A parent environment injector.
|
|
1691
|
+
* @param debugName An optional name for this injector instance, which will be used in error
|
|
1692
|
+
* messages.
|
|
1600
1693
|
*
|
|
1601
1694
|
* @publicApi
|
|
1602
1695
|
*/
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
* Iterate over all changes. `IterableChangeRecord` will contain information about changes
|
|
1606
|
-
* to each item.
|
|
1607
|
-
*/
|
|
1608
|
-
forEachItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1609
|
-
/**
|
|
1610
|
-
* Iterate over a set of operations which when applied to the original `Iterable` will produce the
|
|
1611
|
-
* new `Iterable`.
|
|
1612
|
-
*
|
|
1613
|
-
* NOTE: These are not necessarily the actual operations which were applied to the original
|
|
1614
|
-
* `Iterable`, rather these are a set of computed operations which may not be the same as the
|
|
1615
|
-
* ones applied.
|
|
1616
|
-
*
|
|
1617
|
-
* @param record A change which needs to be applied
|
|
1618
|
-
* @param previousIndex The `IterableChangeRecord#previousIndex` of the `record` refers to the
|
|
1619
|
-
* original `Iterable` location, where as `previousIndex` refers to the transient location
|
|
1620
|
-
* of the item, after applying the operations up to this point.
|
|
1621
|
-
* @param currentIndex The `IterableChangeRecord#currentIndex` of the `record` refers to the
|
|
1622
|
-
* original `Iterable` location, where as `currentIndex` refers to the transient location
|
|
1623
|
-
* of the item, after applying the operations up to this point.
|
|
1624
|
-
*/
|
|
1625
|
-
forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void): void;
|
|
1626
|
-
/**
|
|
1627
|
-
* Iterate over changes in the order of original `Iterable` showing where the original items
|
|
1628
|
-
* have moved.
|
|
1629
|
-
*/
|
|
1630
|
-
forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1631
|
-
/** Iterate over all added items. */
|
|
1632
|
-
forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1633
|
-
/** Iterate over all moved items. */
|
|
1634
|
-
forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1635
|
-
/** Iterate over all removed items. */
|
|
1636
|
-
forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1637
|
-
/**
|
|
1638
|
-
* Iterate over all items which had their identity (as computed by the `TrackByFunction`)
|
|
1639
|
-
* changed.
|
|
1640
|
-
*/
|
|
1641
|
-
forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1642
|
-
}
|
|
1696
|
+
declare function createEnvironmentInjector(providers: Array<Provider | EnvironmentProviders>, parent: EnvironmentInjector, debugName?: string | null): EnvironmentInjector;
|
|
1697
|
+
|
|
1643
1698
|
/**
|
|
1644
|
-
*
|
|
1699
|
+
* Convince closure compiler that the wrapped function has no side-effects.
|
|
1645
1700
|
*
|
|
1646
|
-
*
|
|
1701
|
+
* Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
|
|
1702
|
+
* allow us to execute a function but have closure compiler mark the call as no-side-effects.
|
|
1703
|
+
* It is important that the return value for the `noSideEffects` function be assigned
|
|
1704
|
+
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
|
1705
|
+
* compiler.
|
|
1647
1706
|
*/
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
readonly currentIndex: number | null;
|
|
1651
|
-
/** Previous index of the item in `Iterable` or null if added. */
|
|
1652
|
-
readonly previousIndex: number | null;
|
|
1653
|
-
/** The item. */
|
|
1654
|
-
readonly item: V;
|
|
1655
|
-
/** Track by identity as computed by the `TrackByFunction`. */
|
|
1656
|
-
readonly trackById: any;
|
|
1657
|
-
}
|
|
1707
|
+
declare function noSideEffects<T>(fn: () => T): T;
|
|
1708
|
+
|
|
1658
1709
|
/**
|
|
1659
|
-
* A
|
|
1660
|
-
*
|
|
1710
|
+
* A DI token that you can use to provide
|
|
1711
|
+
* one or more initialization functions.
|
|
1661
1712
|
*
|
|
1662
|
-
*
|
|
1663
|
-
*
|
|
1713
|
+
* The provided functions are injected at application startup and executed during
|
|
1714
|
+
* app initialization. If any of these functions returns a Promise or an Observable, initialization
|
|
1715
|
+
* does not complete until the Promise is resolved or the Observable is completed.
|
|
1664
1716
|
*
|
|
1717
|
+
* You can, for example, create a factory function that loads language data
|
|
1718
|
+
* or an external configuration, and provide that function to the `APP_INITIALIZER` token.
|
|
1719
|
+
* The function is executed during the application bootstrap process,
|
|
1720
|
+
* and the needed data is available on startup.
|
|
1665
1721
|
*
|
|
1666
|
-
*
|
|
1667
|
-
* with the items affected by the change. This behavior is important to:
|
|
1722
|
+
* Note that the provided initializer is run in the injection context.
|
|
1668
1723
|
*
|
|
1669
|
-
*
|
|
1670
|
-
* iterable is modified
|
|
1671
|
-
* - enable animation of item addition, removal, and iterable reordering
|
|
1672
|
-
* - preserve the value of the `<select>` element when nested `<option>` elements are dynamically
|
|
1673
|
-
* populated using `NgForOf` and the bound iterable is updated
|
|
1724
|
+
* @deprecated from v19.0.0, use provideAppInitializer instead
|
|
1674
1725
|
*
|
|
1675
|
-
*
|
|
1676
|
-
*
|
|
1726
|
+
* @see {@link ApplicationInitStatus}
|
|
1727
|
+
* @see {@link provideAppInitializer}
|
|
1728
|
+
*
|
|
1729
|
+
* @usageNotes
|
|
1677
1730
|
*
|
|
1731
|
+
* The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
|
|
1732
|
+
* and a function returning a promise.
|
|
1733
|
+
* ### Example with NgModule-based application
|
|
1678
1734
|
* ```ts
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
*
|
|
1683
|
-
*
|
|
1735
|
+
* function initializeApp(): Promise<any> {
|
|
1736
|
+
* const http = inject(HttpClient);
|
|
1737
|
+
* return firstValueFrom(
|
|
1738
|
+
* http
|
|
1739
|
+
* .get("https://someUrl.com/api/user")
|
|
1740
|
+
* .pipe(tap(user => { ... }))
|
|
1741
|
+
* );
|
|
1742
|
+
* }
|
|
1743
|
+
*
|
|
1744
|
+
* @NgModule({
|
|
1745
|
+
* imports: [BrowserModule],
|
|
1746
|
+
* declarations: [AppComponent],
|
|
1747
|
+
* bootstrap: [AppComponent],
|
|
1748
|
+
* providers: [{
|
|
1749
|
+
* provide: APP_INITIALIZER,
|
|
1750
|
+
* useValue: initializeApp,
|
|
1751
|
+
* multi: true,
|
|
1752
|
+
* }]
|
|
1753
|
+
* })
|
|
1754
|
+
* export class AppModule {}
|
|
1684
1755
|
* ```
|
|
1685
|
-
*
|
|
1756
|
+
*
|
|
1757
|
+
* ### Example with standalone application
|
|
1686
1758
|
* ```ts
|
|
1687
|
-
* function
|
|
1688
|
-
*
|
|
1759
|
+
* function initializeApp() {
|
|
1760
|
+
* const http = inject(HttpClient);
|
|
1761
|
+
* return firstValueFrom(
|
|
1762
|
+
* http
|
|
1763
|
+
* .get("https://someUrl.com/api/user")
|
|
1764
|
+
* .pipe(tap(user => { ... }))
|
|
1765
|
+
* );
|
|
1689
1766
|
* }
|
|
1690
|
-
* ```
|
|
1691
1767
|
*
|
|
1692
|
-
*
|
|
1768
|
+
* bootstrapApplication(App, {
|
|
1769
|
+
* providers: [
|
|
1770
|
+
* provideHttpClient(),
|
|
1771
|
+
* {
|
|
1772
|
+
* provide: APP_INITIALIZER,
|
|
1773
|
+
* useValue: initializeApp,
|
|
1774
|
+
* multi: true,
|
|
1775
|
+
* },
|
|
1776
|
+
* ],
|
|
1777
|
+
* });
|
|
1778
|
+
|
|
1779
|
+
* ```
|
|
1693
1780
|
*
|
|
1694
|
-
* - be [idempotent](https://en.wikipedia.org/wiki/Idempotence) (be without side effects, and always
|
|
1695
|
-
* return the same value for a given input)
|
|
1696
|
-
* - return unique value for all unique inputs
|
|
1697
|
-
* - be fast
|
|
1698
1781
|
*
|
|
1699
|
-
*
|
|
1700
|
-
*
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
/**
|
|
1704
|
-
* @param index The index of the item within the iterable.
|
|
1705
|
-
* @param item The item in the iterable.
|
|
1706
|
-
*/
|
|
1707
|
-
<U extends T>(index: number, item: T & U): any;
|
|
1708
|
-
}
|
|
1709
|
-
/**
|
|
1710
|
-
* Provides a factory for {@link IterableDiffer}.
|
|
1782
|
+
* It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
|
|
1783
|
+
* returning an observable, see an example below. Note: the `HttpClient` in this example is used for
|
|
1784
|
+
* demo purposes to illustrate how the factory function can work with other providers available
|
|
1785
|
+
* through DI.
|
|
1711
1786
|
*
|
|
1712
|
-
*
|
|
1787
|
+
* ### Example with NgModule-based application
|
|
1788
|
+
* ```ts
|
|
1789
|
+
* function initializeApp() {
|
|
1790
|
+
* const http = inject(HttpClient);
|
|
1791
|
+
* return firstValueFrom(
|
|
1792
|
+
* http
|
|
1793
|
+
* .get("https://someUrl.com/api/user")
|
|
1794
|
+
* .pipe(tap(user => { ... }))
|
|
1795
|
+
* );
|
|
1796
|
+
* }
|
|
1797
|
+
*
|
|
1798
|
+
* @NgModule({
|
|
1799
|
+
* imports: [BrowserModule, HttpClientModule],
|
|
1800
|
+
* declarations: [AppComponent],
|
|
1801
|
+
* bootstrap: [AppComponent],
|
|
1802
|
+
* providers: [{
|
|
1803
|
+
* provide: APP_INITIALIZER,
|
|
1804
|
+
* useValue: initializeApp,
|
|
1805
|
+
* multi: true,
|
|
1806
|
+
* }]
|
|
1807
|
+
* })
|
|
1808
|
+
* export class AppModule {}
|
|
1809
|
+
* ```
|
|
1810
|
+
*
|
|
1811
|
+
* ### Example with standalone application
|
|
1812
|
+
* ```ts
|
|
1813
|
+
* function initializeApp() {
|
|
1814
|
+
* const http = inject(HttpClient);
|
|
1815
|
+
* return firstValueFrom(
|
|
1816
|
+
* http
|
|
1817
|
+
* .get("https://someUrl.com/api/user")
|
|
1818
|
+
* .pipe(tap(user => { ... }))
|
|
1819
|
+
* );
|
|
1820
|
+
* }
|
|
1821
|
+
*
|
|
1822
|
+
* bootstrapApplication(App, {
|
|
1823
|
+
* providers: [
|
|
1824
|
+
* provideHttpClient(),
|
|
1825
|
+
* {
|
|
1826
|
+
* provide: APP_INITIALIZER,
|
|
1827
|
+
* useValue: initializeApp,
|
|
1828
|
+
* multi: true,
|
|
1829
|
+
* },
|
|
1830
|
+
* ],
|
|
1831
|
+
* });
|
|
1832
|
+
* ```
|
|
1833
|
+
*
|
|
1834
|
+
* @publicApi
|
|
1835
|
+
*/
|
|
1836
|
+
declare const APP_INITIALIZER: InjectionToken<readonly (() => Observable<unknown> | Promise<unknown> | void)[]>;
|
|
1837
|
+
/**
|
|
1838
|
+
* @description
|
|
1839
|
+
* The provided function is injected at application startup and executed during
|
|
1840
|
+
* app initialization. If the function returns a Promise or an Observable, initialization
|
|
1841
|
+
* does not complete until the Promise is resolved or the Observable is completed.
|
|
1842
|
+
*
|
|
1843
|
+
* You can, for example, create a function that loads language data
|
|
1844
|
+
* or an external configuration, and provide that function using `provideAppInitializer()`.
|
|
1845
|
+
* The function is executed during the application bootstrap process,
|
|
1846
|
+
* and the needed data is available on startup.
|
|
1847
|
+
*
|
|
1848
|
+
* Note that the provided initializer is run in the injection context.
|
|
1849
|
+
*
|
|
1850
|
+
* Previously, this was achieved using the `APP_INITIALIZER` token which is now deprecated.
|
|
1851
|
+
*
|
|
1852
|
+
* @see {@link APP_INITIALIZER}
|
|
1853
|
+
*
|
|
1854
|
+
* @usageNotes
|
|
1855
|
+
* The following example illustrates how to configure an initialization function using
|
|
1856
|
+
* `provideAppInitializer()`
|
|
1857
|
+
* ```ts
|
|
1858
|
+
* bootstrapApplication(App, {
|
|
1859
|
+
* providers: [
|
|
1860
|
+
* provideAppInitializer(() => {
|
|
1861
|
+
* const http = inject(HttpClient);
|
|
1862
|
+
* return firstValueFrom(
|
|
1863
|
+
* http
|
|
1864
|
+
* .get("https://someUrl.com/api/user")
|
|
1865
|
+
* .pipe(tap(user => { ... }))
|
|
1866
|
+
* );
|
|
1867
|
+
* }),
|
|
1868
|
+
* provideHttpClient(),
|
|
1869
|
+
* ],
|
|
1870
|
+
* });
|
|
1871
|
+
* ```
|
|
1872
|
+
*
|
|
1873
|
+
* @publicApi
|
|
1874
|
+
*/
|
|
1875
|
+
declare function provideAppInitializer(initializerFn: () => Observable<unknown> | Promise<unknown> | void): EnvironmentProviders;
|
|
1876
|
+
/**
|
|
1877
|
+
* A class that reflects the state of running {@link APP_INITIALIZER} functions.
|
|
1878
|
+
*
|
|
1879
|
+
* @publicApi
|
|
1880
|
+
*/
|
|
1881
|
+
declare class ApplicationInitStatus {
|
|
1882
|
+
private resolve;
|
|
1883
|
+
private reject;
|
|
1884
|
+
private initialized;
|
|
1885
|
+
readonly done = false;
|
|
1886
|
+
readonly donePromise: Promise<any>;
|
|
1887
|
+
private readonly appInits;
|
|
1888
|
+
private readonly injector;
|
|
1889
|
+
constructor();
|
|
1890
|
+
static ɵfac: __FactoryDeclaration<ApplicationInitStatus, never>;
|
|
1891
|
+
static ɵprov: __InjectableDeclaration<ApplicationInitStatus>;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* A type describing supported iterable types.
|
|
1896
|
+
*
|
|
1897
|
+
* @publicApi
|
|
1898
|
+
*/
|
|
1899
|
+
type NgIterable<T> = Array<T> | Iterable<T>;
|
|
1900
|
+
/**
|
|
1901
|
+
* A strategy for tracking changes over time to an iterable. Used by {@link /api/common/NgForOf NgForOf} to
|
|
1902
|
+
* respond to changes in an iterable by effecting equivalent changes in the DOM.
|
|
1903
|
+
*
|
|
1904
|
+
* @publicApi
|
|
1905
|
+
*/
|
|
1906
|
+
interface IterableDiffer<V> {
|
|
1907
|
+
/**
|
|
1908
|
+
* Compute a difference between the previous state and the new `object` state.
|
|
1909
|
+
*
|
|
1910
|
+
* @param object containing the new value.
|
|
1911
|
+
* @returns an object describing the difference. The return value is only valid until the next
|
|
1912
|
+
* `diff()` invocation.
|
|
1913
|
+
*/
|
|
1914
|
+
diff(object: NgIterable<V> | undefined | null): IterableChanges<V> | null;
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* An object describing the changes in the `Iterable` collection since last time
|
|
1918
|
+
* `IterableDiffer#diff()` was invoked.
|
|
1919
|
+
*
|
|
1920
|
+
* @publicApi
|
|
1921
|
+
*/
|
|
1922
|
+
interface IterableChanges<V> {
|
|
1923
|
+
/**
|
|
1924
|
+
* Iterate over all changes. `IterableChangeRecord` will contain information about changes
|
|
1925
|
+
* to each item.
|
|
1926
|
+
*/
|
|
1927
|
+
forEachItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1928
|
+
/**
|
|
1929
|
+
* Iterate over a set of operations which when applied to the original `Iterable` will produce the
|
|
1930
|
+
* new `Iterable`.
|
|
1931
|
+
*
|
|
1932
|
+
* NOTE: These are not necessarily the actual operations which were applied to the original
|
|
1933
|
+
* `Iterable`, rather these are a set of computed operations which may not be the same as the
|
|
1934
|
+
* ones applied.
|
|
1935
|
+
*
|
|
1936
|
+
* @param record A change which needs to be applied
|
|
1937
|
+
* @param previousIndex The `IterableChangeRecord#previousIndex` of the `record` refers to the
|
|
1938
|
+
* original `Iterable` location, where as `previousIndex` refers to the transient location
|
|
1939
|
+
* of the item, after applying the operations up to this point.
|
|
1940
|
+
* @param currentIndex The `IterableChangeRecord#currentIndex` of the `record` refers to the
|
|
1941
|
+
* original `Iterable` location, where as `currentIndex` refers to the transient location
|
|
1942
|
+
* of the item, after applying the operations up to this point.
|
|
1943
|
+
*/
|
|
1944
|
+
forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void): void;
|
|
1945
|
+
/**
|
|
1946
|
+
* Iterate over changes in the order of original `Iterable` showing where the original items
|
|
1947
|
+
* have moved.
|
|
1948
|
+
*/
|
|
1949
|
+
forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1950
|
+
/** Iterate over all added items. */
|
|
1951
|
+
forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1952
|
+
/** Iterate over all moved items. */
|
|
1953
|
+
forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1954
|
+
/** Iterate over all removed items. */
|
|
1955
|
+
forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1956
|
+
/**
|
|
1957
|
+
* Iterate over all items which had their identity (as computed by the `TrackByFunction`)
|
|
1958
|
+
* changed.
|
|
1959
|
+
*/
|
|
1960
|
+
forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Record representing the item change information.
|
|
1964
|
+
*
|
|
1965
|
+
* @publicApi
|
|
1966
|
+
*/
|
|
1967
|
+
interface IterableChangeRecord<V> {
|
|
1968
|
+
/** Current index of the item in `Iterable` or null if removed. */
|
|
1969
|
+
readonly currentIndex: number | null;
|
|
1970
|
+
/** Previous index of the item in `Iterable` or null if added. */
|
|
1971
|
+
readonly previousIndex: number | null;
|
|
1972
|
+
/** The item. */
|
|
1973
|
+
readonly item: V;
|
|
1974
|
+
/** Track by identity as computed by the `TrackByFunction`. */
|
|
1975
|
+
readonly trackById: any;
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* A function optionally passed into the `NgForOf` directive to customize how `NgForOf` uniquely
|
|
1979
|
+
* identifies items in an iterable.
|
|
1980
|
+
*
|
|
1981
|
+
* `NgForOf` needs to uniquely identify items in the iterable to correctly perform DOM updates
|
|
1982
|
+
* when items in the iterable are reordered, new items are added, or existing items are removed.
|
|
1983
|
+
*
|
|
1984
|
+
*
|
|
1985
|
+
* In all of these scenarios it is usually desirable to only update the DOM elements associated
|
|
1986
|
+
* with the items affected by the change. This behavior is important to:
|
|
1987
|
+
*
|
|
1988
|
+
* - preserve any DOM-specific UI state (like cursor position, focus, text selection) when the
|
|
1989
|
+
* iterable is modified
|
|
1990
|
+
* - enable animation of item addition, removal, and iterable reordering
|
|
1991
|
+
* - preserve the value of the `<select>` element when nested `<option>` elements are dynamically
|
|
1992
|
+
* populated using `NgForOf` and the bound iterable is updated
|
|
1993
|
+
*
|
|
1994
|
+
* A common use for custom `trackBy` functions is when the model that `NgForOf` iterates over
|
|
1995
|
+
* contains a property with a unique identifier. For example, given a model:
|
|
1996
|
+
*
|
|
1997
|
+
* ```ts
|
|
1998
|
+
* class User {
|
|
1999
|
+
* id: number;
|
|
2000
|
+
* name: string;
|
|
2001
|
+
* ...
|
|
2002
|
+
* }
|
|
2003
|
+
* ```
|
|
2004
|
+
* a custom `trackBy` function could look like the following:
|
|
2005
|
+
* ```ts
|
|
2006
|
+
* function userTrackBy(index, user) {
|
|
2007
|
+
* return user.id;
|
|
2008
|
+
* }
|
|
2009
|
+
* ```
|
|
2010
|
+
*
|
|
2011
|
+
* A custom `trackBy` function must have several properties:
|
|
2012
|
+
*
|
|
2013
|
+
* - be [idempotent](https://en.wikipedia.org/wiki/Idempotence) (be without side effects, and always
|
|
2014
|
+
* return the same value for a given input)
|
|
2015
|
+
* - return unique value for all unique inputs
|
|
2016
|
+
* - be fast
|
|
2017
|
+
*
|
|
2018
|
+
* @see [`NgForOf#ngForTrackBy`](api/common/NgForOf#ngForTrackBy)
|
|
2019
|
+
* @publicApi
|
|
2020
|
+
*/
|
|
2021
|
+
interface TrackByFunction<T> {
|
|
2022
|
+
/**
|
|
2023
|
+
* @param index The index of the item within the iterable.
|
|
2024
|
+
* @param item The item in the iterable.
|
|
2025
|
+
*/
|
|
2026
|
+
<U extends T>(index: number, item: T & U): any;
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Provides a factory for {@link IterableDiffer}.
|
|
2030
|
+
*
|
|
2031
|
+
* @publicApi
|
|
1713
2032
|
*/
|
|
1714
2033
|
interface IterableDifferFactory {
|
|
1715
2034
|
supports(objects: any): boolean;
|
|
@@ -2404,591 +2723,60 @@ declare function afterRenderEffect(callback: (onCleanup: EffectCleanupRegisterFn
|
|
|
2404
2723
|
* </div>
|
|
2405
2724
|
*
|
|
2406
2725
|
* Note that:
|
|
2407
|
-
* - Effects run in the following phase order, only when dirty through signal dependencies:
|
|
2408
|
-
* 1. `earlyRead`
|
|
2409
|
-
* 2. `write`
|
|
2410
|
-
* 3. `mixedReadWrite`
|
|
2411
|
-
* 4. `read`
|
|
2412
|
-
* - `afterRenderEffect`s in the same phase run in the order they are registered.
|
|
2413
|
-
* - `afterRenderEffect`s run on browser platforms only, they will not run on the server.
|
|
2414
|
-
* - `afterRenderEffect`s will run at least once.
|
|
2415
|
-
*
|
|
2416
|
-
* The first phase callback to run as part of this spec will receive no parameters. Each
|
|
2417
|
-
* subsequent phase callback in this spec will receive the return value of the previously run
|
|
2418
|
-
* phase callback as a `Signal`. This can be used to coordinate work across multiple phases.
|
|
2419
|
-
*
|
|
2420
|
-
* Angular is unable to verify or enforce that phases are used correctly, and instead
|
|
2421
|
-
* relies on each developer to follow the guidelines documented for each value and
|
|
2422
|
-
* carefully choose the appropriate one, refactoring their code if necessary. By doing
|
|
2423
|
-
* so, Angular is better able to minimize the performance degradation associated with
|
|
2424
|
-
* manual DOM access, ensuring the best experience for the end users of your application
|
|
2425
|
-
* or library.
|
|
2426
|
-
*
|
|
2427
|
-
* <div class="docs-alert docs-alert-important">
|
|
2428
|
-
*
|
|
2429
|
-
* Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.
|
|
2430
|
-
* You must use caution when directly reading or writing the DOM and layout.
|
|
2431
|
-
*
|
|
2432
|
-
* </div>
|
|
2433
|
-
*
|
|
2434
|
-
* @param spec The effect functions to register
|
|
2435
|
-
* @param options Options to control the behavior of the effects
|
|
2436
|
-
*
|
|
2437
|
-
* @usageNotes
|
|
2438
|
-
*
|
|
2439
|
-
* Use `afterRenderEffect` to create effects that will read or write from the DOM and thus should
|
|
2440
|
-
* run after rendering.
|
|
2441
|
-
*
|
|
2442
|
-
* @publicApi
|
|
2443
|
-
*/
|
|
2444
|
-
declare function afterRenderEffect<E = never, W = never, M = never>(spec: {
|
|
2445
|
-
earlyRead?: (onCleanup: EffectCleanupRegisterFn) => E;
|
|
2446
|
-
write?: (...args: [...ɵFirstAvailableSignal<[E]>, EffectCleanupRegisterFn]) => W;
|
|
2447
|
-
mixedReadWrite?: (...args: [...ɵFirstAvailableSignal<[W, E]>, EffectCleanupRegisterFn]) => M;
|
|
2448
|
-
read?: (...args: [...ɵFirstAvailableSignal<[M, W, E]>, EffectCleanupRegisterFn]) => void;
|
|
2449
|
-
}, options?: AfterRenderOptions): AfterRenderRef;
|
|
2450
|
-
|
|
2451
|
-
/**
|
|
2452
|
-
* Asserts that the current stack frame is not within a reactive context. Useful
|
|
2453
|
-
* to disallow certain code from running inside a reactive context (see {@link /api/core/rxjs-interop/toSignal toSignal})
|
|
2454
|
-
*
|
|
2455
|
-
* @param debugFn a reference to the function making the assertion (used for the error message).
|
|
2456
|
-
* @see [Asserts the reactive context](guide/signals#asserts-the-reactive-context)
|
|
2457
|
-
*
|
|
2458
|
-
* @publicApi
|
|
2459
|
-
*/
|
|
2460
|
-
declare function assertNotInReactiveContext(debugFn: Function, extraContext?: string): void;
|
|
2461
|
-
|
|
2462
|
-
declare class ViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorRef {
|
|
2463
|
-
/**
|
|
2464
|
-
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
2465
|
-
* requested.
|
|
2466
|
-
*
|
|
2467
|
-
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
2468
|
-
*/
|
|
2469
|
-
private _cdRefInjectingView?;
|
|
2470
|
-
private _appRef;
|
|
2471
|
-
private _attachedToViewContainer;
|
|
2472
|
-
private exhaustive?;
|
|
2473
|
-
get rootNodes(): any[];
|
|
2474
|
-
constructor(
|
|
2475
|
-
/**
|
|
2476
|
-
* This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
|
|
2477
|
-
*
|
|
2478
|
-
* When ViewRef is created for a dynamic component, this also represents the `LView` for the
|
|
2479
|
-
* component.
|
|
2480
|
-
*
|
|
2481
|
-
* For a "regular" ViewRef created for an embedded view, this is the `LView` for the embedded
|
|
2482
|
-
* view.
|
|
2483
|
-
*
|
|
2484
|
-
* @internal
|
|
2485
|
-
*/
|
|
2486
|
-
_lView: LView,
|
|
2487
|
-
/**
|
|
2488
|
-
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
2489
|
-
* requested.
|
|
2490
|
-
*
|
|
2491
|
-
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
2492
|
-
*/
|
|
2493
|
-
_cdRefInjectingView?: LView | undefined);
|
|
2494
|
-
get context(): T;
|
|
2495
|
-
/**
|
|
2496
|
-
* @deprecated Replacing the full context object is not supported. Modify the context
|
|
2497
|
-
* directly, or consider using a `Proxy` if you need to replace the full object.
|
|
2498
|
-
* // TODO(devversion): Remove this.
|
|
2499
|
-
*/
|
|
2500
|
-
set context(value: T);
|
|
2501
|
-
get destroyed(): boolean;
|
|
2502
|
-
destroy(): void;
|
|
2503
|
-
onDestroy(callback: Function): void;
|
|
2504
|
-
/**
|
|
2505
|
-
* Marks a view and all of its ancestors dirty.
|
|
2506
|
-
*
|
|
2507
|
-
* This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is
|
|
2508
|
-
* checked when it needs to be re-rendered but the two normal triggers haven't marked it
|
|
2509
|
-
* dirty (i.e. inputs haven't changed and events haven't fired in the view).
|
|
2510
|
-
*
|
|
2511
|
-
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
|
2512
|
-
*
|
|
2513
|
-
* @usageNotes
|
|
2514
|
-
* ### Example
|
|
2515
|
-
*
|
|
2516
|
-
* ```ts
|
|
2517
|
-
* @Component({
|
|
2518
|
-
* selector: 'app-root',
|
|
2519
|
-
* template: `Number of ticks: {{numberOfTicks}}`
|
|
2520
|
-
* })
|
|
2521
|
-
* class AppComponent {
|
|
2522
|
-
* numberOfTicks = 0;
|
|
2523
|
-
*
|
|
2524
|
-
* constructor(private ref: ChangeDetectorRef) {
|
|
2525
|
-
* setInterval(() => {
|
|
2526
|
-
* this.numberOfTicks++;
|
|
2527
|
-
* // the following is required, otherwise the view will not be updated
|
|
2528
|
-
* this.ref.markForCheck();
|
|
2529
|
-
* }, 1000);
|
|
2530
|
-
* }
|
|
2531
|
-
* }
|
|
2532
|
-
* ```
|
|
2533
|
-
*/
|
|
2534
|
-
markForCheck(): void;
|
|
2535
|
-
/**
|
|
2536
|
-
* Detaches the view from the change detection tree.
|
|
2537
|
-
*
|
|
2538
|
-
* Detached views will not be checked during change detection runs until they are
|
|
2539
|
-
* re-attached, even if they are dirty. `detach` can be used in combination with
|
|
2540
|
-
* {@link ChangeDetectorRef#detectChanges} to implement local change
|
|
2541
|
-
* detection checks.
|
|
2542
|
-
*
|
|
2543
|
-
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
2544
|
-
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
|
2545
|
-
*
|
|
2546
|
-
* @usageNotes
|
|
2547
|
-
* ### Example
|
|
2548
|
-
*
|
|
2549
|
-
* The following example defines a component with a large list of readonly data.
|
|
2550
|
-
* Imagine the data changes constantly, many times per second. For performance reasons,
|
|
2551
|
-
* we want to check and update the list every five seconds. We can do that by detaching
|
|
2552
|
-
* the component's change detector and doing a local check every five seconds.
|
|
2553
|
-
*
|
|
2554
|
-
* ```ts
|
|
2555
|
-
* class DataProvider {
|
|
2556
|
-
* // in a real application the returned data will be different every time
|
|
2557
|
-
* get data() {
|
|
2558
|
-
* return [1,2,3,4,5];
|
|
2559
|
-
* }
|
|
2560
|
-
* }
|
|
2561
|
-
*
|
|
2562
|
-
* @Component({
|
|
2563
|
-
* selector: 'giant-list',
|
|
2564
|
-
* template: `
|
|
2565
|
-
* @for(d of dataProvider.data; track $index) {
|
|
2566
|
-
* <li>Data {{d}}</li>
|
|
2567
|
-
* }
|
|
2568
|
-
* `,
|
|
2569
|
-
* })
|
|
2570
|
-
* class GiantList {
|
|
2571
|
-
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
|
|
2572
|
-
* ref.detach();
|
|
2573
|
-
* setInterval(() => {
|
|
2574
|
-
* this.ref.detectChanges();
|
|
2575
|
-
* }, 5000);
|
|
2576
|
-
* }
|
|
2577
|
-
* }
|
|
2578
|
-
*
|
|
2579
|
-
* @Component({
|
|
2580
|
-
* selector: 'app',
|
|
2581
|
-
* providers: [DataProvider],
|
|
2582
|
-
* template: `
|
|
2583
|
-
* <giant-list><giant-list>
|
|
2584
|
-
* `,
|
|
2585
|
-
* })
|
|
2586
|
-
* class App {
|
|
2587
|
-
* }
|
|
2588
|
-
* ```
|
|
2589
|
-
*/
|
|
2590
|
-
detach(): void;
|
|
2591
|
-
/**
|
|
2592
|
-
* Re-attaches a view to the change detection tree.
|
|
2593
|
-
*
|
|
2594
|
-
* This can be used to re-attach views that were previously detached from the tree
|
|
2595
|
-
* using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.
|
|
2596
|
-
*
|
|
2597
|
-
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
2598
|
-
*
|
|
2599
|
-
* @usageNotes
|
|
2600
|
-
* ### Example
|
|
2601
|
-
*
|
|
2602
|
-
* The following example creates a component displaying `live` data. The component will detach
|
|
2603
|
-
* its change detector from the main change detector tree when the component's live property
|
|
2604
|
-
* is set to false.
|
|
2605
|
-
*
|
|
2606
|
-
* ```ts
|
|
2607
|
-
* class DataProvider {
|
|
2608
|
-
* data = 1;
|
|
2609
|
-
*
|
|
2610
|
-
* constructor() {
|
|
2611
|
-
* setInterval(() => {
|
|
2612
|
-
* this.data = this.data * 2;
|
|
2613
|
-
* }, 500);
|
|
2614
|
-
* }
|
|
2615
|
-
* }
|
|
2616
|
-
*
|
|
2617
|
-
* @Component({
|
|
2618
|
-
* selector: 'live-data',
|
|
2619
|
-
* inputs: ['live'],
|
|
2620
|
-
* template: 'Data: {{dataProvider.data}}'
|
|
2621
|
-
* })
|
|
2622
|
-
* class LiveData {
|
|
2623
|
-
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
|
|
2624
|
-
*
|
|
2625
|
-
* set live(value) {
|
|
2626
|
-
* if (value) {
|
|
2627
|
-
* this.ref.reattach();
|
|
2628
|
-
* } else {
|
|
2629
|
-
* this.ref.detach();
|
|
2630
|
-
* }
|
|
2631
|
-
* }
|
|
2632
|
-
* }
|
|
2633
|
-
*
|
|
2634
|
-
* @Component({
|
|
2635
|
-
* selector: 'app-root',
|
|
2636
|
-
* providers: [DataProvider],
|
|
2637
|
-
* template: `
|
|
2638
|
-
* Live Update: <input type="checkbox" [(ngModel)]="live">
|
|
2639
|
-
* <live-data [live]="live"><live-data>
|
|
2640
|
-
* `,
|
|
2641
|
-
* })
|
|
2642
|
-
* class AppComponent {
|
|
2643
|
-
* live = true;
|
|
2644
|
-
* }
|
|
2645
|
-
* ```
|
|
2646
|
-
*/
|
|
2647
|
-
reattach(): void;
|
|
2648
|
-
/**
|
|
2649
|
-
* Checks the view and its children.
|
|
2650
|
-
*
|
|
2651
|
-
* This can also be used in combination with {@link ChangeDetectorRef#detach} to implement
|
|
2652
|
-
* local change detection checks.
|
|
2653
|
-
*
|
|
2654
|
-
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
2655
|
-
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
|
2656
|
-
*
|
|
2657
|
-
* @usageNotes
|
|
2658
|
-
* ### Example
|
|
2659
|
-
*
|
|
2660
|
-
* The following example defines a component with a large list of readonly data.
|
|
2661
|
-
* Imagine, the data changes constantly, many times per second. For performance reasons,
|
|
2662
|
-
* we want to check and update the list every five seconds.
|
|
2663
|
-
*
|
|
2664
|
-
* We can do that by detaching the component's change detector and doing a local change detection
|
|
2665
|
-
* check every five seconds.
|
|
2666
|
-
*
|
|
2667
|
-
* See {@link ChangeDetectorRef#detach} for more information.
|
|
2668
|
-
*/
|
|
2669
|
-
detectChanges(): void;
|
|
2670
|
-
/**
|
|
2671
|
-
* Checks the change detector and its children, and throws if any changes are detected.
|
|
2672
|
-
*
|
|
2673
|
-
* This is used in development mode to verify that running change detection doesn't
|
|
2674
|
-
* introduce other changes.
|
|
2675
|
-
*/
|
|
2676
|
-
checkNoChanges(): void;
|
|
2677
|
-
attachToViewContainerRef(): void;
|
|
2678
|
-
detachFromAppRef(): void;
|
|
2679
|
-
attachToAppRef(appRef: ApplicationRef): void;
|
|
2680
|
-
}
|
|
2681
|
-
/**
|
|
2682
|
-
* Reports whether the given view is considered dirty according to the different marking mechanisms.
|
|
2683
|
-
*/
|
|
2684
|
-
declare function isViewDirty(view: ViewRef<unknown>): boolean;
|
|
2685
|
-
declare function markForRefresh(view: ViewRef<unknown>): void;
|
|
2686
|
-
|
|
2687
|
-
declare class ComponentFactoryResolver extends ComponentFactoryResolver$1 {
|
|
2688
|
-
private ngModule?;
|
|
2689
|
-
/**
|
|
2690
|
-
* @param ngModule The NgModuleRef to which all resolved factories are bound.
|
|
2691
|
-
*/
|
|
2692
|
-
constructor(ngModule?: NgModuleRef$1<any> | undefined);
|
|
2693
|
-
resolveComponentFactory<T>(component: Type$1<T>): ComponentFactory$1<T>;
|
|
2694
|
-
}
|
|
2695
|
-
/**
|
|
2696
|
-
* Infers the tag name that should be used for a component based on its definition.
|
|
2697
|
-
* @param componentDef Definition for which to resolve the tag name.
|
|
2698
|
-
*/
|
|
2699
|
-
declare function inferTagNameFromDefinition(componentDef: ComponentDef<unknown>): string;
|
|
2700
|
-
/**
|
|
2701
|
-
* ComponentFactory interface implementation.
|
|
2702
|
-
*/
|
|
2703
|
-
declare class ComponentFactory<T> extends ComponentFactory$1<T> {
|
|
2704
|
-
private componentDef;
|
|
2705
|
-
private ngModule?;
|
|
2706
|
-
selector: string;
|
|
2707
|
-
componentType: Type$1<any>;
|
|
2708
|
-
ngContentSelectors: string[];
|
|
2709
|
-
isBoundToModule: boolean;
|
|
2710
|
-
private cachedInputs;
|
|
2711
|
-
private cachedOutputs;
|
|
2712
|
-
get inputs(): {
|
|
2713
|
-
propName: string;
|
|
2714
|
-
templateName: string;
|
|
2715
|
-
isSignal: boolean;
|
|
2716
|
-
transform?: (value: any) => any;
|
|
2717
|
-
}[];
|
|
2718
|
-
get outputs(): {
|
|
2719
|
-
propName: string;
|
|
2720
|
-
templateName: string;
|
|
2721
|
-
}[];
|
|
2722
|
-
/**
|
|
2723
|
-
* @param componentDef The component definition.
|
|
2724
|
-
* @param ngModule The NgModuleRef to which the factory is bound.
|
|
2725
|
-
*/
|
|
2726
|
-
constructor(componentDef: ComponentDef<any>, ngModule?: NgModuleRef$1<any> | undefined);
|
|
2727
|
-
create(injector: Injector, projectableNodes?: any[][] | undefined, rootSelectorOrNode?: any, environmentInjector?: NgModuleRef$1<any> | EnvironmentInjector | undefined, directives?: (Type$1<unknown> | DirectiveWithBindings<unknown>)[], componentBindings?: Binding[]): ComponentRef$1<T>;
|
|
2728
|
-
private createComponentRef;
|
|
2729
|
-
}
|
|
2730
|
-
/**
|
|
2731
|
-
* Represents an instance of a Component created via a {@link ComponentFactory}.
|
|
2732
|
-
*
|
|
2733
|
-
* `ComponentRef` provides access to the Component Instance as well other objects related to this
|
|
2734
|
-
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
|
2735
|
-
* method.
|
|
2736
|
-
*
|
|
2737
|
-
*/
|
|
2738
|
-
declare class ComponentRef<T> extends ComponentRef$1<T> {
|
|
2739
|
-
private readonly _rootLView;
|
|
2740
|
-
private readonly _hasInputBindings;
|
|
2741
|
-
instance: T;
|
|
2742
|
-
hostView: ViewRef<T>;
|
|
2743
|
-
changeDetectorRef: ChangeDetectorRef;
|
|
2744
|
-
componentType: Type$1<T>;
|
|
2745
|
-
location: ElementRef;
|
|
2746
|
-
private previousInputValues;
|
|
2747
|
-
private _tNode;
|
|
2748
|
-
constructor(componentType: Type$1<T>, _rootLView: LView, _hasInputBindings: boolean);
|
|
2749
|
-
setInput(name: string, value: unknown): void;
|
|
2750
|
-
get injector(): Injector;
|
|
2751
|
-
destroy(): void;
|
|
2752
|
-
onDestroy(callback: () => void): void;
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
/**
|
|
2756
|
-
* Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
|
|
2757
|
-
*
|
|
2758
|
-
* @param ngModule NgModule class.
|
|
2759
|
-
* @param parentInjector Optional injector instance to use as a parent for the module injector. If
|
|
2760
|
-
* not provided, `NullInjector` will be used instead.
|
|
2761
|
-
* @returns NgModuleRef that represents an NgModule instance.
|
|
2762
|
-
*
|
|
2763
|
-
* @publicApi
|
|
2764
|
-
*/
|
|
2765
|
-
declare function createNgModule<T>(ngModule: Type$1<T>, parentInjector?: Injector): NgModuleRef$1<T>;
|
|
2766
|
-
declare class NgModuleRef<T> extends NgModuleRef$1<T> implements InternalNgModuleRef<T> {
|
|
2767
|
-
private readonly ngModuleType;
|
|
2768
|
-
_parent: Injector | null;
|
|
2769
|
-
_bootstrapComponents: Type$1<any>[];
|
|
2770
|
-
private readonly _r3Injector;
|
|
2771
|
-
instance: T;
|
|
2772
|
-
destroyCbs: (() => void)[] | null;
|
|
2773
|
-
readonly componentFactoryResolver: ComponentFactoryResolver;
|
|
2774
|
-
constructor(ngModuleType: Type$1<T>, _parent: Injector | null, additionalProviders: Array<Provider | EnvironmentProviders>, runInjectorInitializers?: boolean);
|
|
2775
|
-
resolveInjectorInitializers(): void;
|
|
2776
|
-
get injector(): EnvironmentInjector;
|
|
2777
|
-
destroy(): void;
|
|
2778
|
-
onDestroy(callback: () => void): void;
|
|
2779
|
-
}
|
|
2780
|
-
declare class NgModuleFactory<T> extends NgModuleFactory$1<T> {
|
|
2781
|
-
moduleType: Type$1<T>;
|
|
2782
|
-
constructor(moduleType: Type$1<T>);
|
|
2783
|
-
create(parentInjector: Injector | null): NgModuleRef$1<T>;
|
|
2784
|
-
}
|
|
2785
|
-
/**
|
|
2786
|
-
* Create a new environment injector.
|
|
2787
|
-
*
|
|
2788
|
-
* @param providers An array of providers.
|
|
2789
|
-
* @param parent A parent environment injector.
|
|
2790
|
-
* @param debugName An optional name for this injector instance, which will be used in error
|
|
2791
|
-
* messages.
|
|
2792
|
-
*
|
|
2793
|
-
* @publicApi
|
|
2794
|
-
*/
|
|
2795
|
-
declare function createEnvironmentInjector(providers: Array<Provider | EnvironmentProviders>, parent: EnvironmentInjector, debugName?: string | null): EnvironmentInjector;
|
|
2796
|
-
|
|
2797
|
-
/**
|
|
2798
|
-
* Convince closure compiler that the wrapped function has no side-effects.
|
|
2799
|
-
*
|
|
2800
|
-
* Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
|
|
2801
|
-
* allow us to execute a function but have closure compiler mark the call as no-side-effects.
|
|
2802
|
-
* It is important that the return value for the `noSideEffects` function be assigned
|
|
2803
|
-
* to something which is retained otherwise the call to `noSideEffects` will be removed by closure
|
|
2804
|
-
* compiler.
|
|
2805
|
-
*/
|
|
2806
|
-
declare function noSideEffects<T>(fn: () => T): T;
|
|
2807
|
-
|
|
2808
|
-
/**
|
|
2809
|
-
* A DI token that you can use to provide
|
|
2810
|
-
* one or more initialization functions.
|
|
2811
|
-
*
|
|
2812
|
-
* The provided functions are injected at application startup and executed during
|
|
2813
|
-
* app initialization. If any of these functions returns a Promise or an Observable, initialization
|
|
2814
|
-
* does not complete until the Promise is resolved or the Observable is completed.
|
|
2815
|
-
*
|
|
2816
|
-
* You can, for example, create a factory function that loads language data
|
|
2817
|
-
* or an external configuration, and provide that function to the `APP_INITIALIZER` token.
|
|
2818
|
-
* The function is executed during the application bootstrap process,
|
|
2819
|
-
* and the needed data is available on startup.
|
|
2820
|
-
*
|
|
2821
|
-
* Note that the provided initializer is run in the injection context.
|
|
2822
|
-
*
|
|
2823
|
-
* @deprecated from v19.0.0, use provideAppInitializer instead
|
|
2824
|
-
*
|
|
2825
|
-
* @see {@link ApplicationInitStatus}
|
|
2826
|
-
* @see {@link provideAppInitializer}
|
|
2827
|
-
*
|
|
2828
|
-
* @usageNotes
|
|
2829
|
-
*
|
|
2830
|
-
* The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
|
|
2831
|
-
* and a function returning a promise.
|
|
2832
|
-
* ### Example with NgModule-based application
|
|
2833
|
-
* ```ts
|
|
2834
|
-
* function initializeApp(): Promise<any> {
|
|
2835
|
-
* const http = inject(HttpClient);
|
|
2836
|
-
* return firstValueFrom(
|
|
2837
|
-
* http
|
|
2838
|
-
* .get("https://someUrl.com/api/user")
|
|
2839
|
-
* .pipe(tap(user => { ... }))
|
|
2840
|
-
* );
|
|
2841
|
-
* }
|
|
2842
|
-
*
|
|
2843
|
-
* @NgModule({
|
|
2844
|
-
* imports: [BrowserModule],
|
|
2845
|
-
* declarations: [AppComponent],
|
|
2846
|
-
* bootstrap: [AppComponent],
|
|
2847
|
-
* providers: [{
|
|
2848
|
-
* provide: APP_INITIALIZER,
|
|
2849
|
-
* useValue: initializeApp,
|
|
2850
|
-
* multi: true,
|
|
2851
|
-
* }]
|
|
2852
|
-
* })
|
|
2853
|
-
* export class AppModule {}
|
|
2854
|
-
* ```
|
|
2855
|
-
*
|
|
2856
|
-
* ### Example with standalone application
|
|
2857
|
-
* ```ts
|
|
2858
|
-
* function initializeApp() {
|
|
2859
|
-
* const http = inject(HttpClient);
|
|
2860
|
-
* return firstValueFrom(
|
|
2861
|
-
* http
|
|
2862
|
-
* .get("https://someUrl.com/api/user")
|
|
2863
|
-
* .pipe(tap(user => { ... }))
|
|
2864
|
-
* );
|
|
2865
|
-
* }
|
|
2866
|
-
*
|
|
2867
|
-
* bootstrapApplication(App, {
|
|
2868
|
-
* providers: [
|
|
2869
|
-
* provideHttpClient(),
|
|
2870
|
-
* {
|
|
2871
|
-
* provide: APP_INITIALIZER,
|
|
2872
|
-
* useValue: initializeApp,
|
|
2873
|
-
* multi: true,
|
|
2874
|
-
* },
|
|
2875
|
-
* ],
|
|
2876
|
-
* });
|
|
2877
|
-
|
|
2878
|
-
* ```
|
|
2879
|
-
*
|
|
2880
|
-
*
|
|
2881
|
-
* It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
|
|
2882
|
-
* returning an observable, see an example below. Note: the `HttpClient` in this example is used for
|
|
2883
|
-
* demo purposes to illustrate how the factory function can work with other providers available
|
|
2884
|
-
* through DI.
|
|
2885
|
-
*
|
|
2886
|
-
* ### Example with NgModule-based application
|
|
2887
|
-
* ```ts
|
|
2888
|
-
* function initializeApp() {
|
|
2889
|
-
* const http = inject(HttpClient);
|
|
2890
|
-
* return firstValueFrom(
|
|
2891
|
-
* http
|
|
2892
|
-
* .get("https://someUrl.com/api/user")
|
|
2893
|
-
* .pipe(tap(user => { ... }))
|
|
2894
|
-
* );
|
|
2895
|
-
* }
|
|
2896
|
-
*
|
|
2897
|
-
* @NgModule({
|
|
2898
|
-
* imports: [BrowserModule, HttpClientModule],
|
|
2899
|
-
* declarations: [AppComponent],
|
|
2900
|
-
* bootstrap: [AppComponent],
|
|
2901
|
-
* providers: [{
|
|
2902
|
-
* provide: APP_INITIALIZER,
|
|
2903
|
-
* useValue: initializeApp,
|
|
2904
|
-
* multi: true,
|
|
2905
|
-
* }]
|
|
2906
|
-
* })
|
|
2907
|
-
* export class AppModule {}
|
|
2908
|
-
* ```
|
|
2909
|
-
*
|
|
2910
|
-
* ### Example with standalone application
|
|
2911
|
-
* ```ts
|
|
2912
|
-
* function initializeApp() {
|
|
2913
|
-
* const http = inject(HttpClient);
|
|
2914
|
-
* return firstValueFrom(
|
|
2915
|
-
* http
|
|
2916
|
-
* .get("https://someUrl.com/api/user")
|
|
2917
|
-
* .pipe(tap(user => { ... }))
|
|
2918
|
-
* );
|
|
2919
|
-
* }
|
|
2920
|
-
*
|
|
2921
|
-
* bootstrapApplication(App, {
|
|
2922
|
-
* providers: [
|
|
2923
|
-
* provideHttpClient(),
|
|
2924
|
-
* {
|
|
2925
|
-
* provide: APP_INITIALIZER,
|
|
2926
|
-
* useValue: initializeApp,
|
|
2927
|
-
* multi: true,
|
|
2928
|
-
* },
|
|
2929
|
-
* ],
|
|
2930
|
-
* });
|
|
2931
|
-
* ```
|
|
2726
|
+
* - Effects run in the following phase order, only when dirty through signal dependencies:
|
|
2727
|
+
* 1. `earlyRead`
|
|
2728
|
+
* 2. `write`
|
|
2729
|
+
* 3. `mixedReadWrite`
|
|
2730
|
+
* 4. `read`
|
|
2731
|
+
* - `afterRenderEffect`s in the same phase run in the order they are registered.
|
|
2732
|
+
* - `afterRenderEffect`s run on browser platforms only, they will not run on the server.
|
|
2733
|
+
* - `afterRenderEffect`s will run at least once.
|
|
2932
2734
|
*
|
|
2933
|
-
*
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* @description
|
|
2938
|
-
* The provided function is injected at application startup and executed during
|
|
2939
|
-
* app initialization. If the function returns a Promise or an Observable, initialization
|
|
2940
|
-
* does not complete until the Promise is resolved or the Observable is completed.
|
|
2735
|
+
* The first phase callback to run as part of this spec will receive no parameters. Each
|
|
2736
|
+
* subsequent phase callback in this spec will receive the return value of the previously run
|
|
2737
|
+
* phase callback as a `Signal`. This can be used to coordinate work across multiple phases.
|
|
2941
2738
|
*
|
|
2942
|
-
*
|
|
2943
|
-
*
|
|
2944
|
-
*
|
|
2945
|
-
*
|
|
2739
|
+
* Angular is unable to verify or enforce that phases are used correctly, and instead
|
|
2740
|
+
* relies on each developer to follow the guidelines documented for each value and
|
|
2741
|
+
* carefully choose the appropriate one, refactoring their code if necessary. By doing
|
|
2742
|
+
* so, Angular is better able to minimize the performance degradation associated with
|
|
2743
|
+
* manual DOM access, ensuring the best experience for the end users of your application
|
|
2744
|
+
* or library.
|
|
2946
2745
|
*
|
|
2947
|
-
*
|
|
2746
|
+
* <div class="docs-alert docs-alert-important">
|
|
2948
2747
|
*
|
|
2949
|
-
*
|
|
2748
|
+
* Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.
|
|
2749
|
+
* You must use caution when directly reading or writing the DOM and layout.
|
|
2950
2750
|
*
|
|
2951
|
-
*
|
|
2751
|
+
* </div>
|
|
2752
|
+
*
|
|
2753
|
+
* @param spec The effect functions to register
|
|
2754
|
+
* @param options Options to control the behavior of the effects
|
|
2952
2755
|
*
|
|
2953
2756
|
* @usageNotes
|
|
2954
|
-
*
|
|
2955
|
-
* `
|
|
2956
|
-
*
|
|
2957
|
-
* bootstrapApplication(App, {
|
|
2958
|
-
* providers: [
|
|
2959
|
-
* provideAppInitializer(() => {
|
|
2960
|
-
* const http = inject(HttpClient);
|
|
2961
|
-
* return firstValueFrom(
|
|
2962
|
-
* http
|
|
2963
|
-
* .get("https://someUrl.com/api/user")
|
|
2964
|
-
* .pipe(tap(user => { ... }))
|
|
2965
|
-
* );
|
|
2966
|
-
* }),
|
|
2967
|
-
* provideHttpClient(),
|
|
2968
|
-
* ],
|
|
2969
|
-
* });
|
|
2970
|
-
* ```
|
|
2757
|
+
*
|
|
2758
|
+
* Use `afterRenderEffect` to create effects that will read or write from the DOM and thus should
|
|
2759
|
+
* run after rendering.
|
|
2971
2760
|
*
|
|
2972
2761
|
* @publicApi
|
|
2973
2762
|
*/
|
|
2974
|
-
declare function
|
|
2763
|
+
declare function afterRenderEffect<E = never, W = never, M = never>(spec: {
|
|
2764
|
+
earlyRead?: (onCleanup: EffectCleanupRegisterFn) => E;
|
|
2765
|
+
write?: (...args: [...ɵFirstAvailableSignal<[E]>, EffectCleanupRegisterFn]) => W;
|
|
2766
|
+
mixedReadWrite?: (...args: [...ɵFirstAvailableSignal<[W, E]>, EffectCleanupRegisterFn]) => M;
|
|
2767
|
+
read?: (...args: [...ɵFirstAvailableSignal<[M, W, E]>, EffectCleanupRegisterFn]) => void;
|
|
2768
|
+
}, options?: AfterRenderOptions): AfterRenderRef;
|
|
2769
|
+
|
|
2975
2770
|
/**
|
|
2976
|
-
*
|
|
2771
|
+
* Asserts that the current stack frame is not within a reactive context. Useful
|
|
2772
|
+
* to disallow certain code from running inside a reactive context (see {@link /api/core/rxjs-interop/toSignal toSignal})
|
|
2773
|
+
*
|
|
2774
|
+
* @param debugFn a reference to the function making the assertion (used for the error message).
|
|
2775
|
+
* @see [Asserts the reactive context](guide/signals#asserts-the-reactive-context)
|
|
2977
2776
|
*
|
|
2978
2777
|
* @publicApi
|
|
2979
2778
|
*/
|
|
2980
|
-
declare
|
|
2981
|
-
private resolve;
|
|
2982
|
-
private reject;
|
|
2983
|
-
private initialized;
|
|
2984
|
-
readonly done = false;
|
|
2985
|
-
readonly donePromise: Promise<any>;
|
|
2986
|
-
private readonly appInits;
|
|
2987
|
-
private readonly injector;
|
|
2988
|
-
constructor();
|
|
2989
|
-
static ɵfac: __FactoryDeclaration<ApplicationInitStatus, never>;
|
|
2990
|
-
static ɵprov: __InjectableDeclaration<ApplicationInitStatus>;
|
|
2991
|
-
}
|
|
2779
|
+
declare function assertNotInReactiveContext(debugFn: Function, extraContext?: string): void;
|
|
2992
2780
|
|
|
2993
2781
|
/**
|
|
2994
2782
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
@@ -3943,6 +3731,38 @@ declare function setDocument(document: Document | undefined): void;
|
|
|
3943
3731
|
*/
|
|
3944
3732
|
declare function getDocument(): Document;
|
|
3945
3733
|
|
|
3734
|
+
/** Token used to retrieve the `SharedStylesHost`. */
|
|
3735
|
+
declare const SHARED_STYLES_HOST: InjectionToken<SharedStylesHost>;
|
|
3736
|
+
/** Manages stylesheets for components in the application. */
|
|
3737
|
+
interface SharedStylesHost {
|
|
3738
|
+
/**
|
|
3739
|
+
* Adds embedded styles to the DOM via HTML `style` elements.
|
|
3740
|
+
* @param styles An array of style content strings.
|
|
3741
|
+
* @param urls An array of URLs to be added as link tags.
|
|
3742
|
+
*/
|
|
3743
|
+
addStyles(styles: string[], urls?: string[]): void;
|
|
3744
|
+
/**
|
|
3745
|
+
* Removes embedded styles from the DOM that were added as HTML `style` elements.
|
|
3746
|
+
* @param styles An array of style content strings.
|
|
3747
|
+
* @param urls An array of URLs to be removed as link tags.
|
|
3748
|
+
*/
|
|
3749
|
+
removeStyles(styles: string[], urls?: string[]): void;
|
|
3750
|
+
/**
|
|
3751
|
+
* Adds a host node to contain styles added to the DOM and adds all existing style usage to
|
|
3752
|
+
* the newly added host node.
|
|
3753
|
+
*
|
|
3754
|
+
* @param hostNode The node to contain styles added to the DOM.
|
|
3755
|
+
*/
|
|
3756
|
+
addHost(hostNode: Node): void;
|
|
3757
|
+
/**
|
|
3758
|
+
* Removes a host node from the set of style hosts and removes all existing style usage from
|
|
3759
|
+
* the removed host node.
|
|
3760
|
+
*
|
|
3761
|
+
* @param hostNode The node to remove from the set of style hosts.
|
|
3762
|
+
*/
|
|
3763
|
+
removeHost(hostNode: Node): void;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3946
3766
|
/**
|
|
3947
3767
|
* URL for the XSS security documentation.
|
|
3948
3768
|
*/
|
|
@@ -4047,7 +3867,6 @@ declare const enum RuntimeErrorCode {
|
|
|
4047
3867
|
UNEXPECTED_ZONEJS_PRESENT_IN_ZONELESS_MODE = 914,
|
|
4048
3868
|
MISSING_NG_MODULE_DEFINITION = 915,
|
|
4049
3869
|
MISSING_DIRECTIVE_DEFINITION = 916,
|
|
4050
|
-
NO_COMPONENT_FACTORY_FOUND = 917,
|
|
4051
3870
|
EXTERNAL_RESOURCE_LOADING_FAILED = 918,
|
|
4052
3871
|
DEF_TYPE_UNDEFINED = -919,
|
|
4053
3872
|
NG_MODULE_ID_NOT_FOUND = 920,
|
|
@@ -4242,6 +4061,9 @@ declare function withI18nSupport(): Provider[];
|
|
|
4242
4061
|
* Requires hydration to be enabled separately.
|
|
4243
4062
|
* Enabling incremental hydration also enables event replay for the entire app.
|
|
4244
4063
|
* @see [Incremental Hydration](guide/incremental-hydration#how-do-you-enable-incremental-hydration-in-angular)
|
|
4064
|
+
*
|
|
4065
|
+
* @deprecated Since v22.0.0, incremental hydration is enabled by default with `provideClientHydration`.
|
|
4066
|
+
* Intent to remove in v24.
|
|
4245
4067
|
*/
|
|
4246
4068
|
declare function withIncrementalHydration(): Provider[];
|
|
4247
4069
|
|
|
@@ -4703,6 +4525,10 @@ declare const TESTABILITY: InjectionToken<Testability>;
|
|
|
4703
4525
|
* Internal injection token to retrieve Testability getter class instance.
|
|
4704
4526
|
*/
|
|
4705
4527
|
declare const TESTABILITY_GETTER: InjectionToken<GetTestability>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Internal injection token to signal whether to use pending tasks for stability.
|
|
4530
|
+
*/
|
|
4531
|
+
declare const USE_PENDING_TASKS: InjectionToken<boolean>;
|
|
4706
4532
|
/**
|
|
4707
4533
|
* The Testability service provides testing hooks that can be accessed from
|
|
4708
4534
|
* the browser.
|
|
@@ -4730,6 +4556,8 @@ declare class Testability implements PublicTestability {
|
|
|
4730
4556
|
private _callbacks;
|
|
4731
4557
|
private _taskTrackingZone;
|
|
4732
4558
|
private _destroyRef?;
|
|
4559
|
+
private readonly pendingTasksInternal;
|
|
4560
|
+
private readonly _usePendingTasks;
|
|
4733
4561
|
constructor(_ngZone: NgZone, registry: TestabilityRegistry, testabilityGetter: GetTestability);
|
|
4734
4562
|
private _watchAngularEvents;
|
|
4735
4563
|
/**
|
|
@@ -5400,79 +5228,364 @@ interface WizComponentDebugMetadata extends BaseDirectiveDebugMetadata {
|
|
|
5400
5228
|
framework: Framework.Wiz;
|
|
5401
5229
|
props: Record<string, string>;
|
|
5402
5230
|
}
|
|
5403
|
-
/** All potential debug metadata types across all frameworks. */
|
|
5404
|
-
type DirectiveDebugMetadata = AngularDirectiveDebugMetadata | AcxDirectiveDebugMetadata | AngularComponentDebugMetadata | AcxComponentDebugMetadata | WizComponentDebugMetadata;
|
|
5231
|
+
/** All potential debug metadata types across all frameworks. */
|
|
5232
|
+
type DirectiveDebugMetadata = AngularDirectiveDebugMetadata | AcxDirectiveDebugMetadata | AngularComponentDebugMetadata | AcxComponentDebugMetadata | WizComponentDebugMetadata;
|
|
5233
|
+
/**
|
|
5234
|
+
* Returns the debug (partial) metadata for a particular directive or component instance.
|
|
5235
|
+
* The function accepts an instance of a directive or component and returns the corresponding
|
|
5236
|
+
* metadata.
|
|
5237
|
+
*
|
|
5238
|
+
* @param directiveOrComponentInstance Instance of a directive or component
|
|
5239
|
+
* @returns metadata of the passed directive or component
|
|
5240
|
+
*
|
|
5241
|
+
* @publicApi
|
|
5242
|
+
*/
|
|
5243
|
+
declare function getDirectiveMetadata(directiveOrComponentInstance: any): AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | null;
|
|
5244
|
+
/**
|
|
5245
|
+
* Retrieves the host element of a component or directive instance.
|
|
5246
|
+
* The host element is the DOM element that matched the selector of the directive.
|
|
5247
|
+
*
|
|
5248
|
+
* @param componentOrDirective Component or directive instance for which the host
|
|
5249
|
+
* element should be retrieved.
|
|
5250
|
+
* @returns Host element of the target.
|
|
5251
|
+
*
|
|
5252
|
+
* @publicApi
|
|
5253
|
+
*/
|
|
5254
|
+
declare function getHostElement(componentOrDirective: {}): Element;
|
|
5255
|
+
/**
|
|
5256
|
+
* Event listener configuration returned from `getListeners`.
|
|
5257
|
+
* @publicApi
|
|
5258
|
+
*/
|
|
5259
|
+
interface Listener {
|
|
5260
|
+
/** Name of the event listener. */
|
|
5261
|
+
name: string;
|
|
5262
|
+
/** Element that the listener is bound to. */
|
|
5263
|
+
element: Element;
|
|
5264
|
+
/** Callback that is invoked when the event is triggered. */
|
|
5265
|
+
callback: (value: any) => any;
|
|
5266
|
+
/** Whether the listener is using event capturing. */
|
|
5267
|
+
useCapture: boolean;
|
|
5268
|
+
/**
|
|
5269
|
+
* Type of the listener (e.g. a native DOM event or a custom @Output).
|
|
5270
|
+
*/
|
|
5271
|
+
type: 'dom' | 'output';
|
|
5272
|
+
}
|
|
5273
|
+
/**
|
|
5274
|
+
* Retrieves a list of event listeners associated with a DOM element. The list does include host
|
|
5275
|
+
* listeners, but it does not include event listeners defined outside of the Angular context
|
|
5276
|
+
* (e.g. through `addEventListener`).
|
|
5277
|
+
*
|
|
5278
|
+
* @usageNotes
|
|
5279
|
+
* Given the following DOM structure:
|
|
5280
|
+
*
|
|
5281
|
+
* ```html
|
|
5282
|
+
* <app-root>
|
|
5283
|
+
* <div (click)="doSomething()"></div>
|
|
5284
|
+
* </app-root>
|
|
5285
|
+
* ```
|
|
5286
|
+
*
|
|
5287
|
+
* Calling `getListeners` on `<div>` will return an object that looks as follows:
|
|
5288
|
+
*
|
|
5289
|
+
* ```ts
|
|
5290
|
+
* {
|
|
5291
|
+
* name: 'click',
|
|
5292
|
+
* element: <div>,
|
|
5293
|
+
* callback: () => doSomething(),
|
|
5294
|
+
* useCapture: false
|
|
5295
|
+
* }
|
|
5296
|
+
* ```
|
|
5297
|
+
*
|
|
5298
|
+
* @param element Element for which the DOM listeners should be retrieved.
|
|
5299
|
+
* @returns Array of event listeners on the DOM element.
|
|
5300
|
+
*
|
|
5301
|
+
* @publicApi
|
|
5302
|
+
*/
|
|
5303
|
+
declare function getListeners(element: Element): Listener[];
|
|
5304
|
+
|
|
5305
|
+
declare class ViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorRef {
|
|
5306
|
+
/**
|
|
5307
|
+
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
5308
|
+
* requested.
|
|
5309
|
+
*
|
|
5310
|
+
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
5311
|
+
*/
|
|
5312
|
+
private _cdRefInjectingView?;
|
|
5313
|
+
private _appRef;
|
|
5314
|
+
private _attachedToViewContainer;
|
|
5315
|
+
private exhaustive?;
|
|
5316
|
+
get rootNodes(): any[];
|
|
5317
|
+
constructor(
|
|
5318
|
+
/**
|
|
5319
|
+
* This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
|
|
5320
|
+
*
|
|
5321
|
+
* When ViewRef is created for a dynamic component, this also represents the `LView` for the
|
|
5322
|
+
* component.
|
|
5323
|
+
*
|
|
5324
|
+
* For a "regular" ViewRef created for an embedded view, this is the `LView` for the embedded
|
|
5325
|
+
* view.
|
|
5326
|
+
*
|
|
5327
|
+
* @internal
|
|
5328
|
+
*/
|
|
5329
|
+
_lView: LView,
|
|
5330
|
+
/**
|
|
5331
|
+
* This represents the `LView` associated with the point where `ChangeDetectorRef` was
|
|
5332
|
+
* requested.
|
|
5333
|
+
*
|
|
5334
|
+
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
5335
|
+
*/
|
|
5336
|
+
_cdRefInjectingView?: LView | undefined);
|
|
5337
|
+
get context(): T;
|
|
5338
|
+
/**
|
|
5339
|
+
* @deprecated Replacing the full context object is not supported. Modify the context
|
|
5340
|
+
* directly, or consider using a `Proxy` if you need to replace the full object.
|
|
5341
|
+
* // TODO(devversion): Remove this.
|
|
5342
|
+
*/
|
|
5343
|
+
set context(value: T);
|
|
5344
|
+
get destroyed(): boolean;
|
|
5345
|
+
destroy(): void;
|
|
5346
|
+
onDestroy(callback: Function): void;
|
|
5347
|
+
/**
|
|
5348
|
+
* Marks a view and all of its ancestors dirty.
|
|
5349
|
+
*
|
|
5350
|
+
* This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is
|
|
5351
|
+
* checked when it needs to be re-rendered but the two normal triggers haven't marked it
|
|
5352
|
+
* dirty (i.e. inputs haven't changed and events haven't fired in the view).
|
|
5353
|
+
*
|
|
5354
|
+
* <!-- TODO: Add a link to a chapter on OnPush components -->
|
|
5355
|
+
*
|
|
5356
|
+
* @usageNotes
|
|
5357
|
+
* ### Example
|
|
5358
|
+
*
|
|
5359
|
+
* ```ts
|
|
5360
|
+
* @Component({
|
|
5361
|
+
* selector: 'app-root',
|
|
5362
|
+
* template: `Number of ticks: {{numberOfTicks}}`
|
|
5363
|
+
* })
|
|
5364
|
+
* class AppComponent {
|
|
5365
|
+
* numberOfTicks = 0;
|
|
5366
|
+
*
|
|
5367
|
+
* constructor(private ref: ChangeDetectorRef) {
|
|
5368
|
+
* setInterval(() => {
|
|
5369
|
+
* this.numberOfTicks++;
|
|
5370
|
+
* // the following is required, otherwise the view will not be updated
|
|
5371
|
+
* this.ref.markForCheck();
|
|
5372
|
+
* }, 1000);
|
|
5373
|
+
* }
|
|
5374
|
+
* }
|
|
5375
|
+
* ```
|
|
5376
|
+
*/
|
|
5377
|
+
markForCheck(): void;
|
|
5378
|
+
/**
|
|
5379
|
+
* Detaches the view from the change detection tree.
|
|
5380
|
+
*
|
|
5381
|
+
* Detached views will not be checked during change detection runs until they are
|
|
5382
|
+
* re-attached, even if they are dirty. `detach` can be used in combination with
|
|
5383
|
+
* {@link ChangeDetectorRef#detectChanges} to implement local change
|
|
5384
|
+
* detection checks.
|
|
5385
|
+
*
|
|
5386
|
+
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
5387
|
+
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
|
5388
|
+
*
|
|
5389
|
+
* @usageNotes
|
|
5390
|
+
* ### Example
|
|
5391
|
+
*
|
|
5392
|
+
* The following example defines a component with a large list of readonly data.
|
|
5393
|
+
* Imagine the data changes constantly, many times per second. For performance reasons,
|
|
5394
|
+
* we want to check and update the list every five seconds. We can do that by detaching
|
|
5395
|
+
* the component's change detector and doing a local check every five seconds.
|
|
5396
|
+
*
|
|
5397
|
+
* ```ts
|
|
5398
|
+
* class DataProvider {
|
|
5399
|
+
* // in a real application the returned data will be different every time
|
|
5400
|
+
* get data() {
|
|
5401
|
+
* return [1,2,3,4,5];
|
|
5402
|
+
* }
|
|
5403
|
+
* }
|
|
5404
|
+
*
|
|
5405
|
+
* @Component({
|
|
5406
|
+
* selector: 'giant-list',
|
|
5407
|
+
* template: `
|
|
5408
|
+
* @for(d of dataProvider.data; track $index) {
|
|
5409
|
+
* <li>Data {{d}}</li>
|
|
5410
|
+
* }
|
|
5411
|
+
* `,
|
|
5412
|
+
* })
|
|
5413
|
+
* class GiantList {
|
|
5414
|
+
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
|
|
5415
|
+
* ref.detach();
|
|
5416
|
+
* setInterval(() => {
|
|
5417
|
+
* this.ref.detectChanges();
|
|
5418
|
+
* }, 5000);
|
|
5419
|
+
* }
|
|
5420
|
+
* }
|
|
5421
|
+
*
|
|
5422
|
+
* @Component({
|
|
5423
|
+
* selector: 'app',
|
|
5424
|
+
* providers: [DataProvider],
|
|
5425
|
+
* template: `
|
|
5426
|
+
* <giant-list><giant-list>
|
|
5427
|
+
* `,
|
|
5428
|
+
* })
|
|
5429
|
+
* class App {
|
|
5430
|
+
* }
|
|
5431
|
+
* ```
|
|
5432
|
+
*/
|
|
5433
|
+
detach(): void;
|
|
5434
|
+
/**
|
|
5435
|
+
* Re-attaches a view to the change detection tree.
|
|
5436
|
+
*
|
|
5437
|
+
* This can be used to re-attach views that were previously detached from the tree
|
|
5438
|
+
* using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.
|
|
5439
|
+
*
|
|
5440
|
+
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
5441
|
+
*
|
|
5442
|
+
* @usageNotes
|
|
5443
|
+
* ### Example
|
|
5444
|
+
*
|
|
5445
|
+
* The following example creates a component displaying `live` data. The component will detach
|
|
5446
|
+
* its change detector from the main change detector tree when the component's live property
|
|
5447
|
+
* is set to false.
|
|
5448
|
+
*
|
|
5449
|
+
* ```ts
|
|
5450
|
+
* class DataProvider {
|
|
5451
|
+
* data = 1;
|
|
5452
|
+
*
|
|
5453
|
+
* constructor() {
|
|
5454
|
+
* setInterval(() => {
|
|
5455
|
+
* this.data = this.data * 2;
|
|
5456
|
+
* }, 500);
|
|
5457
|
+
* }
|
|
5458
|
+
* }
|
|
5459
|
+
*
|
|
5460
|
+
* @Component({
|
|
5461
|
+
* selector: 'live-data',
|
|
5462
|
+
* inputs: ['live'],
|
|
5463
|
+
* template: 'Data: {{dataProvider.data}}'
|
|
5464
|
+
* })
|
|
5465
|
+
* class LiveData {
|
|
5466
|
+
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
|
|
5467
|
+
*
|
|
5468
|
+
* set live(value) {
|
|
5469
|
+
* if (value) {
|
|
5470
|
+
* this.ref.reattach();
|
|
5471
|
+
* } else {
|
|
5472
|
+
* this.ref.detach();
|
|
5473
|
+
* }
|
|
5474
|
+
* }
|
|
5475
|
+
* }
|
|
5476
|
+
*
|
|
5477
|
+
* @Component({
|
|
5478
|
+
* selector: 'app-root',
|
|
5479
|
+
* providers: [DataProvider],
|
|
5480
|
+
* template: `
|
|
5481
|
+
* Live Update: <input type="checkbox" [(ngModel)]="live">
|
|
5482
|
+
* <live-data [live]="live"><live-data>
|
|
5483
|
+
* `,
|
|
5484
|
+
* })
|
|
5485
|
+
* class AppComponent {
|
|
5486
|
+
* live = true;
|
|
5487
|
+
* }
|
|
5488
|
+
* ```
|
|
5489
|
+
*/
|
|
5490
|
+
reattach(): void;
|
|
5491
|
+
/**
|
|
5492
|
+
* Checks the view and its children.
|
|
5493
|
+
*
|
|
5494
|
+
* This can also be used in combination with {@link ChangeDetectorRef#detach} to implement
|
|
5495
|
+
* local change detection checks.
|
|
5496
|
+
*
|
|
5497
|
+
* <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
|
|
5498
|
+
* <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
|
|
5499
|
+
*
|
|
5500
|
+
* @usageNotes
|
|
5501
|
+
* ### Example
|
|
5502
|
+
*
|
|
5503
|
+
* The following example defines a component with a large list of readonly data.
|
|
5504
|
+
* Imagine, the data changes constantly, many times per second. For performance reasons,
|
|
5505
|
+
* we want to check and update the list every five seconds.
|
|
5506
|
+
*
|
|
5507
|
+
* We can do that by detaching the component's change detector and doing a local change detection
|
|
5508
|
+
* check every five seconds.
|
|
5509
|
+
*
|
|
5510
|
+
* See {@link ChangeDetectorRef#detach} for more information.
|
|
5511
|
+
*/
|
|
5512
|
+
detectChanges(): void;
|
|
5513
|
+
/**
|
|
5514
|
+
* Checks the change detector and its children, and throws if any changes are detected.
|
|
5515
|
+
*
|
|
5516
|
+
* This is used in development mode to verify that running change detection doesn't
|
|
5517
|
+
* introduce other changes.
|
|
5518
|
+
*/
|
|
5519
|
+
checkNoChanges(): void;
|
|
5520
|
+
attachToViewContainerRef(): void;
|
|
5521
|
+
detachFromAppRef(): void;
|
|
5522
|
+
attachToAppRef(appRef: ApplicationRef): void;
|
|
5523
|
+
}
|
|
5405
5524
|
/**
|
|
5406
|
-
*
|
|
5407
|
-
* The function accepts an instance of a directive or component and returns the corresponding
|
|
5408
|
-
* metadata.
|
|
5409
|
-
*
|
|
5410
|
-
* @param directiveOrComponentInstance Instance of a directive or component
|
|
5411
|
-
* @returns metadata of the passed directive or component
|
|
5412
|
-
*
|
|
5413
|
-
* @publicApi
|
|
5525
|
+
* Reports whether the given view is considered dirty according to the different marking mechanisms.
|
|
5414
5526
|
*/
|
|
5415
|
-
declare function
|
|
5527
|
+
declare function isViewDirty(view: ViewRef<unknown>): boolean;
|
|
5528
|
+
declare function markForRefresh(view: ViewRef<unknown>): void;
|
|
5529
|
+
|
|
5416
5530
|
/**
|
|
5417
|
-
*
|
|
5418
|
-
*
|
|
5419
|
-
*
|
|
5420
|
-
* @param componentOrDirective Component or directive instance for which the host
|
|
5421
|
-
* element should be retrieved.
|
|
5422
|
-
* @returns Host element of the target.
|
|
5423
|
-
*
|
|
5424
|
-
* @publicApi
|
|
5531
|
+
* Infers the tag name that should be used for a component based on its definition.
|
|
5532
|
+
* @param componentDef Definition for which to resolve the tag name.
|
|
5425
5533
|
*/
|
|
5426
|
-
declare function
|
|
5534
|
+
declare function inferTagNameFromDefinition(componentDef: ComponentDef<unknown>): string;
|
|
5427
5535
|
/**
|
|
5428
|
-
*
|
|
5429
|
-
* @publicApi
|
|
5536
|
+
* ComponentFactory interface implementation.
|
|
5430
5537
|
*/
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5538
|
+
declare class ComponentFactory<T> {
|
|
5539
|
+
private componentDef;
|
|
5540
|
+
private ngModule?;
|
|
5541
|
+
selector: string;
|
|
5542
|
+
componentType: Type$1<any>;
|
|
5543
|
+
ngContentSelectors: string[];
|
|
5544
|
+
isBoundToModule: boolean;
|
|
5545
|
+
private cachedInputs;
|
|
5546
|
+
private cachedOutputs;
|
|
5547
|
+
get inputs(): {
|
|
5548
|
+
propName: string;
|
|
5549
|
+
templateName: string;
|
|
5550
|
+
isSignal: boolean;
|
|
5551
|
+
transform?: (value: any) => any;
|
|
5552
|
+
}[];
|
|
5553
|
+
get outputs(): {
|
|
5554
|
+
propName: string;
|
|
5555
|
+
templateName: string;
|
|
5556
|
+
}[];
|
|
5440
5557
|
/**
|
|
5441
|
-
*
|
|
5558
|
+
* @param componentDef The component definition.
|
|
5559
|
+
* @param ngModule The NgModuleRef to which the factory is bound.
|
|
5442
5560
|
*/
|
|
5443
|
-
|
|
5561
|
+
constructor(componentDef: ComponentDef<any>, ngModule?: NgModuleRef$1<any> | undefined);
|
|
5562
|
+
create(injector: Injector, projectableNodes?: any[][] | undefined, rootSelectorOrNode?: any, environmentInjector?: NgModuleRef$1<any> | EnvironmentInjector | undefined, directives?: (Type$1<unknown> | DirectiveWithBindings<unknown>)[], componentBindings?: Binding[]): ComponentRef$1<T>;
|
|
5563
|
+
private createComponentRef;
|
|
5444
5564
|
}
|
|
5445
5565
|
/**
|
|
5446
|
-
*
|
|
5447
|
-
* listeners, but it does not include event listeners defined outside of the Angular context
|
|
5448
|
-
* (e.g. through `addEventListener`).
|
|
5449
|
-
*
|
|
5450
|
-
* @usageNotes
|
|
5451
|
-
* Given the following DOM structure:
|
|
5452
|
-
*
|
|
5453
|
-
* ```html
|
|
5454
|
-
* <app-root>
|
|
5455
|
-
* <div (click)="doSomething()"></div>
|
|
5456
|
-
* </app-root>
|
|
5457
|
-
* ```
|
|
5458
|
-
*
|
|
5459
|
-
* Calling `getListeners` on `<div>` will return an object that looks as follows:
|
|
5460
|
-
*
|
|
5461
|
-
* ```ts
|
|
5462
|
-
* {
|
|
5463
|
-
* name: 'click',
|
|
5464
|
-
* element: <div>,
|
|
5465
|
-
* callback: () => doSomething(),
|
|
5466
|
-
* useCapture: false
|
|
5467
|
-
* }
|
|
5468
|
-
* ```
|
|
5566
|
+
* Represents an instance of a Component created via a {@link ComponentFactory}.
|
|
5469
5567
|
*
|
|
5470
|
-
*
|
|
5471
|
-
*
|
|
5568
|
+
* `ComponentRef` provides access to the Component Instance as well other objects related to this
|
|
5569
|
+
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
|
5570
|
+
* method.
|
|
5472
5571
|
*
|
|
5473
|
-
* @publicApi
|
|
5474
5572
|
*/
|
|
5475
|
-
declare
|
|
5573
|
+
declare class ComponentRef<T> extends ComponentRef$1<T> {
|
|
5574
|
+
private readonly _rootLView;
|
|
5575
|
+
private readonly _hasInputBindings;
|
|
5576
|
+
instance: T;
|
|
5577
|
+
hostView: ViewRef<T>;
|
|
5578
|
+
changeDetectorRef: ChangeDetectorRef;
|
|
5579
|
+
componentType: Type$1<T>;
|
|
5580
|
+
location: ElementRef;
|
|
5581
|
+
private previousInputValues;
|
|
5582
|
+
private _tNode;
|
|
5583
|
+
constructor(componentType: Type$1<T>, _rootLView: LView, _hasInputBindings: boolean);
|
|
5584
|
+
setInput(name: string, value: unknown): void;
|
|
5585
|
+
get injector(): Injector;
|
|
5586
|
+
destroy(): void;
|
|
5587
|
+
onDestroy(callback: () => void): void;
|
|
5588
|
+
}
|
|
5476
5589
|
|
|
5477
5590
|
/**
|
|
5478
5591
|
* @codeGenApi
|
|
@@ -7785,7 +7898,8 @@ declare enum FactoryTarget {
|
|
|
7785
7898
|
Component = 1,
|
|
7786
7899
|
Injectable = 2,
|
|
7787
7900
|
Pipe = 3,
|
|
7788
|
-
NgModule = 4
|
|
7901
|
+
NgModule = 4,
|
|
7902
|
+
Service = 5
|
|
7789
7903
|
}
|
|
7790
7904
|
interface R3DeclareDependencyMetadataFacade {
|
|
7791
7905
|
token: OpaqueValue;
|
|
@@ -7894,6 +8008,11 @@ interface R3DeclareInjectableFacade {
|
|
|
7894
8008
|
useValue?: OpaqueValue;
|
|
7895
8009
|
deps?: R3DeclareDependencyMetadataFacade[];
|
|
7896
8010
|
}
|
|
8011
|
+
interface R3DeclareServiceFacade {
|
|
8012
|
+
type: Type;
|
|
8013
|
+
autoProvided?: boolean;
|
|
8014
|
+
factory?: OpaqueValue;
|
|
8015
|
+
}
|
|
7897
8016
|
declare enum ViewEncapsulation {
|
|
7898
8017
|
Emulated = 0,
|
|
7899
8018
|
None = 2,
|
|
@@ -8439,6 +8558,12 @@ declare function ɵɵngDeclareNgModule(decl: R3DeclareNgModuleFacade): unknown;
|
|
|
8439
8558
|
* @codeGenApi
|
|
8440
8559
|
*/
|
|
8441
8560
|
declare function ɵɵngDeclarePipe(decl: R3DeclarePipeFacade): unknown;
|
|
8561
|
+
/**
|
|
8562
|
+
* Compiles a partial service declaration object into a full service definition object.
|
|
8563
|
+
*
|
|
8564
|
+
* @codeGenApi
|
|
8565
|
+
*/
|
|
8566
|
+
declare function ɵɵngDeclareService(decl: R3DeclareServiceFacade): unknown;
|
|
8442
8567
|
|
|
8443
8568
|
declare function compilePipe(type: Type$1<any>, meta: Pipe): void;
|
|
8444
8569
|
|
|
@@ -9089,7 +9214,7 @@ declare const Attribute: AttributeDecorator;
|
|
|
9089
9214
|
*
|
|
9090
9215
|
* Reference to the current application is provided as a parameter.
|
|
9091
9216
|
*
|
|
9092
|
-
* See ["Bootstrapping"](guide/ngmodules/bootstrapping).
|
|
9217
|
+
* See ["Bootstrapping"](/guide/ngmodules/overview#bootstrapping-an-application).
|
|
9093
9218
|
*
|
|
9094
9219
|
* @usageNotes
|
|
9095
9220
|
* The example below uses `ApplicationRef.bootstrap()` to render the
|
|
@@ -9411,6 +9536,8 @@ declare function reflectComponentType<C>(component: Type$1<C>): ComponentMirror<
|
|
|
9411
9536
|
* @param options The options to use for the debounced signal.
|
|
9412
9537
|
* @returns A resource representing the debounced signal.
|
|
9413
9538
|
* @experimental 22.0
|
|
9539
|
+
*
|
|
9540
|
+
* @see [Debouncing signals with `debounced`](guide/signals/debounced)
|
|
9414
9541
|
*/
|
|
9415
9542
|
declare function debounced<T>(source: () => T, wait: NoInfer<DebounceTimer<T>>, options?: NoInfer<DebouncedOptions<T>>): Resource<T>;
|
|
9416
9543
|
|
|
@@ -9466,5 +9593,5 @@ declare class Version {
|
|
|
9466
9593
|
*/
|
|
9467
9594
|
declare const VERSION: Version;
|
|
9468
9595
|
|
|
9469
|
-
export { ANIMATION_MODULE_TYPE, APP_ID, APP_INITIALIZER, AbstractType, AfterRenderRef, AnimationFunction, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, Binding, CSP_NONCE, ChangeDetectionStrategy$1 as ChangeDetectionStrategy, ChangeDetectorRef, ClassProvider, ClassSansProvider, CompilerOptions, Component, ComponentRef$1 as ComponentRef, ConstructorProvider, ConstructorSansProvider, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DOCUMENT, DebounceTimer, DebouncedOptions, DefaultIterableDiffer, Directive, DirectiveWithBindings, ENVIRONMENT_INITIALIZER, EffectCleanupRegisterFn, ElementRef, EmbeddedViewRef, EnvironmentInjector, EnvironmentProviders, ErrorHandler, ExistingProvider, ExistingSansProvider, FactoryProvider, FactorySansProvider, HOST_TAG_NAME, Host, HostAttributeToken, INJECTOR, Inject, InjectOptions, Injectable, InjectionToken, Injector, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithProviders, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgZone, Optional, OutputRef, PLATFORM_ID, PLATFORM_INITIALIZER, PendingTasks, Pipe, PlatformRef, Provider, ProviderToken, Query, QueryList, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, Resource, ResourceOptions, ResourceParamsContext, ResourceRef, ResourceSnapshot, ResourceStatus, ResourceStreamItem, ResourceStreamingLoader, SchemaMetadata, Self, Signal, SimpleChange, SkipSelf, StaticClassProvider, StaticClassSansProvider, StaticProvider, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type$1 as Type, TypeDecorator, TypeProvider, VERSION, ValueEqualityFn, ValueProvider, ValueSansProvider, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef$1 as ViewRef, WritableResource, WritableSignal, afterEveryRender, afterNextRender, afterRenderEffect, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createPlatform, createPlatformFactory, debounced, destroyPlatform, enableProdMode, enableProfiling$1 as enableProfiling, forwardRef, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, linkedSignal, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, platformCore, provideAppInitializer, provideBrowserGlobalErrorListeners, provideCheckNoChangesConfig, provideEnvironmentInitializer, provideIdleServiceWith, provideNgReflectAttributes, providePlatformInitializer, provideStabilityDebugging, provideZoneChangeDetection, provideZonelessChangeDetection, reflectComponentType, resolveForwardRef, resource, resourceFromSnapshots, runInInjectionContext, setTestabilityGetter, untracked, viewChild, viewChildren, AcxChangeDetectionStrategy as ɵAcxChangeDetectionStrategy, AcxViewEncapsulation as ɵAcxViewEncapsulation, BypassType as ɵBypassType, CLIENT_RENDER_MODE_FLAG as ɵCLIENT_RENDER_MODE_FLAG, ComponentDef as ɵComponentDef, ComponentFactory$1 as ɵComponentFactory, ComponentFactoryResolver$1 as ɵComponentFactoryResolver, ComponentType as ɵComponentType, Console as ɵConsole, ControlFlowBlockType as ɵControlFlowBlockType, CurrencyIndex as ɵCurrencyIndex, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DEHYDRATED_BLOCK_REGISTRY as ɵDEHYDRATED_BLOCK_REGISTRY, DeferBlockConfig as ɵDeferBlockConfig, DeferBlockDependencyInterceptor as ɵDeferBlockDependencyInterceptor, DeferBlockState as ɵDeferBlockState, DirectiveDef as ɵDirectiveDef, DirectiveType as ɵDirectiveType, ENABLE_ROOT_COMPONENT_BOOTSTRAP as ɵENABLE_ROOT_COMPONENT_BOOTSTRAP, EVENT_REPLAY_QUEUE as ɵEVENT_REPLAY_QUEUE, ExtraLocaleDataIndex as ɵExtraLocaleDataIndex, Framework as ɵFramework, HydrationStatus as ɵHydrationStatus, IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER, IS_ENABLED_BLOCKING_INITIAL_NAVIGATION as ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED as ɵIS_INCREMENTAL_HYDRATION_ENABLED, InputSignalNode as ɵInputSignalNode, JSACTION_BLOCK_ELEMENT_MAP as ɵJSACTION_BLOCK_ELEMENT_MAP, LContext as ɵLContext, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX, PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE, PendingTasksInternal as ɵPendingTasksInternal, PipeDef as ɵPipeDef, ProfilerEvent as ɵProfilerEvent, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, ResourceImpl as ɵResourceImpl, RuntimeError as ɵRuntimeError, RuntimeErrorCode as ɵRuntimeErrorCode, SIGNAL as ɵSIGNAL, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TimerScheduler as ɵTimerScheduler, ViewRef as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allLeavingAnimations as ɵallLeavingAnimations, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, annotateForHydration as ɵannotateForHydration, ɵassertType, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, depsTracker as ɵdepsTracker, devModeEqual as ɵdevModeEqual, disableProfiling as ɵdisableProfiling, enableProfiling as ɵenableProfiling, encapsulateResourceError as ɵencapsulateResourceError, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getClosestComponentName as ɵgetClosestComponentName, getComponentDef as ɵgetComponentDef, getDirectives as ɵgetDirectives, getDocument as ɵgetDocument, getHostElement as ɵgetHostElement, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, getTransferState as ɵgetTransferState, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, inferTagNameFromDefinition as ɵinferTagNameFromDefinition, internalCreateApplication as ɵinternalCreateApplication, internalProvideZoneChangeDetection as ɵinternalProvideZoneChangeDetection, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isNgModule as ɵisNgModule, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, isViewDirty as ɵisViewDirty, markForRefresh as ɵmarkForRefresh, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, performanceMarkFeature as ɵperformanceMarkFeature, promiseWithResolvers as ɵpromiseWithResolvers, provideZonelessChangeDetectionInternal as ɵprovideZonelessChangeDetectionInternal, publishExternalGlobalUtil as ɵpublishExternalGlobalUtil, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetIncrementalHydrationEnabledWarnedForTests as ɵresetIncrementalHydrationEnabledWarnedForTests, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setDocument as ɵsetDocument, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, startMeasuring as ɵstartMeasuring, stopMeasuring as ɵstopMeasuring, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, truncateMiddle as ɵtruncateMiddle, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, withDomHydration as ɵwithDomHydration, withEventReplay as ɵwithEventReplay, withI18nSupport as ɵwithI18nSupport, withIncrementalHydration as ɵwithIncrementalHydration, ɵɵControlFeature, ɵɵExternalStylesFeature, __FactoryDeclaration as ɵɵFactoryDeclaration, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, __InjectableDeclaration as ɵɵInjectableDeclaration, __InjectorDeclaration as ɵɵInjectorDeclaration, __NgModuleDeclaration as ɵɵNgModuleDeclaration, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵanimateEnter, ɵɵanimateEnterListener, ɵɵanimateLeave, ɵɵanimateLeaveListener, ɵɵariaProperty, ɵɵarrowFunction, ɵɵattachSourceLocations, ɵɵattribute, ɵɵclassMap, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵconditionalBranchCreate, ɵɵconditionalCreate, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵcontrol, ɵɵcontrolCreate, ɵɵdeclareLet, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferHydrateNever, ɵɵdeferHydrateOnHover, ɵɵdeferHydrateOnIdle, ɵɵdeferHydrateOnImmediate, ɵɵdeferHydrateOnInteraction, ɵɵdeferHydrateOnTimer, ɵɵdeferHydrateOnViewport, ɵɵdeferHydrateWhen, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵdomElement, ɵɵdomElementContainer, ɵɵdomElementContainerEnd, ɵɵdomElementContainerStart, ɵɵdomElementEnd, ɵɵdomElementStart, ɵɵdomListener, ɵɵdomProperty, ɵɵdomTemplate, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵgetReplaceMetadataURL, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinterpolate, ɵɵinterpolate1, ɵɵinterpolate2, ɵɵinterpolate3, ɵɵinterpolate4, ɵɵinterpolate5, ɵɵinterpolate6, ɵɵinterpolate7, ɵɵinterpolate8, ɵɵinterpolateV, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareClassMetadataAsync, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreadContextLet, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵreplaceMetadata, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstoreLet, ɵɵstyleMap, ɵɵstyleProp, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateAttribute, ɵɵviewQuery, ɵɵviewQuerySignal };
|
|
9470
|
-
export type { AfterContentChecked, AfterContentInit, AfterRenderOptions, AfterViewChecked, AfterViewInit, ApplicationConfig, AttributeDecorator, ComponentMirror, ContentChildDecorator, ContentChildFunction, ContentChildrenDecorator, CreateComputedOptions, DoBootstrap, DoCheck, ForwardRefFn, GetTestability, HostDecorator, IdleService, ImportProvidersSource, InjectDecorator, InjectableDecorator, InjectableProvider, InputFunction, InputOptions, InputOptionsWithTransform, InputOptionsWithoutTransform, InputSignal, InputSignalWithTransform, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDifferFactory, KeyValueChangeRecord, KeyValueChanges, KeyValueDiffer, KeyValueDifferFactory, ModelFunction, ModelOptions, ModelSignal, NgIterable, NgZoneOptions, OnChanges, OnDestroy, OnInit, OptionalDecorator, PipeTransform, ResponseInit, SelfDecorator, SimpleChanges, SkipSelfDecorator, StateKey, TrackByFunction, ViewChildDecorator, ViewChildFunction, ViewChildrenDecorator, AcxComponentDebugMetadata as ɵAcxComponentDebugMetadata, AcxDirectiveDebugMetadata as ɵAcxDirectiveDebugMetadata, AngularComponentDebugMetadata as ɵAngularComponentDebugMetadata, AngularDirectiveDebugMetadata as ɵAngularDirectiveDebugMetadata, BaseDirectiveDebugMetadata as ɵBaseDirectiveDebugMetadata, ControlFlowBlock as ɵControlFlowBlock, DeferBlockData as ɵDeferBlockData, DirectiveDebugMetadata as ɵDirectiveDebugMetadata, ɵFirstAvailable, ɵFirstAvailableSignal, ForLoopBlockData as ɵForLoopBlockData, FrameworkAgnosticGlobalUtils as ɵFrameworkAgnosticGlobalUtils, GlobalDevModeUtils as ɵGlobalDevModeUtils, HydratedNode as ɵHydratedNode, HydrationInfo as ɵHydrationInfo, ImageConfig as ɵImageConfig, InjectorProfilerContext as ɵInjectorProfilerContext, NgModuleDef as ɵNgModuleDef, NgModuleTransitiveScopes as ɵNgModuleTransitiveScopes, NgModuleType as ɵNgModuleType, Profiler as ɵProfiler, ProviderRecord as ɵProviderRecord, SafeHtml as ɵSafeHtml, SafeResourceUrl as ɵSafeResourceUrl, SafeScript as ɵSafeScript, SafeStyle as ɵSafeStyle, SafeUrl as ɵSafeUrl, SafeValue as ɵSafeValue, ɵUnwrapDirectiveSignalInputs, WizComponentDebugMetadata as ɵWizComponentDebugMetadata };
|
|
9596
|
+
export { ANIMATION_MODULE_TYPE, APP_ID, APP_INITIALIZER, AbstractType, AfterRenderRef, AnimationFunction, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, Binding, CSP_NONCE, ChangeDetectionStrategy$1 as ChangeDetectionStrategy, ChangeDetectorRef, ClassProvider, ClassSansProvider, CompilerOptions, Component, ComponentRef$1 as ComponentRef, ConstructorProvider, ConstructorSansProvider, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DOCUMENT, DebounceTimer, DebouncedOptions, DefaultIterableDiffer, Directive, DirectiveWithBindings, ENVIRONMENT_INITIALIZER, EffectCleanupRegisterFn, ElementRef, EmbeddedViewRef, EnvironmentInjector, EnvironmentProviders, ErrorHandler, ExistingProvider, ExistingSansProvider, FactoryProvider, FactorySansProvider, HOST_TAG_NAME, Host, HostAttributeToken, INJECTOR, Inject, InjectOptions, Injectable, InjectionToken, Injector, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithProviders, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgZone, Optional, OutputRef, PLATFORM_ID, PLATFORM_INITIALIZER, PendingTasks, Pipe, PlatformRef, Provider, ProviderToken, Query, QueryList, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, Resource, ResourceOptions, ResourceParamsContext, ResourceRef, ResourceSnapshot, ResourceStatus, ResourceStreamItem, ResourceStreamingLoader, SchemaMetadata, Self, Service, Signal, SimpleChange, SkipSelf, StaticClassProvider, StaticClassSansProvider, StaticProvider, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type$1 as Type, TypeDecorator, TypeProvider, VERSION, ValueEqualityFn, ValueProvider, ValueSansProvider, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef$1 as ViewRef, WritableResource, WritableSignal, afterEveryRender, afterNextRender, afterRenderEffect, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createPlatform, createPlatformFactory, debounced, destroyPlatform, enableProdMode, enableProfiling$1 as enableProfiling, forwardRef, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, linkedSignal, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, platformCore, provideAppInitializer, provideBrowserGlobalErrorListeners, provideCheckNoChangesConfig, provideEnvironmentInitializer, provideIdleServiceWith, provideNgReflectAttributes, providePlatformInitializer, provideStabilityDebugging, provideZoneChangeDetection, provideZonelessChangeDetection, reflectComponentType, resolveForwardRef, resource, resourceFromSnapshots, runInInjectionContext, setTestabilityGetter, untracked, viewChild, viewChildren, AcxChangeDetectionStrategy as ɵAcxChangeDetectionStrategy, AcxViewEncapsulation as ɵAcxViewEncapsulation, BypassType as ɵBypassType, CLIENT_RENDER_MODE_FLAG as ɵCLIENT_RENDER_MODE_FLAG, ComponentDef as ɵComponentDef, ComponentType as ɵComponentType, Console as ɵConsole, ControlFlowBlockType as ɵControlFlowBlockType, CurrencyIndex as ɵCurrencyIndex, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DEHYDRATED_BLOCK_REGISTRY as ɵDEHYDRATED_BLOCK_REGISTRY, DeferBlockConfig as ɵDeferBlockConfig, DeferBlockDependencyInterceptor as ɵDeferBlockDependencyInterceptor, DeferBlockState as ɵDeferBlockState, DirectiveDef as ɵDirectiveDef, DirectiveType as ɵDirectiveType, ENABLE_ROOT_COMPONENT_BOOTSTRAP as ɵENABLE_ROOT_COMPONENT_BOOTSTRAP, EVENT_REPLAY_QUEUE as ɵEVENT_REPLAY_QUEUE, ExtraLocaleDataIndex as ɵExtraLocaleDataIndex, Framework as ɵFramework, HydrationStatus as ɵHydrationStatus, IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, INTERNAL_APPLICATION_ERROR_HANDLER as ɵINTERNAL_APPLICATION_ERROR_HANDLER, IS_ENABLED_BLOCKING_INITIAL_NAVIGATION as ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED as ɵIS_INCREMENTAL_HYDRATION_ENABLED, InputSignalNode as ɵInputSignalNode, JSACTION_BLOCK_ELEMENT_MAP as ɵJSACTION_BLOCK_ELEMENT_MAP, LContext as ɵLContext, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, PERFORMANCE_MARK_PREFIX as ɵPERFORMANCE_MARK_PREFIX, PROVIDED_NG_ZONE as ɵPROVIDED_NG_ZONE, PendingTasksInternal as ɵPendingTasksInternal, PipeDef as ɵPipeDef, ProfilerEvent as ɵProfilerEvent, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, ResourceImpl as ɵResourceImpl, RuntimeError as ɵRuntimeError, RuntimeErrorCode as ɵRuntimeErrorCode, SHARED_STYLES_HOST as ɵSHARED_STYLES_HOST, SIGNAL as ɵSIGNAL, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, TimerScheduler as ɵTimerScheduler, USE_PENDING_TASKS as ɵUSE_PENDING_TASKS, ViewRef as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allLeavingAnimations as ɵallLeavingAnimations, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, annotateForHydration as ɵannotateForHydration, ɵassertType, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, createOrReusePlatformInjector as ɵcreateOrReusePlatformInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, depsTracker as ɵdepsTracker, devModeEqual as ɵdevModeEqual, disableProfiling as ɵdisableProfiling, enableProfiling as ɵenableProfiling, encapsulateResourceError as ɵencapsulateResourceError, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getClosestComponentName as ɵgetClosestComponentName, getComponentDef as ɵgetComponentDef, getDirectives as ɵgetDirectives, getDocument as ɵgetDocument, getHostElement as ɵgetHostElement, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, getTransferState as ɵgetTransferState, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, inferTagNameFromDefinition as ɵinferTagNameFromDefinition, internalCreateApplication as ɵinternalCreateApplication, internalProvideZoneChangeDetection as ɵinternalProvideZoneChangeDetection, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isNgModule as ɵisNgModule, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, isViewDirty as ɵisViewDirty, markForRefresh as ɵmarkForRefresh, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, performanceMarkFeature as ɵperformanceMarkFeature, promiseWithResolvers as ɵpromiseWithResolvers, provideZonelessChangeDetectionInternal as ɵprovideZonelessChangeDetectionInternal, publishExternalGlobalUtil as ɵpublishExternalGlobalUtil, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetIncrementalHydrationEnabledWarnedForTests as ɵresetIncrementalHydrationEnabledWarnedForTests, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setDocument as ɵsetDocument, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, startMeasuring as ɵstartMeasuring, stopMeasuring as ɵstopMeasuring, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, truncateMiddle as ɵtruncateMiddle, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, withDomHydration as ɵwithDomHydration, withEventReplay as ɵwithEventReplay, withI18nSupport as ɵwithI18nSupport, withIncrementalHydration as ɵwithIncrementalHydration, ɵɵControlFeature, ɵɵExternalStylesFeature, __FactoryDeclaration as ɵɵFactoryDeclaration, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, __InjectableDeclaration as ɵɵInjectableDeclaration, __InjectorDeclaration as ɵɵInjectorDeclaration, __NgModuleDeclaration as ɵɵNgModuleDeclaration, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵanimateEnter, ɵɵanimateEnterListener, ɵɵanimateLeave, ɵɵanimateLeaveListener, ɵɵariaProperty, ɵɵarrowFunction, ɵɵattachSourceLocations, ɵɵattribute, ɵɵclassMap, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵconditionalBranchCreate, ɵɵconditionalCreate, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵcontrol, ɵɵcontrolCreate, ɵɵdeclareLet, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferHydrateNever, ɵɵdeferHydrateOnHover, ɵɵdeferHydrateOnIdle, ɵɵdeferHydrateOnImmediate, ɵɵdeferHydrateOnInteraction, ɵɵdeferHydrateOnTimer, ɵɵdeferHydrateOnViewport, ɵɵdeferHydrateWhen, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdefineService, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵdomElement, ɵɵdomElementContainer, ɵɵdomElementContainerEnd, ɵɵdomElementContainerStart, ɵɵdomElementEnd, ɵɵdomElementStart, ɵɵdomListener, ɵɵdomProperty, ɵɵdomTemplate, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵgetReplaceMetadataURL, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinterpolate, ɵɵinterpolate1, ɵɵinterpolate2, ɵɵinterpolate3, ɵɵinterpolate4, ɵɵinterpolate5, ɵɵinterpolate6, ɵɵinterpolate7, ɵɵinterpolate8, ɵɵinterpolateV, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareClassMetadataAsync, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵngDeclareService, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreadContextLet, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵreplaceMetadata, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstoreLet, ɵɵstyleMap, ɵɵstyleProp, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateAttribute, ɵɵviewQuery, ɵɵviewQuerySignal };
|
|
9597
|
+
export type { AfterContentChecked, AfterContentInit, AfterRenderOptions, AfterViewChecked, AfterViewInit, ApplicationConfig, AttributeDecorator, ComponentMirror, ContentChildDecorator, ContentChildFunction, ContentChildrenDecorator, CreateComputedOptions, DoBootstrap, DoCheck, ForwardRefFn, GetTestability, HostDecorator, IdleService, ImportProvidersSource, InjectDecorator, InjectableDecorator, InjectableProvider, InputFunction, InputOptions, InputOptionsWithTransform, InputOptionsWithoutTransform, InputSignal, InputSignalWithTransform, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDifferFactory, KeyValueChangeRecord, KeyValueChanges, KeyValueDiffer, KeyValueDifferFactory, ModelFunction, ModelOptions, ModelSignal, NgIterable, NgZoneOptions, OnChanges, OnDestroy, OnInit, OptionalDecorator, PipeTransform, ResponseInit, SelfDecorator, ServiceDecorator, SimpleChanges, SkipSelfDecorator, StateKey, TrackByFunction, ViewChildDecorator, ViewChildFunction, ViewChildrenDecorator, AcxComponentDebugMetadata as ɵAcxComponentDebugMetadata, AcxDirectiveDebugMetadata as ɵAcxDirectiveDebugMetadata, AngularComponentDebugMetadata as ɵAngularComponentDebugMetadata, AngularDirectiveDebugMetadata as ɵAngularDirectiveDebugMetadata, BaseDirectiveDebugMetadata as ɵBaseDirectiveDebugMetadata, ControlFlowBlock as ɵControlFlowBlock, DeferBlockData as ɵDeferBlockData, DirectiveDebugMetadata as ɵDirectiveDebugMetadata, ɵFirstAvailable, ɵFirstAvailableSignal, ForLoopBlockData as ɵForLoopBlockData, FrameworkAgnosticGlobalUtils as ɵFrameworkAgnosticGlobalUtils, GlobalDevModeUtils as ɵGlobalDevModeUtils, HydratedNode as ɵHydratedNode, HydrationInfo as ɵHydrationInfo, ImageConfig as ɵImageConfig, InjectorProfilerContext as ɵInjectorProfilerContext, NgModuleDef as ɵNgModuleDef, NgModuleTransitiveScopes as ɵNgModuleTransitiveScopes, NgModuleType as ɵNgModuleType, Profiler as ɵProfiler, ProviderRecord as ɵProviderRecord, SafeHtml as ɵSafeHtml, SafeResourceUrl as ɵSafeResourceUrl, SafeScript as ɵSafeScript, SafeStyle as ɵSafeStyle, SafeUrl as ɵSafeUrl, SafeValue as ɵSafeValue, SharedStylesHost as ɵSharedStylesHost, ɵUnwrapDirectiveSignalInputs, WizComponentDebugMetadata as ɵWizComponentDebugMetadata };
|