@angular/core 19.1.0-next.1 → 19.1.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/fesm2022/core.mjs +274 -96
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  4. package/fesm2022/primitives/signals.mjs +1 -1
  5. package/fesm2022/rxjs-interop.mjs +1 -1
  6. package/fesm2022/testing.mjs +10 -10
  7. package/fesm2022/testing.mjs.map +1 -1
  8. package/index.d.ts +174 -122
  9. package/package.json +1 -1
  10. package/primitives/event-dispatch/index.d.ts +1 -1
  11. package/primitives/signals/index.d.ts +1 -1
  12. package/rxjs-interop/index.d.ts +1 -1
  13. package/schematics/bundles/{checker-a00b735e.js → checker-228cb8a8.js} +143 -40
  14. package/schematics/bundles/{combine_units-4983dfd3.js → combine_units-5d6a7099.js} +3 -3
  15. package/schematics/bundles/{compiler_host-3e96c3f7.js → compiler_host-fc806dbe.js} +2 -2
  16. package/schematics/bundles/control-flow-migration.js +3 -3
  17. package/schematics/bundles/explicit-standalone-flag.js +5 -5
  18. package/schematics/bundles/{imports-44987700.js → imports-abe29092.js} +2 -2
  19. package/schematics/bundles/inject-migration.js +10 -10
  20. package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-d190b83b.js} +1 -1
  21. package/schematics/bundles/{migrate_ts_type_references-58326be5.js → migrate_ts_type_references-d02c6750.js} +9 -9
  22. package/schematics/bundles/{nodes-b12e919a.js → nodes-a9f0b985.js} +2 -2
  23. package/schematics/bundles/output-migration.js +5 -5
  24. package/schematics/bundles/pending-tasks.js +5 -5
  25. package/schematics/bundles/{program-37562cc3.js → program-1591ec8f.js} +31 -24
  26. package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-e9ccccbf.js} +1 -1
  27. package/schematics/bundles/provide-initializer.js +5 -5
  28. package/schematics/bundles/route-lazy-loading.js +4 -4
  29. package/schematics/bundles/signal-input-migration.js +8 -8
  30. package/schematics/bundles/signal-queries-migration.js +7 -7
  31. package/schematics/bundles/signals.js +7 -7
  32. package/schematics/bundles/standalone-migration.js +8 -8
  33. package/testing/index.d.ts +5 -5
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.1
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -141,7 +141,7 @@ export declare interface AfterContentInit {
141
141
  * for example to initialize a non-Angular library.
142
142
  *
143
143
  * ### Example
144
- * ```ts
144
+ * ```angular-ts
145
145
  * @Component({
146
146
  * selector: 'my-chart-cmp',
147
147
  * template: `<div #chart>{{ ... }}</div>`,
@@ -201,7 +201,7 @@ export declare function afterNextRender<E = never, W = never, M = never>(spec: {
201
201
  * for example to initialize a non-Angular library.
202
202
  *
203
203
  * ### Example
204
- * ```ts
204
+ * ```angular-ts
205
205
  * @Component({
206
206
  * selector: 'my-chart-cmp',
207
207
  * template: `<div #chart>{{ ... }}</div>`,
@@ -281,7 +281,7 @@ export declare function afterNextRender(callback: VoidFunction, options?: AfterR
281
281
  * Use `afterRender` to read or write the DOM after each render.
282
282
  *
283
283
  * ### Example
284
- * ```ts
284
+ * ```angular-ts
285
285
  * @Component({
286
286
  * selector: 'my-cmp',
287
287
  * template: `<span #content>{{ ... }}</span>`,
@@ -340,7 +340,7 @@ export declare function afterRender<E = never, W = never, M = never>(spec: {
340
340
  * Use `afterRender` to read or write the DOM after each render.
341
341
  *
342
342
  * ### Example
343
- * ```ts
343
+ * ```angular-ts
344
344
  * @Component({
345
345
  * selector: 'my-cmp',
346
346
  * template: `<span #content>{{ ... }}</span>`,
@@ -704,7 +704,7 @@ export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef:
704
704
  * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications
705
705
  * have different `APP_ID` value setup. For example:
706
706
  *
707
- * ```
707
+ * ```ts
708
708
  * bootstrapApplication(ComponentA, {
709
709
  * providers: [
710
710
  * { provide: APP_ID, useValue: 'app-a' },
@@ -752,7 +752,7 @@ export declare const APP_ID: InjectionToken<string>;
752
752
  * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
753
753
  * and a function returning a promise.
754
754
  * ### Example with NgModule-based application
755
- * ```
755
+ * ```ts
756
756
  * function initializeApp(): Promise<any> {
757
757
  * const http = inject(HttpClient);
758
758
  * return firstValueFrom(
@@ -776,7 +776,7 @@ export declare const APP_ID: InjectionToken<string>;
776
776
  * ```
777
777
  *
778
778
  * ### Example with standalone application
779
- * ```
779
+ * ```ts
780
780
  * function initializeApp() {
781
781
  * const http = inject(HttpClient);
782
782
  * return firstValueFrom(
@@ -806,7 +806,7 @@ export declare const APP_ID: InjectionToken<string>;
806
806
  * through DI.
807
807
  *
808
808
  * ### Example with NgModule-based application
809
- * ```
809
+ * ```ts
810
810
  * function initializeApp() {
811
811
  * const http = inject(HttpClient);
812
812
  * return firstValueFrom(
@@ -830,7 +830,7 @@ export declare const APP_ID: InjectionToken<string>;
830
830
  * ```
831
831
  *
832
832
  * ### Example with standalone application
833
- * ```
833
+ * ```ts
834
834
  * function initializeApp() {
835
835
  * const http = inject(HttpClient);
836
836
  * return firstValueFrom(
@@ -918,7 +918,7 @@ export declare class ApplicationModule {
918
918
  * (here incrementing a counter, using RxJS `interval`),
919
919
  * and at the same time subscribe to `isStable`.
920
920
  *
921
- * ```
921
+ * ```ts
922
922
  * constructor(appRef: ApplicationRef) {
923
923
  * appRef.isStable.pipe(
924
924
  * filter(stable => stable)
@@ -933,7 +933,7 @@ export declare class ApplicationModule {
933
933
  * you have to wait for the application to be stable
934
934
  * before starting your polling process.
935
935
  *
936
- * ```
936
+ * ```ts
937
937
  * constructor(appRef: ApplicationRef) {
938
938
  * appRef.isStable.pipe(
939
939
  * first(stable => stable),
@@ -953,7 +953,7 @@ export declare class ApplicationModule {
953
953
  * you update a field of your component
954
954
  * and display it in its template.
955
955
  *
956
- * ```
956
+ * ```ts
957
957
  * constructor(appRef: ApplicationRef) {
958
958
  * appRef.isStable.pipe(
959
959
  * first(stable => stable),
@@ -967,7 +967,7 @@ export declare class ApplicationModule {
967
967
  *
968
968
  * You'll have to manually trigger the change detection to update the template.
969
969
  *
970
- * ```
970
+ * ```ts
971
971
  * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {
972
972
  * appRef.isStable.pipe(
973
973
  * first(stable => stable),
@@ -981,7 +981,7 @@ export declare class ApplicationModule {
981
981
  *
982
982
  * Or make the subscription callback run inside the zone.
983
983
  *
984
- * ```
984
+ * ```ts
985
985
  * constructor(appRef: ApplicationRef, zone: NgZone) {
986
986
  * appRef.isStable.pipe(
987
987
  * first(stable => stable),
@@ -1277,7 +1277,7 @@ export declare interface AttributeDecorator {
1277
1277
  * Intended to be used as a transform function of an input.
1278
1278
  *
1279
1279
  * @usageNotes
1280
- * ```typescript
1280
+ * ```ts
1281
1281
  * @Input({ transform: booleanAttribute }) status!: boolean;
1282
1282
  * ```
1283
1283
  * @param value Value to be transformed.
@@ -1408,8 +1408,7 @@ declare type ChangeDetectionStrategy_2 = number;
1408
1408
  * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
1409
1409
  * after an interval.
1410
1410
  *
1411
- * <code-example path="core/ts/change_detect/change-detection.ts"
1412
- * region="mark-for-check"></code-example>
1411
+ * {@example core/ts/change_detect/change-detection.ts region='mark-for-check'}
1413
1412
  *
1414
1413
  * ### Detach change detector to limit how often check occurs
1415
1414
  *
@@ -1419,7 +1418,7 @@ declare type ChangeDetectionStrategy_2 = number;
1419
1418
  * less often than the changes actually occur. To do that, we detach
1420
1419
  * the component's change detector and perform an explicit local check every five seconds.
1421
1420
  *
1422
- * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
1421
+ * {@example core/ts/change_detect/change-detection.ts region='detach'}
1423
1422
  *
1424
1423
  *
1425
1424
  * ### Reattaching a detached component
@@ -1429,7 +1428,7 @@ declare type ChangeDetectionStrategy_2 = number;
1429
1428
  * when the `live` property is set to false, and reattaches it when the property
1430
1429
  * becomes true.
1431
1430
  *
1432
- * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
1431
+ * {@example core/ts/change_detect/change-detection.ts region='reattach'}
1433
1432
  *
1434
1433
  * @publicApi
1435
1434
  */
@@ -1799,7 +1798,7 @@ export declare interface ComponentDecorator {
1799
1798
  * The following example creates a component with two data-bound properties,
1800
1799
  * specified by the `inputs` value.
1801
1800
  *
1802
- * <code-example path="core/ts/metadata/directives.ts" region="component-input"></code-example>
1801
+ * {@example core/ts/metadata/directives.ts region='component-input'}
1803
1802
  *
1804
1803
  *
1805
1804
  * ### Setting component outputs
@@ -2556,7 +2555,7 @@ declare const CONTEXT = 8;
2556
2555
  * Note: the example uses standalone components, but the function can also be used for
2557
2556
  * non-standalone components (declared in an NgModule) as well.
2558
2557
  *
2559
- * ```typescript
2558
+ * ```angular-ts
2560
2559
  * @Component({
2561
2560
  * standalone: true,
2562
2561
  * template: `Hello {{ name }}!`
@@ -2963,6 +2962,31 @@ export declare class DebugNode {
2963
2962
  get providerTokens(): any[];
2964
2963
  }
2965
2964
 
2965
+ /**
2966
+ * A debug representation of the signal graph.
2967
+ */
2968
+ declare interface DebugSignalGraph {
2969
+ nodes: DebugSignalGraphNode[];
2970
+ edges: DebugSignalGraphEdge[];
2971
+ }
2972
+
2973
+ declare interface DebugSignalGraphEdge {
2974
+ /**
2975
+ * Index of a signal node in the `nodes` array that is a consumer of the signal produced by the producer node.
2976
+ */
2977
+ consumer: number;
2978
+ /**
2979
+ * Index of a signal node in the `nodes` array that is a producer of the signal consumed by the consumer node.
2980
+ */
2981
+ producer: number;
2982
+ }
2983
+
2984
+ declare interface DebugSignalGraphNode {
2985
+ kind: string;
2986
+ label?: string;
2987
+ value?: unknown;
2988
+ }
2989
+
2966
2990
  declare const DECLARATION_COMPONENT_VIEW = 15;
2967
2991
 
2968
2992
  declare const DECLARATION_LCONTAINER = 16;
@@ -2996,7 +3020,7 @@ declare const DECLARATION_VIEW = 14;
2996
3020
  * @usageNotes
2997
3021
  * ### Example
2998
3022
  *
2999
- * ```typescript
3023
+ * ```ts
3000
3024
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3001
3025
  * import { AppModule } from './app/app.module';
3002
3026
  *
@@ -3342,7 +3366,7 @@ export declare abstract class DestroyRef {
3342
3366
  *
3343
3367
  * @usageNotes
3344
3368
  * ### Example
3345
- * ```typescript
3369
+ * ```ts
3346
3370
  * const destroyRef = inject(DestroyRef);
3347
3371
  *
3348
3372
  * // register a destroy callback
@@ -3412,7 +3436,7 @@ export declare interface Directive {
3412
3436
  *
3413
3437
  * The following example creates a component with two data-bound properties.
3414
3438
  *
3415
- * ```typescript
3439
+ * ```ts
3416
3440
  * @Component({
3417
3441
  * selector: 'bank-account',
3418
3442
  * inputs: ['bankName', {name: 'id', alias: 'account-id'}],
@@ -3448,7 +3472,7 @@ export declare interface Directive {
3448
3472
  *
3449
3473
  * @usageNotes
3450
3474
  *
3451
- * ```typescript
3475
+ * ```ts
3452
3476
  * @Component({
3453
3477
  * selector: 'child-dir',
3454
3478
  * outputs: [ 'bankNameChange' ],
@@ -3832,7 +3856,7 @@ declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDef
3832
3856
  * Map of inputs for a given directive/component.
3833
3857
  *
3834
3858
  * Given:
3835
- * ```
3859
+ * ```ts
3836
3860
  * class MyComponent {
3837
3861
  * @Input()
3838
3862
  * publicInput1: string;
@@ -3848,7 +3872,7 @@ declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDef
3848
3872
  * ```
3849
3873
  *
3850
3874
  * is described as:
3851
- * ```
3875
+ * ```ts
3852
3876
  * {
3853
3877
  * publicInput1: 'publicInput1',
3854
3878
  * declaredInput2: [InputFlags.None, 'declaredInput2', 'publicInput2'],
@@ -3863,7 +3887,7 @@ declare type DirectiveDefListOrFactory = (() => DirectiveDefList) | DirectiveDef
3863
3887
  * ```
3864
3888
  *
3865
3889
  * Which the minifier may translate to:
3866
- * ```
3890
+ * ```ts
3867
3891
  * {
3868
3892
  * minifiedPublicInput1: 'publicInput1',
3869
3893
  * minifiedDeclaredInput2: [InputFlags.None, 'publicInput2', 'declaredInput2'],
@@ -3910,7 +3934,7 @@ declare const DISCONNECTED_NODES = "d";
3910
3934
  * The example below uses `ApplicationRef.bootstrap()` to render the
3911
3935
  * `AppComponent` on the page.
3912
3936
  *
3913
- * ```typescript
3937
+ * ```ts
3914
3938
  * class AppModule implements DoBootstrap {
3915
3939
  * ngDoBootstrap(appRef: ApplicationRef) {
3916
3940
  * appRef.bootstrap(AppComponent); // Or some other component
@@ -4089,7 +4113,7 @@ declare const EMBEDDED_VIEW_INJECTOR = 20;
4089
4113
  * The following template breaks down into two separate `TemplateRef` instances,
4090
4114
  * an outer one and an inner one.
4091
4115
  *
4092
- * ```
4116
+ * ```html
4093
4117
  * Count: {{items.length}}
4094
4118
  * <ul>
4095
4119
  * <li *ngFor="let item of items">{{item}}</li>
@@ -4098,7 +4122,7 @@ declare const EMBEDDED_VIEW_INJECTOR = 20;
4098
4122
  *
4099
4123
  * This is the outer `TemplateRef`:
4100
4124
  *
4101
- * ```
4125
+ * ```html
4102
4126
  * Count: {{items.length}}
4103
4127
  * <ul>
4104
4128
  * <ng-template ngFor let-item [ngForOf]="items"></ng-template>
@@ -4107,13 +4131,13 @@ declare const EMBEDDED_VIEW_INJECTOR = 20;
4107
4131
  *
4108
4132
  * This is the inner `TemplateRef`:
4109
4133
  *
4110
- * ```
4134
+ * ```html
4111
4135
  * <li>{{item}}</li>
4112
4136
  * ```
4113
4137
  *
4114
4138
  * The outer and inner `TemplateRef` instances are assembled into views as follows:
4115
4139
  *
4116
- * ```
4140
+ * ```html
4117
4141
  * <!-- ViewRef: outer-0 -->
4118
4142
  * Count: 2
4119
4143
  * <ul>
@@ -4250,7 +4274,7 @@ export declare type EnvironmentProviders = {
4250
4274
  * @usageNotes
4251
4275
  * ### Example
4252
4276
  *
4253
- * ```
4277
+ * ```ts
4254
4278
  * class MyErrorHandler implements ErrorHandler {
4255
4279
  * handleError(error) {
4256
4280
  * // do something with the exception
@@ -4294,7 +4318,7 @@ declare interface EventContractDetails {
4294
4318
  * that create event emitters. When the title is clicked, the emitter
4295
4319
  * emits an open or close event to toggle the current visibility state.
4296
4320
  *
4297
- * ```html
4321
+ * ```angular-ts
4298
4322
  * @Component({
4299
4323
  * selector: 'zippy',
4300
4324
  * template: `
@@ -4497,7 +4521,7 @@ declare const FLAGS = 2;
4497
4521
  * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
4498
4522
  *
4499
4523
  * ### Circular standalone reference import example
4500
- * ```ts
4524
+ * ```angular-ts
4501
4525
  * @Component({
4502
4526
  * standalone: true,
4503
4527
  * imports: [ChildComponent],
@@ -4743,6 +4767,18 @@ export declare function getPlatform(): PlatformRef | null;
4743
4767
  */
4744
4768
  declare function getRootComponents(elementOrDir: Element | {}): {}[];
4745
4769
 
4770
+ /**
4771
+ * Returns a debug representation of the signal graph for the given injector.
4772
+ *
4773
+ * Currently only supports element injectors. Starts by discovering the consumer nodes
4774
+ * and then traverses their producer nodes to build the signal graph.
4775
+ *
4776
+ * @param injector The injector to get the signal graph for.
4777
+ * @returns A debug representation of the signal graph.
4778
+ * @throws If the injector is an environment injector.
4779
+ */
4780
+ declare function getSignalGraph(injector: Injector): DebugSignalGraph;
4781
+
4746
4782
  /**
4747
4783
  * Adapter interface for retrieving the `Testability` service associated for a
4748
4784
  * particular context.
@@ -4783,6 +4819,7 @@ declare const globalUtilsFunctions: {
4783
4819
  ɵgetInjectorResolutionPath: typeof getInjectorResolutionPath;
4784
4820
  ɵgetInjectorMetadata: typeof getInjectorMetadata;
4785
4821
  ɵsetProfiler: (profiler: ɵProfiler_2 | null) => void;
4822
+ ɵgetSignalGraph: typeof getSignalGraph;
4786
4823
  getDirectiveMetadata: typeof getDirectiveMetadata;
4787
4824
  getComponent: typeof getComponent;
4788
4825
  getContext: typeof getContext;
@@ -4842,7 +4879,7 @@ export declare const Host: HostDecorator;
4842
4879
  *
4843
4880
  * @usageNotes
4844
4881
  * ### Injecting a tag name that is known to exist
4845
- * ```typescript
4882
+ * ```ts
4846
4883
  * @Directive()
4847
4884
  * class MyDir {
4848
4885
  * tagName: string = inject(HOST_TAG_NAME);
@@ -4850,7 +4887,7 @@ export declare const Host: HostDecorator;
4850
4887
  * ```
4851
4888
  *
4852
4889
  * ### Optionally injecting a tag name
4853
- * ```typescript
4890
+ * ```ts
4854
4891
  * @Directive()
4855
4892
  * class MyDir {
4856
4893
  * tagName: string | null = inject(HOST_TAG_NAME, {optional: true});
@@ -4865,7 +4902,7 @@ export declare const HOST_TAG_NAME: InjectionToken<string>;
4865
4902
  *
4866
4903
  * @usageNotes
4867
4904
  * ### Injecting an attribute that is known to exist
4868
- * ```typescript
4905
+ * ```ts
4869
4906
  * @Directive()
4870
4907
  * class MyDir {
4871
4908
  * attr: string = inject(new HostAttributeToken('some-attr'));
@@ -4873,7 +4910,7 @@ export declare const HOST_TAG_NAME: InjectionToken<string>;
4873
4910
  * ```
4874
4911
  *
4875
4912
  * ### Optionally injecting an attribute
4876
- * ```typescript
4913
+ * ```ts
4877
4914
  * @Directive()
4878
4915
  * class MyDir {
4879
4916
  * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});
@@ -4925,7 +4962,7 @@ export declare interface HostBindingDecorator {
4925
4962
  * The following example creates a directive that sets the `valid` and `invalid`
4926
4963
  * class, a style color, and an id on the DOM element that has an `ngModel` directive on it.
4927
4964
  *
4928
- * ```typescript
4965
+ * ```ts
4929
4966
  * @Directive({selector: '[ngModel]'})
4930
4967
  * class NgModelStatus {
4931
4968
  * constructor(public control: NgModel) {}
@@ -4988,7 +5025,7 @@ export declare interface HostBindingDecorator {
4988
5025
  *
4989
5026
  * ## Example
4990
5027
  *
4991
- * ```
5028
+ * ```ts
4992
5029
  * const hostBindingOpCodes = [
4993
5030
  * ~30, // Select element 30
4994
5031
  * 40, 45, MyDir.ɵdir.hostBindings // Invoke host bindings on MyDir on element 30;
@@ -4999,7 +5036,7 @@ export declare interface HostBindingDecorator {
4999
5036
  * ```
5000
5037
  *
5001
5038
  * ## Pseudocode
5002
- * ```
5039
+ * ```ts
5003
5040
  * const hostBindingOpCodes = tView.hostBindingOpCodes;
5004
5041
  * if (hostBindingOpCodes === null) return;
5005
5042
  * for (let i = 0; i < hostBindingOpCodes.length; i++) {
@@ -5042,8 +5079,7 @@ export declare interface HostDecorator {
5042
5079
  *
5043
5080
  * The following shows use with the `@Optional` decorator, and allows for a `null` result.
5044
5081
  *
5045
- * <code-example path="core/di/ts/metadata_spec.ts" region="Host">
5046
- * </code-example>
5082
+ * {@example core/di/ts/metadata_spec.ts region='Host'}
5047
5083
  *
5048
5084
  * For an extended example, see ["Dependency Injection
5049
5085
  * Guide"](guide/di/di-in-action#optional).
@@ -5232,7 +5268,7 @@ declare const I18N_DATA = "l";
5232
5268
  * The number is shifted and encoded according to `I18nCreateOpCode`
5233
5269
  *
5234
5270
  * Pseudocode:
5235
- * ```
5271
+ * ```ts
5236
5272
  * const i18nCreateOpCodes = [
5237
5273
  * 10 << I18nCreateOpCode.SHIFT, "Text Node add to DOM",
5238
5274
  * 11 << I18nCreateOpCode.SHIFT | I18nCreateOpCode.COMMENT, "Comment Node add to DOM",
@@ -5523,7 +5559,7 @@ export declare type ImportedNgModuleProviders = EnvironmentProviders;
5523
5559
  * @usageNotes
5524
5560
  * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
5525
5561
  *
5526
- * ```typescript
5562
+ * ```ts
5527
5563
  * await bootstrapApplication(RootComponent, {
5528
5564
  * providers: [
5529
5565
  * importProvidersFrom(NgModuleOne, NgModuleTwo)
@@ -5534,7 +5570,7 @@ export declare type ImportedNgModuleProviders = EnvironmentProviders;
5534
5570
  * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
5535
5571
  * standalone component is used:
5536
5572
  *
5537
- * ```typescript
5573
+ * ```ts
5538
5574
  * export const ROUTES: Route[] = [
5539
5575
  * {
5540
5576
  * path: 'foo',
@@ -5748,7 +5784,7 @@ export declare interface InjectableDecorator {
5748
5784
  * The following example shows how a service class is properly
5749
5785
  * marked so that a supporting service can be injected upon creation.
5750
5786
  *
5751
- * <code-example path="core/di/ts/metadata_spec.ts" region="Injectable"></code-example>
5787
+ * {@example core/di/ts/metadata_spec.ts region='Injectable'}
5752
5788
  *
5753
5789
  */
5754
5790
  (): TypeDecorator;
@@ -5801,8 +5837,7 @@ export declare interface InjectDecorator {
5801
5837
  * When `@Inject()` is not present, the injector uses the type annotation of the
5802
5838
  * parameter as the provider.
5803
5839
  *
5804
- * <code-example path="core/di/ts/metadata_spec.ts" region="InjectWithoutDecorator">
5805
- * </code-example>
5840
+ * {@example core/di/ts/metadata_spec.ts region='InjectWithoutDecorator'}
5806
5841
  *
5807
5842
  * @see [Dependency Injection Guide](guide/di/dependency-injection
5808
5843
  *
@@ -5882,8 +5917,7 @@ export declare enum InjectFlags {
5882
5917
  *
5883
5918
  * </div>
5884
5919
  *
5885
- * <code-example format="typescript" language="typescript" path="injection-token/src/main.ts"
5886
- * region="InjectionToken"></code-example>
5920
+ * {@example injection-token/src/main.ts region='InjectionToken'}
5887
5921
  *
5888
5922
  * When creating an `InjectionToken`, you can optionally specify a factory function which returns
5889
5923
  * (possibly by creating) a default value of the parameterized type `T`. This sets up the
@@ -6132,7 +6166,7 @@ export declare const Input: InputDecorator;
6132
6166
  * @usageNotes
6133
6167
  * To use signal-based inputs, import `input` from `@angular/core`.
6134
6168
  *
6135
- * ```
6169
+ * ```ts
6136
6170
  * import {input} from '@angular/core`;
6137
6171
  * ```
6138
6172
  *
@@ -6181,7 +6215,7 @@ export declare interface InputDecorator {
6181
6215
  * The following example creates a component with two input properties,
6182
6216
  * one of which is given a special binding name.
6183
6217
  *
6184
- * ```typescript
6218
+ * ```ts
6185
6219
  * import { Component, Input, numberAttribute, booleanAttribute } from '@angular/core';
6186
6220
  * @Component({
6187
6221
  * selector: 'bank-account',
@@ -6849,6 +6883,16 @@ declare interface Listener {
6849
6883
  type: 'dom' | 'output';
6850
6884
  }
6851
6885
 
6886
+ /**
6887
+ * Options that can be used to configure an event listener.
6888
+ * @publicApi
6889
+ */
6890
+ export declare interface ListenerOptions {
6891
+ capture?: boolean;
6892
+ once?: boolean;
6893
+ passive?: boolean;
6894
+ }
6895
+
6852
6896
  /**
6853
6897
  * Provide this token to set the locale of your application.
6854
6898
  * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
@@ -6859,7 +6903,7 @@ declare interface Listener {
6859
6903
  * @usageNotes
6860
6904
  * ### Example
6861
6905
  *
6862
- * ```typescript
6906
+ * ```ts
6863
6907
  * import { LOCALE_ID } from '@angular/core';
6864
6908
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6865
6909
  * import { AppModule } from './app/app.module';
@@ -7285,7 +7329,7 @@ export declare function makeEnvironmentProviders(providers: (Provider | Environm
7285
7329
  *
7286
7330
  * Example:
7287
7331
  *
7288
- * ```
7332
+ * ```ts
7289
7333
  * const COUNTER_KEY = makeStateKey<number>('counter');
7290
7334
  * let value = 10;
7291
7335
  *
@@ -7317,7 +7361,7 @@ export declare function mergeApplicationConfig(...configs: ApplicationConfig[]):
7317
7361
  *
7318
7362
  * @usageNotes
7319
7363
  * ### Example
7320
- * ```typescript
7364
+ * ```ts
7321
7365
  * import { MissingTranslationStrategy } from '@angular/core';
7322
7366
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
7323
7367
  * import { AppModule } from './app/app.module';
@@ -7346,7 +7390,7 @@ export declare enum MissingTranslationStrategy {
7346
7390
  *
7347
7391
  * To use `model()`, import the function from `@angular/core`.
7348
7392
  *
7349
- * ```
7393
+ * ```ts
7350
7394
  * import {model} from '@angular/core`;
7351
7395
  * ```
7352
7396
  *
@@ -7788,7 +7832,7 @@ export declare class NgProbeToken {
7788
7832
  * @usageNotes
7789
7833
  * ### Example
7790
7834
  *
7791
- * ```
7835
+ * ```ts
7792
7836
  * import {Component, NgZone} from '@angular/core';
7793
7837
  * import {NgIf} from '@angular/common';
7794
7838
  *
@@ -8060,7 +8104,7 @@ declare const NUM_ROOT_NODES = "r";
8060
8104
  * @param fallbackValue Value to use if the provided value can't be parsed as a number.
8061
8105
  *
8062
8106
  * @usageNotes
8063
- * ```typescript
8107
+ * ```ts
8064
8108
  * @Input({ transform: numberAttribute }) id!: number;
8065
8109
  * ```
8066
8110
  *
@@ -8188,8 +8232,7 @@ export declare interface OptionalDecorator {
8188
8232
  *
8189
8233
  * The following code allows the possibility of a `null` result:
8190
8234
  *
8191
- * <code-example path="core/di/ts/metadata_spec.ts" region="Optional">
8192
- * </code-example>
8235
+ * {@example core/di/ts/metadata_spec.ts region='Optional'}
8193
8236
  *
8194
8237
  * @see [Dependency Injection Guide](guide/di/dependency-injection.
8195
8238
  */
@@ -8370,7 +8413,7 @@ declare const PARENT = 3;
8370
8413
  * - tests might want to delay assertions until the application becomes stable;
8371
8414
  *
8372
8415
  * @usageNotes
8373
- * ```typescript
8416
+ * ```ts
8374
8417
  * const pendingTasks = inject(PendingTasks);
8375
8418
  * const taskCleanup = pendingTasks.add();
8376
8419
  * // do work that should block application's stability and then:
@@ -8413,24 +8456,6 @@ export declare class PendingTasks {
8413
8456
  static ɵprov: unknown;
8414
8457
  }
8415
8458
 
8416
- /**
8417
- * Internal implementation of the pending tasks service.
8418
- */
8419
- declare class PendingTasksInternal implements OnDestroy {
8420
- private taskId;
8421
- private pendingTasks;
8422
- private get _hasPendingTasks();
8423
- hasPendingTasks: BehaviorSubject<boolean>;
8424
- add(): number;
8425
- has(taskId: number): boolean;
8426
- remove(taskId: number): void;
8427
- ngOnDestroy(): void;
8428
- /** @nocollapse */
8429
- static ɵprov: unknown;
8430
- }
8431
- export { PendingTasksInternal as ɵPendingTasks }
8432
- export { PendingTasksInternal as ɵPendingTasksInternal }
8433
-
8434
8459
  /**
8435
8460
  * Type of the Pipe metadata.
8436
8461
  *
@@ -8484,7 +8509,7 @@ export declare interface PipeDecorator {
8484
8509
  * For example, if the name is "myPipe", use a template binding expression
8485
8510
  * such as the following:
8486
8511
  *
8487
- * ```
8512
+ * ```html
8488
8513
  * {{ exp | myPipe }}
8489
8514
  * ```
8490
8515
  *
@@ -8600,7 +8625,7 @@ export declare class PlatformRef {
8600
8625
  * @usageNotes
8601
8626
  * ### Simple Example
8602
8627
  *
8603
- * ```typescript
8628
+ * ```ts
8604
8629
  * @NgModule({
8605
8630
  * imports: [BrowserModule]
8606
8631
  * })
@@ -8713,7 +8738,7 @@ declare type ProjectionSlots = (ɵCssSelectorList | '*')[];
8713
8738
  * @usageNotes
8714
8739
  * The following example illustrates how to configure an initialization function using
8715
8740
  * `provideAppInitializer()`
8716
- * ```
8741
+ * ```ts
8717
8742
  * bootstrapApplication(App, {
8718
8743
  * providers: [
8719
8744
  * provideAppInitializer(() => {
@@ -8747,7 +8772,7 @@ export declare function provideAppInitializer(initializerFn: () => Observable<un
8747
8772
  * @usageNotes
8748
8773
  * The following example illustrates how to configure an initialization function using
8749
8774
  * `provideEnvironmentInitializer()`
8750
- * ```
8775
+ * ```ts
8751
8776
  * createEnvironmentInjector(
8752
8777
  * [
8753
8778
  * provideEnvironmentInitializer(() => {
@@ -8813,7 +8838,7 @@ export declare function provideExperimentalCheckNoChangesForDebug(options: {
8813
8838
  * - registering a render hook (templates are only refreshed if render hooks do one of the above)
8814
8839
  *
8815
8840
  * @usageNotes
8816
- * ```typescript
8841
+ * ```ts
8817
8842
  * bootstrapApplication(MyApp, {providers: [
8818
8843
  * provideExperimentalZonelessChangeDetection(),
8819
8844
  * ]});
@@ -8873,7 +8898,7 @@ export declare type ProviderToken<T> = Type<T> | AbstractType<T> | InjectionToke
8873
8898
  * `BootstrapOptions` instead.
8874
8899
  *
8875
8900
  * @usageNotes
8876
- * ```typescript
8901
+ * ```ts
8877
8902
  * bootstrapApplication(MyApp, {providers: [
8878
8903
  * provideZoneChangeDetection({eventCoalescing: true}),
8879
8904
  * ]});
@@ -8972,7 +8997,7 @@ declare const enum QueryFlags {
8972
8997
  *
8973
8998
  * @usageNotes
8974
8999
  * ### Example
8975
- * ```typescript
9000
+ * ```ts
8976
9001
  * @Component({...})
8977
9002
  * class Container {
8978
9003
  * @ViewChildren(Item) items:QueryList<Item>;
@@ -9249,7 +9274,7 @@ declare interface ReactiveLViewConsumer extends ReactiveNode {
9249
9274
  * The example below demonstrates how to use the function and how the fields
9250
9275
  * of the returned object map to the component metadata.
9251
9276
  *
9252
- * ```typescript
9277
+ * ```angular-ts
9253
9278
  * @Component({
9254
9279
  * standalone: true,
9255
9280
  * selector: 'foo-component',
@@ -9337,7 +9362,7 @@ declare interface Renderer {
9337
9362
  removeStyle(el: RElement, style: string, flags?: RendererStyleFlags2): void;
9338
9363
  setProperty(el: RElement, name: string, value: any): void;
9339
9364
  setValue(node: RText | RComment, value: string): void;
9340
- listen(target: GlobalTargetName | RNode, eventName: string, callback: (event: any) => boolean | void): () => void;
9365
+ listen(target: GlobalTargetName | RNode, eventName: string, callback: (event: any) => boolean | void, options?: ListenerOptions): () => void;
9341
9366
  }
9342
9367
 
9343
9368
  /**
@@ -9509,9 +9534,10 @@ export declare abstract class Renderer2 {
9509
9534
  * DOM element.
9510
9535
  * @param eventName The event to listen for.
9511
9536
  * @param callback A handler function to invoke when the event occurs.
9537
+ * @param options Options that configure how the event listener is bound.
9512
9538
  * @returns An "unlisten" function for disposing of this handler.
9513
9539
  */
9514
- abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void): () => void;
9540
+ abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void, options?: ListenerOptions): () => void;
9515
9541
  }
9516
9542
 
9517
9543
  declare interface RendererFactory {
@@ -10011,8 +10037,7 @@ export declare interface SelfDecorator {
10011
10037
  * by the local injector when instantiating the class itself, but not
10012
10038
  * when instantiating a child.
10013
10039
  *
10014
- * <code-example path="core/di/ts/metadata_spec.ts" region="Self">
10015
- * </code-example>
10040
+ * {@example core/di/ts/metadata_spec.ts region='Self'}
10016
10041
  *
10017
10042
  * @see {@link SkipSelf}
10018
10043
  * @see {@link Optional}
@@ -10214,8 +10239,7 @@ export declare interface SkipSelfDecorator {
10214
10239
  * In the following example, the dependency can be resolved when
10215
10240
  * instantiating a child, but not when instantiating the class itself.
10216
10241
  *
10217
- * <code-example path="core/di/ts/metadata_spec.ts" region="SkipSelf">
10218
- * </code-example>
10242
+ * {@example core/di/ts/metadata_spec.ts region='SkipSelf'}
10219
10243
  *
10220
10244
  * @see [Dependency Injection guide](guide/di/di-in-action#skip).
10221
10245
  * @see {@link Self}
@@ -10247,7 +10271,7 @@ declare interface StandaloneCompScopeData extends ScopeData {
10247
10271
  *
10248
10272
  * Example:
10249
10273
  *
10250
- * ```
10274
+ * ```ts
10251
10275
  * const COUNTER_KEY = makeStateKey<number>('counter');
10252
10276
  * let value = 10;
10253
10277
  *
@@ -10571,7 +10595,7 @@ declare const TEMPLATES = "t";
10571
10595
  * providers using the `provideProtractorTestingSupport()` function and adding them into the
10572
10596
  * `options.providers` array. Example:
10573
10597
  *
10574
- * ```typescript
10598
+ * ```ts
10575
10599
  * import {provideProtractorTestingSupport} from '@angular/platform-browser';
10576
10600
  *
10577
10601
  * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);
@@ -11494,7 +11518,7 @@ export declare class TransferState {
11494
11518
  * @usageNotes
11495
11519
  * ### Example
11496
11520
  *
11497
- * ```typescript
11521
+ * ```ts
11498
11522
  * import { TRANSLATIONS } from '@angular/core';
11499
11523
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
11500
11524
  * import { AppModule } from './app/app.module';
@@ -11520,7 +11544,7 @@ export declare const TRANSLATIONS: InjectionToken<string>;
11520
11544
  * @usageNotes
11521
11545
  * ### Example
11522
11546
  *
11523
- * ```typescript
11547
+ * ```ts
11524
11548
  * import { TRANSLATIONS_FORMAT } from '@angular/core';
11525
11549
  * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
11526
11550
  * import { AppModule } from './app/app.module';
@@ -11632,7 +11656,7 @@ declare type TStylingRange = number & {
11632
11656
  *
11633
11657
  * Imagine we have:
11634
11658
  *
11635
- * ```
11659
+ * ```angular-ts
11636
11660
  * <div class="TEMPLATE" my-dir>
11637
11661
  *
11638
11662
  * @Directive({
@@ -11645,7 +11669,7 @@ declare type TStylingRange = number & {
11645
11669
  *
11646
11670
  * In the above case the linked list will contain one item:
11647
11671
  *
11648
- * ```
11672
+ * ```ts
11649
11673
  * // assume binding location: 10 for `ɵɵclassProp('dynamic', ctx.exp);`
11650
11674
  * tData[10] = <TStylingStatic>[
11651
11675
  * '': 'dynamic', // This is the wrapped value of `TStylingKey`
@@ -11662,13 +11686,13 @@ declare type TStylingRange = number & {
11662
11686
  * `dynamic` (there is not). Therefore it is safe to remove it.
11663
11687
  *
11664
11688
  * If setting `true` case:
11665
- * ```
11689
+ * ```ts
11666
11690
  * lView[10] = true; // assume `ctx.exp` is `true`
11667
11691
  * lView[10 + 1] = true; // Just normalized `lView[10]`
11668
11692
  * ```
11669
11693
  * So when the function is resolving styling value, it first needs to look into the linked list
11670
11694
  * (there is none) and than into `TNode.residualClass` (TNode.residualStyle) which contains
11671
- * ```
11695
+ * ```ts
11672
11696
  * tNode.residualClass = [
11673
11697
  * 'TEMPLATE': true,
11674
11698
  * ];
@@ -11986,7 +12010,7 @@ declare type Type_2 = Function;
11986
12010
  * An interface implemented by all Angular type decorators, which allows them to be used as
11987
12011
  * decorators as well as Angular syntax.
11988
12012
  *
11989
- * ```
12013
+ * ```ts
11990
12014
  * @ng.Component({...})
11991
12015
  * class MyClass {...}
11992
12016
  * ```
@@ -12119,7 +12143,7 @@ export declare const ViewChild: ViewChildDecorator;
12119
12143
  * Create a child query in your component by declaring a
12120
12144
  * class field and initializing it with the `viewChild()` function.
12121
12145
  *
12122
- * ```ts
12146
+ * ```angular-ts
12123
12147
  * @Component({template: '<div #el></div><my-component #cmp />'})
12124
12148
  * export class TestComponent {
12125
12149
  * divEl = viewChild<ElementRef>('el'); // Signal<ElementRef|undefined>
@@ -12356,7 +12380,7 @@ export declare interface ViewChildrenDecorator {
12356
12380
  * Note: the example uses standalone components, but the function can also be used for
12357
12381
  * non-standalone components (declared in an NgModule) as well.
12358
12382
  *
12359
- * ```typescript
12383
+ * ```angular-ts
12360
12384
  * @Component({
12361
12385
  * standalone: true,
12362
12386
  * selector: 'dynamic',
@@ -13913,7 +13937,7 @@ export declare class ɵLContext {
13913
13937
  *
13914
13938
  * Example:
13915
13939
  *
13916
- * ```
13940
+ * ```ts
13917
13941
  * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});
13918
13942
  * ```
13919
13943
  */
@@ -14117,6 +14141,22 @@ export declare const enum ɵNotificationSource {
14117
14141
  */
14118
14142
  export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponentDef<C>, transitiveScopes: ɵNgModuleTransitiveScopes): void;
14119
14143
 
14144
+ /**
14145
+ * Internal implementation of the pending tasks service.
14146
+ */
14147
+ export declare class ɵPendingTasksInternal implements OnDestroy {
14148
+ private taskId;
14149
+ private pendingTasks;
14150
+ private get _hasPendingTasks();
14151
+ hasPendingTasks: BehaviorSubject<boolean>;
14152
+ add(): number;
14153
+ has(taskId: number): boolean;
14154
+ remove(taskId: number): void;
14155
+ ngOnDestroy(): void;
14156
+ /** @nocollapse */
14157
+ static ɵprov: unknown;
14158
+ }
14159
+
14120
14160
 
14121
14161
  export declare const ɵPERFORMANCE_MARK_PREFIX = "\uD83C\uDD70\uFE0F";
14122
14162
 
@@ -14392,7 +14432,7 @@ export declare function ɵresetJitOptions(): void;
14392
14432
  * Used to resolve resource URLs on `@Component` when used with JIT compilation.
14393
14433
  *
14394
14434
  * Example:
14395
- * ```
14435
+ * ```ts
14396
14436
  * @Component({
14397
14437
  * selector: 'my-comp',
14398
14438
  * templateUrl: 'my-comp.html', // This requires asynchronous resolution
@@ -14431,7 +14471,7 @@ export declare function ɵrestoreComponentResolutionQueue(queue: Map<Type<any>,
14431
14471
  * Formats and outputs the error message in a consistent way.
14432
14472
  *
14433
14473
  * Example:
14434
- * ```
14474
+ * ```ts
14435
14475
  * throw new RuntimeError(
14436
14476
  * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,
14437
14477
  * ngDevMode && 'Injector has already been destroyed.');
@@ -14871,7 +14911,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorR
14871
14911
  * @usageNotes
14872
14912
  * ### Example
14873
14913
  *
14874
- * ```typescript
14914
+ * ```ts
14875
14915
  * @Component({
14876
14916
  * selector: 'app-root',
14877
14917
  * template: `Number of ticks: {{numberOfTicks}}`
@@ -14911,7 +14951,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorR
14911
14951
  * we want to check and update the list every five seconds. We can do that by detaching
14912
14952
  * the component's change detector and doing a local check every five seconds.
14913
14953
  *
14914
- * ```typescript
14954
+ * ```ts
14915
14955
  * class DataProvider {
14916
14956
  * // in a real application the returned data will be different every time
14917
14957
  * get data() {
@@ -14961,7 +15001,7 @@ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorR
14961
15001
  * its change detector from the main change detector tree when the component's live property
14962
15002
  * is set to false.
14963
15003
  *
14964
- * ```typescript
15004
+ * ```ts
14965
15005
  * class DataProvider {
14966
15006
  * data = 1;
14967
15007
  *
@@ -15075,18 +15115,18 @@ export declare function ɵwithIncrementalHydration(): Provider[];
15075
15115
  *
15076
15116
  * USAGE:
15077
15117
  * Given:
15078
- * ```
15118
+ * ```ts
15079
15119
  * interface Person {readonly name: string}
15080
15120
  * ```
15081
15121
  *
15082
15122
  * We would like to get a read/write version of `Person`.
15083
- * ```
15123
+ * ```ts
15084
15124
  * const WritablePerson = Writable<Person>;
15085
15125
  * ```
15086
15126
  *
15087
15127
  * The result is that you can do:
15088
15128
  *
15089
- * ```
15129
+ * ```ts
15090
15130
  * const readonlyPerson: Person = {name: 'Marry'};
15091
15131
  * readonlyPerson.name = 'John'; // TypeError
15092
15132
  * (readonlyPerson as WritablePerson).name = 'John'; // OK
@@ -15135,6 +15175,18 @@ export declare const ɵZONELESS_ENABLED: InjectionToken<boolean>;
15135
15175
  */
15136
15176
  export declare function ɵɵadvance(delta?: number): void;
15137
15177
 
15178
+ /**
15179
+ * Sets the location within the source template at which
15180
+ * each element in the current view was defined.
15181
+ *
15182
+ * @param index Index at which the DOM node was created.
15183
+ * @param templatePath Path to the template at which the node was defined.
15184
+ * @param locations Element locations to which to attach the source location.
15185
+ *
15186
+ * @codeGenApi
15187
+ */
15188
+ export declare function ɵɵattachSourceLocations(templatePath: string, locations: [index: number, offset: number, line: number, column: number][]): void;
15189
+
15138
15190
  /**
15139
15191
  * Updates the value of or removes a bound attribute on an Element.
15140
15192
  *
@@ -16027,7 +16079,7 @@ export declare function ɵɵdeferWhen(rawValue: unknown): void;
16027
16079
  *
16028
16080
  *
16029
16081
  * # Example
16030
- * ```
16082
+ * ```ts
16031
16083
  * class MyComponent {
16032
16084
  * // Generated by Angular Template Compiler
16033
16085
  * // [Symbol] syntax will not be supported by TypeScript until v2.7
@@ -16131,7 +16183,7 @@ export declare function ɵɵdefineNgModule<T>(def: {
16131
16183
  * Create a pipe definition object.
16132
16184
  *
16133
16185
  * # Example
16134
- * ```
16186
+ * ```ts
16135
16187
  * class MyPipe implements PipeTransform {
16136
16188
  * // Generated by Angular Template Compiler
16137
16189
  * static ɵpipe = definePipe({
@@ -16202,7 +16254,7 @@ export declare function ɵɵdirectiveInject<T>(token: ProviderToken<T>, flags: I
16202
16254
  * Disables directive matching on element.
16203
16255
  *
16204
16256
  * * Example:
16205
- * ```
16257
+ * ```html
16206
16258
  * <my-comp my-directive>
16207
16259
  * Should match component / directive.
16208
16260
  * </my-comp>
@@ -16300,7 +16352,7 @@ export declare function ɵɵelementStart(index: number, name: string, attrsIndex
16300
16352
  * Enables directive matching on elements.
16301
16353
  *
16302
16354
  * * Example:
16303
- * ```
16355
+ * ```html
16304
16356
  * <my-comp my-directive>
16305
16357
  * Should match component / directive.
16306
16358
  * </my-comp>
@@ -16807,7 +16859,7 @@ export declare type ɵɵNgModuleDeclaration<T, Declarations, Imports, Exports> =
16807
16859
  *
16808
16860
  * Example usage:
16809
16861
  *
16810
- * ```
16862
+ * ```ts
16811
16863
  * static ɵcmp = defineComponent({
16812
16864
  * ...
16813
16865
  * inputs: {name: 'publicName'},