@angular/core 14.0.0-next.0 → 14.0.0-next.11
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/core.d.ts +202 -132
- package/esm2020/src/application_init.mjs +4 -3
- package/esm2020/src/application_module.mjs +5 -104
- package/esm2020/src/application_ref.mjs +6 -24
- package/esm2020/src/application_tokens.mjs +14 -2
- package/esm2020/src/change_detection/change_detection.mjs +2 -3
- package/esm2020/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/core.mjs +2 -2
- package/esm2020/src/core_private_export.mjs +2 -1
- package/esm2020/src/core_render3_private_export.mjs +4 -3
- package/esm2020/src/debug/debug_node.mjs +137 -53
- package/esm2020/src/di/injector_compatibility.mjs +2 -2
- package/esm2020/src/di/r3_injector.mjs +5 -15
- package/esm2020/src/di/reflective_injector.mjs +1 -1
- package/esm2020/src/di/reflective_provider.mjs +4 -4
- package/esm2020/src/errors.mjs +22 -5
- package/esm2020/src/i18n/tokens.mjs +39 -3
- package/esm2020/src/linker/compiler.mjs +4 -3
- package/esm2020/src/linker/ng_module_factory_loader.mjs +2 -2
- package/esm2020/src/linker/ng_module_registration.mjs +55 -0
- package/esm2020/src/linker/template_ref.mjs +3 -3
- package/esm2020/src/linker/view_container_ref.mjs +35 -8
- package/esm2020/src/metadata/directives.mjs +14 -5
- package/esm2020/src/reflection/platform_reflection_capabilities.mjs +1 -1
- package/esm2020/src/reflection/reflection_capabilities.mjs +1 -37
- package/esm2020/src/render3/component.mjs +3 -3
- package/esm2020/src/render3/component_ref.mjs +22 -26
- package/esm2020/src/render3/context_discovery.mjs +34 -30
- package/esm2020/src/render3/definition.mjs +3 -1
- package/esm2020/src/render3/di.mjs +177 -97
- package/esm2020/src/render3/hooks.mjs +3 -3
- package/esm2020/src/render3/i18n/i18n_parse.mjs +3 -3
- package/esm2020/src/render3/index.mjs +2 -2
- package/esm2020/src/render3/instructions/element.mjs +28 -7
- package/esm2020/src/render3/instructions/element_container.mjs +7 -1
- package/esm2020/src/render3/instructions/lview_debug.mjs +7 -4
- package/esm2020/src/render3/instructions/shared.mjs +26 -12
- package/esm2020/src/render3/interfaces/context.mjs +35 -2
- package/esm2020/src/render3/interfaces/definition.mjs +1 -1
- package/esm2020/src/render3/interfaces/injector.mjs +1 -1
- package/esm2020/src/render3/interfaces/lview_tracking.mjs +33 -0
- package/esm2020/src/render3/interfaces/renderer_dom.mjs +1 -1
- package/esm2020/src/render3/interfaces/view.mjs +4 -2
- package/esm2020/src/render3/jit/directive.mjs +5 -2
- package/esm2020/src/render3/jit/environment.mjs +4 -1
- package/esm2020/src/render3/jit/module.mjs +7 -1
- package/esm2020/src/render3/jit/module_patch.mjs +11 -0
- package/esm2020/src/render3/jit/pipe.mjs +5 -2
- package/esm2020/src/render3/ng_module_ref.mjs +1 -29
- package/esm2020/src/render3/node_manipulation.mjs +12 -3
- package/esm2020/src/render3/state.mjs +16 -2
- package/esm2020/src/render3/styling/styling_parser.mjs +2 -2
- package/esm2020/src/render3/util/discovery_utils.mjs +33 -22
- package/esm2020/src/util/coercion.mjs +12 -0
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/fake_async.mjs +3 -2
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed.mjs +13 -2
- package/fesm2015/core.mjs +798 -604
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +15 -3
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +798 -597
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +15 -3
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/migrations/entry-components/util.js +2 -2
- package/schematics/migrations/{router-link-empty-expression → path-match-type}/index.d.ts +2 -2
- package/schematics/migrations/path-match-type/index.js +95 -0
- package/schematics/migrations/path-match-type/transform.d.ts +19 -0
- package/schematics/migrations/path-match-type/transform.js +48 -0
- package/schematics/migrations/path-match-type/update_recorder.d.ts +18 -0
- package/schematics/migrations/path-match-type/update_recorder.js +20 -0
- package/schematics/migrations/path-match-type/util.d.ts +11 -0
- package/schematics/migrations/path-match-type/util.js +106 -0
- package/schematics/migrations/typed-forms/index.d.ts +1 -5
- package/schematics/migrations/typed-forms/index.js +12 -34
- package/schematics/migrations/typed-forms/util.d.ts +8 -10
- package/schematics/migrations/typed-forms/util.js +99 -52
- package/schematics/migrations.json +11 -16
- package/schematics/utils/import_manager.js +11 -22
- package/schematics/utils/typescript/imports.js +5 -9
- package/schematics/utils/typescript/parse_tsconfig.js +6 -2
- package/schematics/utils/typescript/symbol.js +4 -3
- package/testing/testing.d.ts +3 -2
- package/esm2020/src/di/util.mjs +0 -51
- package/esm2020/src/linker/ng_module_factory_registration.mjs +0 -59
- package/esm2020/src/reflection/reflection.mjs +0 -16
- package/esm2020/src/reflection/reflector.mjs +0 -56
- package/esm2020/src/reflection/types.mjs +0 -9
- package/schematics/migrations/router-link-empty-expression/analyze_template.d.ts +0 -11
- package/schematics/migrations/router-link-empty-expression/analyze_template.js +0 -34
- package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.d.ts +0 -20
- package/schematics/migrations/router-link-empty-expression/angular/html_routerlink_empty_expr_visitor.js +0 -47
- package/schematics/migrations/router-link-empty-expression/index.js +0 -170
- package/schematics/migrations/testbed-teardown/index.d.ts +0 -11
- package/schematics/migrations/testbed-teardown/index.js +0 -92
- package/schematics/migrations/testbed-teardown/util.d.ts +0 -35
- package/schematics/migrations/testbed-teardown/util.js +0 -188
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.11
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -166,6 +166,13 @@ export declare interface AfterViewInit {
|
|
|
166
166
|
*/
|
|
167
167
|
export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* A [DI token](guide/glossary#di-token "DI token definition") that indicates which animations
|
|
171
|
+
* module has been loaded.
|
|
172
|
+
* @publicApi
|
|
173
|
+
*/
|
|
174
|
+
export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
|
175
|
+
|
|
169
176
|
/**
|
|
170
177
|
* A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
|
|
171
178
|
* be called for every component that is bootstrapped.
|
|
@@ -283,12 +290,9 @@ export declare class ApplicationInitStatus {
|
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
/**
|
|
286
|
-
* Configures the root injector for an app with
|
|
287
|
-
* providers of `@angular/core` dependencies that `ApplicationRef` needs
|
|
288
|
-
* to bootstrap components.
|
|
289
|
-
*
|
|
290
293
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
291
|
-
* `AppModule` when you create a new app with the CLI `new` command.
|
|
294
|
+
* `AppModule` when you create a new app with the CLI `new` command. Eagerly injects
|
|
295
|
+
* `ApplicationRef` to instantiate it.
|
|
292
296
|
*
|
|
293
297
|
* @publicApi
|
|
294
298
|
*/
|
|
@@ -1702,13 +1706,18 @@ export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
|
|
|
1702
1706
|
* @see [Basics of testing components](guide/testing-components-basics)
|
|
1703
1707
|
* @see [Testing utility APIs](guide/testing-utility-apis)
|
|
1704
1708
|
*/
|
|
1705
|
-
export declare
|
|
1709
|
+
export declare class DebugElement extends DebugNode {
|
|
1710
|
+
constructor(nativeNode: Element);
|
|
1711
|
+
/**
|
|
1712
|
+
* The underlying DOM element at the root of the component.
|
|
1713
|
+
*/
|
|
1714
|
+
get nativeElement(): any;
|
|
1706
1715
|
/**
|
|
1707
1716
|
* The element tag name, if it is an element.
|
|
1708
1717
|
*/
|
|
1709
|
-
|
|
1718
|
+
get name(): string;
|
|
1710
1719
|
/**
|
|
1711
|
-
*
|
|
1720
|
+
* Gets a map of property names to property values for an element.
|
|
1712
1721
|
*
|
|
1713
1722
|
* This map includes:
|
|
1714
1723
|
* - Regular property bindings (e.g. `[id]="id"`)
|
|
@@ -1719,13 +1728,23 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1719
1728
|
* - input property bindings (e.g. `[myCustomInput]="value"`)
|
|
1720
1729
|
* - attribute bindings (e.g. `[attr.role]="menu"`)
|
|
1721
1730
|
*/
|
|
1722
|
-
|
|
1731
|
+
get properties(): {
|
|
1723
1732
|
[key: string]: any;
|
|
1724
1733
|
};
|
|
1725
1734
|
/**
|
|
1726
1735
|
* A map of attribute names to attribute values for an element.
|
|
1727
1736
|
*/
|
|
1728
|
-
|
|
1737
|
+
get attributes(): {
|
|
1738
|
+
[key: string]: string | null;
|
|
1739
|
+
};
|
|
1740
|
+
/**
|
|
1741
|
+
* The inline styles of the DOM element.
|
|
1742
|
+
*
|
|
1743
|
+
* Will be `null` if there is no `style` property on the underlying DOM element.
|
|
1744
|
+
*
|
|
1745
|
+
* @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
|
|
1746
|
+
*/
|
|
1747
|
+
get styles(): {
|
|
1729
1748
|
[key: string]: string | null;
|
|
1730
1749
|
};
|
|
1731
1750
|
/**
|
|
@@ -1738,33 +1757,19 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1738
1757
|
*
|
|
1739
1758
|
* @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)
|
|
1740
1759
|
*/
|
|
1741
|
-
|
|
1760
|
+
get classes(): {
|
|
1742
1761
|
[key: string]: boolean;
|
|
1743
1762
|
};
|
|
1744
|
-
/**
|
|
1745
|
-
* The inline styles of the DOM element.
|
|
1746
|
-
*
|
|
1747
|
-
* Will be `null` if there is no `style` property on the underlying DOM element.
|
|
1748
|
-
*
|
|
1749
|
-
* @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
|
|
1750
|
-
*/
|
|
1751
|
-
readonly styles: {
|
|
1752
|
-
[key: string]: string | null;
|
|
1753
|
-
};
|
|
1754
1763
|
/**
|
|
1755
1764
|
* The `childNodes` of the DOM element as a `DebugNode` array.
|
|
1756
1765
|
*
|
|
1757
1766
|
* @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)
|
|
1758
1767
|
*/
|
|
1759
|
-
|
|
1760
|
-
/**
|
|
1761
|
-
* The underlying DOM element at the root of the component.
|
|
1762
|
-
*/
|
|
1763
|
-
readonly nativeElement: any;
|
|
1768
|
+
get childNodes(): DebugNode[];
|
|
1764
1769
|
/**
|
|
1765
1770
|
* The immediate `DebugElement` children. Walk the tree by descending through `children`.
|
|
1766
1771
|
*/
|
|
1767
|
-
|
|
1772
|
+
get children(): DebugElement[];
|
|
1768
1773
|
/**
|
|
1769
1774
|
* @returns the first `DebugElement` that matches the predicate at any depth in the subtree.
|
|
1770
1775
|
*/
|
|
@@ -1789,16 +1794,9 @@ export declare interface DebugElement extends DebugNode {
|
|
|
1789
1794
|
*
|
|
1790
1795
|
* @see [Testing components scenarios](guide/testing-components-scenarios#trigger-event-handler)
|
|
1791
1796
|
*/
|
|
1792
|
-
triggerEventHandler(eventName: string, eventObj
|
|
1797
|
+
triggerEventHandler(eventName: string, eventObj?: any): void;
|
|
1793
1798
|
}
|
|
1794
1799
|
|
|
1795
|
-
/**
|
|
1796
|
-
* @publicApi
|
|
1797
|
-
*/
|
|
1798
|
-
export declare const DebugElement: {
|
|
1799
|
-
new (...args: any[]): DebugElement;
|
|
1800
|
-
};
|
|
1801
|
-
|
|
1802
1800
|
/**
|
|
1803
1801
|
* @publicApi
|
|
1804
1802
|
*/
|
|
@@ -1811,28 +1809,24 @@ export declare class DebugEventListener {
|
|
|
1811
1809
|
/**
|
|
1812
1810
|
* @publicApi
|
|
1813
1811
|
*/
|
|
1814
|
-
export declare
|
|
1812
|
+
export declare class DebugNode {
|
|
1815
1813
|
/**
|
|
1816
|
-
* The
|
|
1817
|
-
* properties.
|
|
1814
|
+
* The underlying DOM node.
|
|
1818
1815
|
*/
|
|
1819
|
-
readonly
|
|
1816
|
+
readonly nativeNode: any;
|
|
1817
|
+
constructor(nativeNode: Node);
|
|
1820
1818
|
/**
|
|
1821
1819
|
* The `DebugElement` parent. Will be `null` if this is the root element.
|
|
1822
1820
|
*/
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* The underlying DOM node.
|
|
1826
|
-
*/
|
|
1827
|
-
readonly nativeNode: any;
|
|
1821
|
+
get parent(): DebugElement | null;
|
|
1828
1822
|
/**
|
|
1829
1823
|
* The host dependency injector. For example, the root element's component instance injector.
|
|
1830
1824
|
*/
|
|
1831
|
-
|
|
1825
|
+
get injector(): Injector;
|
|
1832
1826
|
/**
|
|
1833
1827
|
* The element's own component instance, if it has one.
|
|
1834
1828
|
*/
|
|
1835
|
-
|
|
1829
|
+
get componentInstance(): any;
|
|
1836
1830
|
/**
|
|
1837
1831
|
* An object that provides parent context for this element. Often an ancestor component instance
|
|
1838
1832
|
* that governs this element.
|
|
@@ -1841,28 +1835,26 @@ export declare interface DebugNode {
|
|
|
1841
1835
|
* property is the value of the row instance value. For example, the `hero` in `*ngFor="let hero
|
|
1842
1836
|
* of heroes"`.
|
|
1843
1837
|
*/
|
|
1844
|
-
|
|
1838
|
+
get context(): any;
|
|
1839
|
+
/**
|
|
1840
|
+
* The callbacks attached to the component's @Output properties and/or the element's event
|
|
1841
|
+
* properties.
|
|
1842
|
+
*/
|
|
1843
|
+
get listeners(): DebugEventListener[];
|
|
1845
1844
|
/**
|
|
1846
1845
|
* Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local
|
|
1847
1846
|
* variable name.
|
|
1848
1847
|
*/
|
|
1849
|
-
|
|
1848
|
+
get references(): {
|
|
1850
1849
|
[key: string]: any;
|
|
1851
1850
|
};
|
|
1852
1851
|
/**
|
|
1853
1852
|
* This component's injector lookup tokens. Includes the component itself plus the tokens that the
|
|
1854
1853
|
* component lists in its providers metadata.
|
|
1855
1854
|
*/
|
|
1856
|
-
|
|
1855
|
+
get providerTokens(): any[];
|
|
1857
1856
|
}
|
|
1858
1857
|
|
|
1859
|
-
/**
|
|
1860
|
-
* @publicApi
|
|
1861
|
-
*/
|
|
1862
|
-
export declare const DebugNode: {
|
|
1863
|
-
new (...args: any[]): DebugNode;
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
1858
|
/**
|
|
1867
1859
|
* A logical node which comprise into `LView`s.
|
|
1868
1860
|
*
|
|
@@ -2440,6 +2432,8 @@ export declare class ElementRef<T = any> {
|
|
|
2440
2432
|
constructor(nativeElement: T);
|
|
2441
2433
|
}
|
|
2442
2434
|
|
|
2435
|
+
declare const EMBEDDED_VIEW_INJECTOR = 21;
|
|
2436
|
+
|
|
2443
2437
|
/**
|
|
2444
2438
|
* Represents an Angular [view](guide/glossary#view) in a view container.
|
|
2445
2439
|
* An [embedded view](guide/glossary#view-tree) can be referenced from a component
|
|
@@ -2779,7 +2773,7 @@ export declare interface ForwardRefFn {
|
|
|
2779
2773
|
/**
|
|
2780
2774
|
* @publicApi
|
|
2781
2775
|
*/
|
|
2782
|
-
declare
|
|
2776
|
+
declare function getDebugNode(nativeNode: any): DebugNode | null;
|
|
2783
2777
|
export { getDebugNode }
|
|
2784
2778
|
export { getDebugNode as ɵgetDebugNode }
|
|
2785
2779
|
|
|
@@ -3072,19 +3066,20 @@ export declare interface HostListener {
|
|
|
3072
3066
|
*
|
|
3073
3067
|
* ```
|
|
3074
3068
|
*
|
|
3075
|
-
* The following example registers another DOM event handler that listens for key-press
|
|
3069
|
+
* The following example registers another DOM event handler that listens for `Enter` key-press
|
|
3070
|
+
* events on the global `window`.
|
|
3076
3071
|
* ``` ts
|
|
3077
3072
|
* import { HostListener, Component } from "@angular/core";
|
|
3078
3073
|
*
|
|
3079
3074
|
* @Component({
|
|
3080
3075
|
* selector: 'app',
|
|
3081
|
-
* template: `<h1>Hello, you have pressed
|
|
3082
|
-
* increment the counter.
|
|
3076
|
+
* template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key
|
|
3077
|
+
* to increment the counter.
|
|
3083
3078
|
* <button (click)="resetCounter()">Reset Counter</button>`
|
|
3084
3079
|
* })
|
|
3085
3080
|
* class AppComponent {
|
|
3086
3081
|
* counter = 0;
|
|
3087
|
-
* @HostListener('window:keydown', ['$event'])
|
|
3082
|
+
* @HostListener('window:keydown.enter', ['$event'])
|
|
3088
3083
|
* handleKeyDown(event: KeyboardEvent) {
|
|
3089
3084
|
* this.counter++;
|
|
3090
3085
|
* }
|
|
@@ -3093,6 +3088,14 @@ export declare interface HostListener {
|
|
|
3093
3088
|
* }
|
|
3094
3089
|
* }
|
|
3095
3090
|
* ```
|
|
3091
|
+
* The list of valid key names for `keydown` and `keyup` events
|
|
3092
|
+
* can be found here:
|
|
3093
|
+
* https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values
|
|
3094
|
+
*
|
|
3095
|
+
* Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.
|
|
3096
|
+
*
|
|
3097
|
+
* The global target names that can be used to prefix an event name are
|
|
3098
|
+
* `document:`, `window:` and `body:`.
|
|
3096
3099
|
*
|
|
3097
3100
|
* @Annotation
|
|
3098
3101
|
* @publicApi
|
|
@@ -3339,6 +3342,8 @@ declare const enum IcuType {
|
|
|
3339
3342
|
plural = 1
|
|
3340
3343
|
}
|
|
3341
3344
|
|
|
3345
|
+
declare const ID = 20;
|
|
3346
|
+
|
|
3342
3347
|
/**
|
|
3343
3348
|
* This array contains information about input properties that
|
|
3344
3349
|
* need to be set once from attribute data. It's ordered by
|
|
@@ -4519,6 +4524,13 @@ declare interface LView extends Array<any> {
|
|
|
4519
4524
|
* are not `Dirty`/`CheckAlways`.
|
|
4520
4525
|
*/
|
|
4521
4526
|
[TRANSPLANTED_VIEWS_TO_REFRESH]: number;
|
|
4527
|
+
/** Unique ID of the view. Used for `__ngContext__` lookups in the `LView` registry. */
|
|
4528
|
+
[ID]: number;
|
|
4529
|
+
/**
|
|
4530
|
+
* Optional injector assigned to embedded views that takes
|
|
4531
|
+
* precedence over the element and module injectors.
|
|
4532
|
+
*/
|
|
4533
|
+
readonly [EMBEDDED_VIEW_INJECTOR]: Injector | null;
|
|
4522
4534
|
}
|
|
4523
4535
|
|
|
4524
4536
|
/**
|
|
@@ -4699,12 +4711,14 @@ declare const enum LViewFlags {
|
|
|
4699
4711
|
* declaration was dirty.
|
|
4700
4712
|
*/
|
|
4701
4713
|
RefreshTransplantedView = 1024,
|
|
4714
|
+
/** Indicates that the view **or any of its ancestors** have an embedded view injector. */
|
|
4715
|
+
HasEmbeddedViewInjector = 2048,
|
|
4702
4716
|
/**
|
|
4703
4717
|
* Index of the current init phase on last 21 bits
|
|
4704
4718
|
*/
|
|
4705
|
-
IndexWithinInitPhaseIncrementer =
|
|
4706
|
-
IndexWithinInitPhaseShift =
|
|
4707
|
-
IndexWithinInitPhaseReset =
|
|
4719
|
+
IndexWithinInitPhaseIncrementer = 4096,
|
|
4720
|
+
IndexWithinInitPhaseShift = 12,
|
|
4721
|
+
IndexWithinInitPhaseReset = 4095
|
|
4708
4722
|
}
|
|
4709
4723
|
|
|
4710
4724
|
/**
|
|
@@ -5583,33 +5597,14 @@ export declare class PlatformRef {
|
|
|
5583
5597
|
private _destroyListeners;
|
|
5584
5598
|
private _destroyed;
|
|
5585
5599
|
/**
|
|
5586
|
-
* Creates an instance of an `@NgModule` for the given platform
|
|
5587
|
-
*
|
|
5588
|
-
* @usageNotes
|
|
5589
|
-
*
|
|
5590
|
-
* The following example creates the NgModule for a browser platform.
|
|
5591
|
-
*
|
|
5592
|
-
* ```typescript
|
|
5593
|
-
* my_module.ts:
|
|
5594
|
-
*
|
|
5595
|
-
* @NgModule({
|
|
5596
|
-
* imports: [BrowserModule]
|
|
5597
|
-
* })
|
|
5598
|
-
* class MyModule {}
|
|
5599
|
-
*
|
|
5600
|
-
* main.ts:
|
|
5601
|
-
* import {MyModuleNgFactory} from './my_module.ngfactory';
|
|
5602
|
-
* import {platformBrowser} from '@angular/platform-browser';
|
|
5603
|
-
*
|
|
5604
|
-
* let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);
|
|
5605
|
-
* ```
|
|
5600
|
+
* Creates an instance of an `@NgModule` for the given platform.
|
|
5606
5601
|
*
|
|
5607
5602
|
* @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function
|
|
5608
5603
|
* argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.
|
|
5609
5604
|
*/
|
|
5610
5605
|
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions): Promise<NgModuleRef<M>>;
|
|
5611
5606
|
/**
|
|
5612
|
-
* Creates an instance of an `@NgModule` for a given platform
|
|
5607
|
+
* Creates an instance of an `@NgModule` for a given platform.
|
|
5613
5608
|
*
|
|
5614
5609
|
* @usageNotes
|
|
5615
5610
|
* ### Simple Example
|
|
@@ -5646,12 +5641,8 @@ export declare class PlatformRef {
|
|
|
5646
5641
|
}
|
|
5647
5642
|
|
|
5648
5643
|
declare interface PlatformReflectionCapabilities {
|
|
5649
|
-
isReflectionEnabled(): boolean;
|
|
5650
5644
|
factory(type: Type<any>): Function;
|
|
5651
5645
|
hasLifecycleHook(type: any, lcProperty: string): boolean;
|
|
5652
|
-
guards(type: any): {
|
|
5653
|
-
[key: string]: any;
|
|
5654
|
-
};
|
|
5655
5646
|
/**
|
|
5656
5647
|
* Return a list of annotations/types for constructor parameters
|
|
5657
5648
|
*/
|
|
@@ -5666,13 +5657,6 @@ declare interface PlatformReflectionCapabilities {
|
|
|
5666
5657
|
propMetadata(typeOrFunc: Type<any>): {
|
|
5667
5658
|
[key: string]: any[];
|
|
5668
5659
|
};
|
|
5669
|
-
getter(name: string): ɵGetterFn;
|
|
5670
|
-
setter(name: string): ɵSetterFn;
|
|
5671
|
-
method(name: string): ɵMethodFn;
|
|
5672
|
-
importUri(type: Type<any>): string;
|
|
5673
|
-
resourceUri(type: Type<any>): string;
|
|
5674
|
-
resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
|
|
5675
|
-
resolveEnum(enumIdentifier: any, name: string): any;
|
|
5676
5660
|
}
|
|
5677
5661
|
|
|
5678
5662
|
/**
|
|
@@ -6028,6 +6012,7 @@ declare interface R3DeclareDirectiveFacade {
|
|
|
6028
6012
|
exportAs?: string[];
|
|
6029
6013
|
usesInheritance?: boolean;
|
|
6030
6014
|
usesOnChanges?: boolean;
|
|
6015
|
+
isStandalone?: boolean;
|
|
6031
6016
|
}
|
|
6032
6017
|
|
|
6033
6018
|
declare interface R3DeclareFactoryFacade {
|
|
@@ -6449,6 +6434,7 @@ declare interface RElement extends RNode {
|
|
|
6449
6434
|
style: RCssStyleDeclaration;
|
|
6450
6435
|
classList: RDomTokenList;
|
|
6451
6436
|
className: string;
|
|
6437
|
+
tagName: string;
|
|
6452
6438
|
textContent: string | null;
|
|
6453
6439
|
setAttribute(name: string, value: string | TrustedHTML | TrustedScript | TrustedScriptURL): void;
|
|
6454
6440
|
removeAttribute(name: string): void;
|
|
@@ -7333,9 +7319,10 @@ export declare abstract class TemplateRef<C> {
|
|
|
7333
7319
|
* and attaches it to the view container.
|
|
7334
7320
|
* @param context The data-binding context of the embedded view, as declared
|
|
7335
7321
|
* in the `<ng-template>` usage.
|
|
7322
|
+
* @param injector Injector to be used within the embedded view.
|
|
7336
7323
|
* @returns The new embedded view object.
|
|
7337
7324
|
*/
|
|
7338
|
-
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
|
7325
|
+
abstract createEmbeddedView(context: C, injector?: Injector): EmbeddedViewRef<C>;
|
|
7339
7326
|
}
|
|
7340
7327
|
|
|
7341
7328
|
/**
|
|
@@ -9013,6 +9000,23 @@ export declare abstract class ViewContainerRef {
|
|
|
9013
9000
|
* @returns The number of views.
|
|
9014
9001
|
*/
|
|
9015
9002
|
abstract get length(): number;
|
|
9003
|
+
/**
|
|
9004
|
+
* Instantiates an embedded view and inserts it
|
|
9005
|
+
* into this container.
|
|
9006
|
+
* @param templateRef The HTML template that defines the view.
|
|
9007
|
+
* @param context The data-binding context of the embedded view, as declared
|
|
9008
|
+
* in the `<ng-template>` usage.
|
|
9009
|
+
* @param options Extra configuration for the created view. Includes:
|
|
9010
|
+
* * index: The 0-based index at which to insert the new view into this container.
|
|
9011
|
+
* If not specified, appends the new view as the last entry.
|
|
9012
|
+
* * injector: Injector to be used within the embedded view.
|
|
9013
|
+
*
|
|
9014
|
+
* @returns The `ViewRef` instance for the newly created view.
|
|
9015
|
+
*/
|
|
9016
|
+
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, options?: {
|
|
9017
|
+
index?: number;
|
|
9018
|
+
injector?: Injector;
|
|
9019
|
+
}): EmbeddedViewRef<C>;
|
|
9016
9020
|
/**
|
|
9017
9021
|
* Instantiates an embedded view and inserts it
|
|
9018
9022
|
* into this container.
|
|
@@ -9455,6 +9459,10 @@ export declare enum ɵChangeDetectorStatus {
|
|
|
9455
9459
|
|
|
9456
9460
|
export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
|
|
9457
9461
|
|
|
9462
|
+
|
|
9463
|
+
/** Coerces a value (typically a string) to a boolean. */
|
|
9464
|
+
export declare function ɵcoerceToBoolean(value: unknown): boolean;
|
|
9465
|
+
|
|
9458
9466
|
/**
|
|
9459
9467
|
* Compile an Angular component according to its decorator metadata, and patch the resulting
|
|
9460
9468
|
* component def (ɵcmp) onto the component type.
|
|
@@ -9756,6 +9764,10 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
9756
9764
|
* Name under which the directive is exported (for use with local references in template)
|
|
9757
9765
|
*/
|
|
9758
9766
|
readonly exportAs: string[] | null;
|
|
9767
|
+
/**
|
|
9768
|
+
* Whether this directive (or component) is standalone.
|
|
9769
|
+
*/
|
|
9770
|
+
readonly standalone: boolean;
|
|
9759
9771
|
/**
|
|
9760
9772
|
* Factory function used to create a new directive instance. Will be null initially.
|
|
9761
9773
|
* Populated when the factory is first requested by directive instantiation logic.
|
|
@@ -9802,7 +9814,7 @@ export declare function ɵfindLocaleData(locale: string): any;
|
|
|
9802
9814
|
*/
|
|
9803
9815
|
export declare function ɵflushModuleScopingQueueAsMuchAsPossible(): void;
|
|
9804
9816
|
|
|
9805
|
-
export declare
|
|
9817
|
+
export declare function ɵgetDebugNodeR2(_nativeNode: any): DebugNode | null;
|
|
9806
9818
|
|
|
9807
9819
|
/**
|
|
9808
9820
|
* Retrieves directive instances associated with a given DOM node. Does not include
|
|
@@ -9897,8 +9909,6 @@ export declare function ɵgetLocalePluralCase(locale: string): (value: number) =
|
|
|
9897
9909
|
|
|
9898
9910
|
export declare function ɵgetSanitizationBypassType(value: any): ɵBypassType | null;
|
|
9899
9911
|
|
|
9900
|
-
export declare type ɵGetterFn = (obj: any) => any;
|
|
9901
|
-
|
|
9902
9912
|
|
|
9903
9913
|
export declare const ɵglobal: any;
|
|
9904
9914
|
|
|
@@ -9958,11 +9968,11 @@ export declare const ɵivyEnabled = true;
|
|
|
9958
9968
|
* function. The component, element and each directive instance will share the same instance
|
|
9959
9969
|
* of the context.
|
|
9960
9970
|
*/
|
|
9961
|
-
export declare
|
|
9971
|
+
export declare class ɵLContext {
|
|
9962
9972
|
/**
|
|
9963
|
-
*
|
|
9973
|
+
* ID of the component's parent view data.
|
|
9964
9974
|
*/
|
|
9965
|
-
|
|
9975
|
+
private lViewId;
|
|
9966
9976
|
/**
|
|
9967
9977
|
* The index instance of the node.
|
|
9968
9978
|
*/
|
|
@@ -9980,12 +9990,27 @@ export declare interface ɵLContext {
|
|
|
9980
9990
|
*/
|
|
9981
9991
|
directives: any[] | null | undefined;
|
|
9982
9992
|
/**
|
|
9983
|
-
* The map of local references (local reference name => element or directive instance) that
|
|
9984
|
-
* on this element.
|
|
9993
|
+
* The map of local references (local reference name => element or directive instance) that
|
|
9994
|
+
* exist on this element.
|
|
9985
9995
|
*/
|
|
9986
9996
|
localRefs: {
|
|
9987
9997
|
[key: string]: any;
|
|
9988
9998
|
} | null | undefined;
|
|
9999
|
+
/** Component's parent view data. */
|
|
10000
|
+
get lView(): LView | null;
|
|
10001
|
+
constructor(
|
|
10002
|
+
/**
|
|
10003
|
+
* ID of the component's parent view data.
|
|
10004
|
+
*/
|
|
10005
|
+
lViewId: number,
|
|
10006
|
+
/**
|
|
10007
|
+
* The index instance of the node.
|
|
10008
|
+
*/
|
|
10009
|
+
nodeIndex: number,
|
|
10010
|
+
/**
|
|
10011
|
+
* The instance of the DOM node that is attached to the lNode.
|
|
10012
|
+
*/
|
|
10013
|
+
native: RNode);
|
|
9989
10014
|
}
|
|
9990
10015
|
|
|
9991
10016
|
/**
|
|
@@ -10051,8 +10076,6 @@ export declare function ɵmakeDecorator<T>(name: string, props?: (...args: any[]
|
|
|
10051
10076
|
*/
|
|
10052
10077
|
export declare function ɵmarkDirty(component: {}): void;
|
|
10053
10078
|
|
|
10054
|
-
export declare type ɵMethodFn = (obj: any, args: any[]) => any;
|
|
10055
|
-
|
|
10056
10079
|
|
|
10057
10080
|
export declare const ɵNG_COMP_DEF: string;
|
|
10058
10081
|
|
|
@@ -10220,6 +10243,10 @@ export declare interface ɵPipeDef<T> {
|
|
|
10220
10243
|
* state of the pipe.
|
|
10221
10244
|
*/
|
|
10222
10245
|
readonly pure: boolean;
|
|
10246
|
+
/**
|
|
10247
|
+
* Whether this pipe is standalone.
|
|
10248
|
+
*/
|
|
10249
|
+
readonly standalone: boolean;
|
|
10223
10250
|
onDestroy: (() => void) | null;
|
|
10224
10251
|
}
|
|
10225
10252
|
|
|
@@ -10358,7 +10385,6 @@ export declare function ɵpublishGlobalUtil(name: string, fn: Function): void;
|
|
|
10358
10385
|
export declare class ɵReflectionCapabilities implements PlatformReflectionCapabilities {
|
|
10359
10386
|
private _reflect;
|
|
10360
10387
|
constructor(reflect?: any);
|
|
10361
|
-
isReflectionEnabled(): boolean;
|
|
10362
10388
|
factory<T>(t: Type<T>): (args: any[]) => T;
|
|
10363
10389
|
private _ownParameters;
|
|
10364
10390
|
parameters(type: Type<any>): any[][];
|
|
@@ -10372,16 +10398,6 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
10372
10398
|
[key: string]: any[];
|
|
10373
10399
|
};
|
|
10374
10400
|
hasLifecycleHook(type: any, lcProperty: string): boolean;
|
|
10375
|
-
guards(type: any): {
|
|
10376
|
-
[key: string]: any;
|
|
10377
|
-
};
|
|
10378
|
-
getter(name: string): ɵGetterFn;
|
|
10379
|
-
setter(name: string): ɵSetterFn;
|
|
10380
|
-
method(name: string): ɵMethodFn;
|
|
10381
|
-
importUri(type: any): string;
|
|
10382
|
-
resourceUri(type: any): string;
|
|
10383
|
-
resolveIdentifier(name: string, moduleUrl: string, members: string[], runtime: any): any;
|
|
10384
|
-
resolveEnum(enumIdentifier: any, name: string): any;
|
|
10385
10401
|
}
|
|
10386
10402
|
|
|
10387
10403
|
/**
|
|
@@ -10393,8 +10409,6 @@ export declare class ɵReflectionCapabilities implements PlatformReflectionCapab
|
|
|
10393
10409
|
*/
|
|
10394
10410
|
export declare function ɵregisterLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
|
10395
10411
|
|
|
10396
|
-
export declare function ɵregisterNgModuleType(ngModuleType: ɵNgModuleType): void;
|
|
10397
|
-
|
|
10398
10412
|
/**
|
|
10399
10413
|
* Render3 implementation of {@link viewEngine_ComponentFactory}.
|
|
10400
10414
|
*/
|
|
@@ -10525,9 +10539,24 @@ export declare function ɵresolveComponentResources(resourceResolver: (url: stri
|
|
|
10525
10539
|
text(): Promise<string>;
|
|
10526
10540
|
}>)): Promise<void>;
|
|
10527
10541
|
|
|
10528
|
-
|
|
10542
|
+
/**
|
|
10543
|
+
* Class that represents a runtime error.
|
|
10544
|
+
* Formats and outputs the error message in a consistent way.
|
|
10545
|
+
*
|
|
10546
|
+
* Example:
|
|
10547
|
+
* ```
|
|
10548
|
+
* throw new RuntimeError(
|
|
10549
|
+
* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,
|
|
10550
|
+
* ngDevMode && 'Injector has already been destroyed.');
|
|
10551
|
+
* ```
|
|
10552
|
+
*
|
|
10553
|
+
* Note: the `message` argument contains a descriptive error message as a string in development
|
|
10554
|
+
* mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the
|
|
10555
|
+
* `message` argument becomes `false`, thus we account for it in the typings and the runtime logic.
|
|
10556
|
+
*/
|
|
10557
|
+
export declare class ɵRuntimeError<T extends number = RuntimeErrorCode> extends Error {
|
|
10529
10558
|
code: T;
|
|
10530
|
-
constructor(code: T, message: string);
|
|
10559
|
+
constructor(code: T, message: null | false | string);
|
|
10531
10560
|
}
|
|
10532
10561
|
|
|
10533
10562
|
/**
|
|
@@ -10578,6 +10607,15 @@ export declare interface ɵSafeUrl extends ɵSafeValue {
|
|
|
10578
10607
|
export declare interface ɵSafeValue {
|
|
10579
10608
|
}
|
|
10580
10609
|
|
|
10610
|
+
/**
|
|
10611
|
+
* Control whether the NgModule registration system enforces that each NgModule type registered has
|
|
10612
|
+
* a unique id.
|
|
10613
|
+
*
|
|
10614
|
+
* This is useful for testing as the NgModule registry cannot be properly reset between tests with
|
|
10615
|
+
* Angular's current API.
|
|
10616
|
+
*/
|
|
10617
|
+
export declare function ɵsetAllowDuplicateNgModuleIdsForTest(allowDuplicates: boolean): void;
|
|
10618
|
+
|
|
10581
10619
|
/**
|
|
10582
10620
|
* Adds decorator, constructor, and property metadata to a given type via static metadata fields
|
|
10583
10621
|
* on the type.
|
|
@@ -10613,9 +10651,6 @@ export declare function ɵsetDocument(document: Document | undefined): void;
|
|
|
10613
10651
|
*/
|
|
10614
10652
|
export declare function ɵsetLocaleId(localeId: string): void;
|
|
10615
10653
|
|
|
10616
|
-
|
|
10617
|
-
export declare type ɵSetterFn = (obj: any, value: any) => void;
|
|
10618
|
-
|
|
10619
10654
|
/** Store a value in the `data` at a given `index`. */
|
|
10620
10655
|
export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
|
|
10621
10656
|
|
|
@@ -11805,6 +11840,10 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
|
|
|
11805
11840
|
* The set of schemas that declare elements to be allowed in the component's template.
|
|
11806
11841
|
*/
|
|
11807
11842
|
schemas?: SchemaMetadata[] | null;
|
|
11843
|
+
/**
|
|
11844
|
+
* Whether this directive/component is standalone.
|
|
11845
|
+
*/
|
|
11846
|
+
standalone?: boolean;
|
|
11808
11847
|
}): unknown;
|
|
11809
11848
|
|
|
11810
11849
|
/**
|
|
@@ -12041,6 +12080,10 @@ export declare function ɵɵdefinePipe<T>(pipeDef: {
|
|
|
12041
12080
|
type: Type<T>;
|
|
12042
12081
|
/** Whether the pipe is pure. */
|
|
12043
12082
|
pure?: boolean;
|
|
12083
|
+
/**
|
|
12084
|
+
* Whether the pipe is standalone.
|
|
12085
|
+
*/
|
|
12086
|
+
standalone?: boolean;
|
|
12044
12087
|
}): unknown;
|
|
12045
12088
|
|
|
12046
12089
|
|
|
@@ -12109,10 +12152,11 @@ export declare function ɵɵdisableBindings(): void;
|
|
|
12109
12152
|
* @param name Name of the DOM Node
|
|
12110
12153
|
* @param attrsIndex Index of the element's attributes in the `consts` array.
|
|
12111
12154
|
* @param localRefsIndex Index of the element's local references in the `consts` array.
|
|
12155
|
+
* @returns This function returns itself so that it may be chained.
|
|
12112
12156
|
*
|
|
12113
12157
|
* @codeGenApi
|
|
12114
12158
|
*/
|
|
12115
|
-
export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12159
|
+
export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelement;
|
|
12116
12160
|
|
|
12117
12161
|
/**
|
|
12118
12162
|
* Creates an empty logical container using {@link elementContainerStart}
|
|
@@ -12121,17 +12165,19 @@ export declare function ɵɵelement(index: number, name: string, attrsIndex?: nu
|
|
|
12121
12165
|
* @param index Index of the element in the LView array
|
|
12122
12166
|
* @param attrsIndex Index of the container attributes in the `consts` array.
|
|
12123
12167
|
* @param localRefsIndex Index of the container's local references in the `consts` array.
|
|
12168
|
+
* @returns This function returns itself so that it may be chained.
|
|
12124
12169
|
*
|
|
12125
12170
|
* @codeGenApi
|
|
12126
12171
|
*/
|
|
12127
|
-
export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12172
|
+
export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainer;
|
|
12128
12173
|
|
|
12129
12174
|
/**
|
|
12130
12175
|
* Mark the end of the <ng-container>.
|
|
12176
|
+
* @returns This function returns itself so that it may be chained.
|
|
12131
12177
|
*
|
|
12132
12178
|
* @codeGenApi
|
|
12133
12179
|
*/
|
|
12134
|
-
export declare function ɵɵelementContainerEnd():
|
|
12180
|
+
export declare function ɵɵelementContainerEnd(): typeof ɵɵelementContainerEnd;
|
|
12135
12181
|
|
|
12136
12182
|
/**
|
|
12137
12183
|
* Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
|
|
@@ -12140,6 +12186,7 @@ export declare function ɵɵelementContainerEnd(): void;
|
|
|
12140
12186
|
* @param index Index of the element in the LView array
|
|
12141
12187
|
* @param attrsIndex Index of the container attributes in the `consts` array.
|
|
12142
12188
|
* @param localRefsIndex Index of the container's local references in the `consts` array.
|
|
12189
|
+
* @returns This function returns itself so that it may be chained.
|
|
12143
12190
|
*
|
|
12144
12191
|
* Even if this instruction accepts a set of attributes no actual attribute values are propagated to
|
|
12145
12192
|
* the DOM (as a comment node can't have attributes). Attributes are here only for directive
|
|
@@ -12147,14 +12194,15 @@ export declare function ɵɵelementContainerEnd(): void;
|
|
|
12147
12194
|
*
|
|
12148
12195
|
* @codeGenApi
|
|
12149
12196
|
*/
|
|
12150
|
-
export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12197
|
+
export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementContainerStart;
|
|
12151
12198
|
|
|
12152
12199
|
/**
|
|
12153
12200
|
* Mark the end of the element.
|
|
12201
|
+
* @returns This function returns itself so that it may be chained.
|
|
12154
12202
|
*
|
|
12155
12203
|
* @codeGenApi
|
|
12156
12204
|
*/
|
|
12157
|
-
export declare function ɵɵelementEnd():
|
|
12205
|
+
export declare function ɵɵelementEnd(): typeof ɵɵelementEnd;
|
|
12158
12206
|
|
|
12159
12207
|
|
|
12160
12208
|
/**
|
|
@@ -12164,6 +12212,7 @@ export declare function ɵɵelementEnd(): void;
|
|
|
12164
12212
|
* @param name Name of the DOM Node
|
|
12165
12213
|
* @param attrsIndex Index of the element's attributes in the `consts` array.
|
|
12166
12214
|
* @param localRefsIndex Index of the element's local references in the `consts` array.
|
|
12215
|
+
* @returns This function returns itself so that it may be chained.
|
|
12167
12216
|
*
|
|
12168
12217
|
* Attributes and localRefs are passed as an array of strings where elements with an even index
|
|
12169
12218
|
* hold an attribute name and elements with an odd index hold an attribute value, ex.:
|
|
@@ -12171,7 +12220,7 @@ export declare function ɵɵelementEnd(): void;
|
|
|
12171
12220
|
*
|
|
12172
12221
|
* @codeGenApi
|
|
12173
12222
|
*/
|
|
12174
|
-
export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number):
|
|
12223
|
+
export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): typeof ɵɵelementStart;
|
|
12175
12224
|
|
|
12176
12225
|
/**
|
|
12177
12226
|
* Enables directive matching on elements.
|
|
@@ -13394,6 +13443,26 @@ export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
|
|
|
13394
13443
|
*/
|
|
13395
13444
|
export declare function ɵɵreference<T>(index: number): T;
|
|
13396
13445
|
|
|
13446
|
+
/**
|
|
13447
|
+
* Adds the given NgModule type to Angular's NgModule registry.
|
|
13448
|
+
*
|
|
13449
|
+
* This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in
|
|
13450
|
+
* explicitly and not read from the NgModule definition. This is for two reasons: it avoids a
|
|
13451
|
+
* megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be
|
|
13452
|
+
* fully resolved when it's registered.
|
|
13453
|
+
*
|
|
13454
|
+
* @codeGenApi
|
|
13455
|
+
*/
|
|
13456
|
+
export declare function ɵɵregisterNgModuleType(ngModuleType: ɵNgModuleType, id: string): void;
|
|
13457
|
+
|
|
13458
|
+
/**
|
|
13459
|
+
* Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in
|
|
13460
|
+
* value so that it can be used as a return value of an instruction.
|
|
13461
|
+
*
|
|
13462
|
+
* @codeGenApi
|
|
13463
|
+
*/
|
|
13464
|
+
export declare function ɵɵresetView<T>(value?: T): T | undefined;
|
|
13465
|
+
|
|
13397
13466
|
/**
|
|
13398
13467
|
*
|
|
13399
13468
|
* @codeGenApi
|
|
@@ -13429,6 +13498,7 @@ export declare function ɵɵresolveWindow(element: RElement & {
|
|
|
13429
13498
|
* @returns Context of the restored OpaqueViewState instance.
|
|
13430
13499
|
*
|
|
13431
13500
|
* @codeGenApi
|
|
13501
|
+
* @noinline Disable inlining due to issue with Closure in listeners inside embedded views.
|
|
13432
13502
|
*/
|
|
13433
13503
|
export declare function ɵɵrestoreView<T = any>(viewToRestore: OpaqueViewState): T;
|
|
13434
13504
|
|