diff --git a/guides/creating-a-custom-stepper-using-the-cdk-stepper.md b/guides/creating-a-custom-stepper-using-the-cdk-stepper.md
index 615f241950dd..c116bfb92f40 100644
--- a/guides/creating-a-custom-stepper-using-the-cdk-stepper.md
+++ b/guides/creating-a-custom-stepper-using-the-cdk-stepper.md
@@ -45,14 +45,11 @@ This is the HTML template of our custom stepper component:
@@ -117,9 +114,11 @@ If you want to iterate over your steps and use your own custom component you can
```html
just a cell | + @for (element of elements; track element) { +||||
just a cell | -- ${CELL_TEMPLATE} + |
+ ${CELL_TEMPLATE}
- |
+ - {{element.weight}} + |
+ {{element.weight}}
- |
-
Header {{column}} | -{{column}} | -Footer {{column}} | -Header {{column}} | +{{column}} | +Footer {{column}} | +
---|---|---|---|
Header {{column}} | -{{column}} | -Footer {{column}} | -Header {{column}} | +{{column}} | +Footer {{column}} | +
---|---|---|---|
No. | First name | Middle name | Last name |
{{person.id}} | -- {{person.firstName}} - - - - - | - -- {{person.middleName}} - - - - - | - -- {{person.lastName}} - - - - - | -
{{person.id}} | + ++ {{person.firstName}} + + + + + | + ++ {{person.middleName}} + + + + + | + ++ {{person.lastName}} + + + + + | +
native input
mat-checkbox
Single select with mat-checkbox
with trackBy
- Your appointment is scheduled for {{formatAppointment() | json}} -
+@if (appointment[0]) { ++ Your appointment is scheduled for {{formatAppointment() | json}} +
+} diff --git a/src/components-examples/cdk/listbox/cdk-listbox-compare-with/cdk-listbox-compare-with-example.ts b/src/components-examples/cdk/listbox/cdk-listbox-compare-with/cdk-listbox-compare-with-example.ts index 9a1e2103c828..fc79ef4ac178 100644 --- a/src/components-examples/cdk/listbox/cdk-listbox-compare-with/cdk-listbox-compare-with-example.ts +++ b/src/components-examples/cdk/listbox/cdk-listbox-compare-with/cdk-listbox-compare-with-example.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {NgFor, NgIf, JsonPipe} from '@angular/common'; +import {JsonPipe} from '@angular/common'; import {CdkListbox, CdkOption} from '@angular/cdk/listbox'; const today = new Date(); @@ -19,7 +19,7 @@ const formatter = new Intl.DateTimeFormat(undefined, { templateUrl: 'cdk-listbox-compare-with-example.html', styleUrls: ['cdk-listbox-compare-with-example.css'], standalone: true, - imports: [CdkListbox, NgFor, CdkOption, NgIf, JsonPipe], + imports: [CdkListbox, CdkOption, JsonPipe], }) export class CdkListboxCompareWithExample { slots = [12, 13, 14, 15].map( diff --git a/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.html b/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.html index 5cc648351875..391e26f1a7b2 100644 --- a/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.html +++ b/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.html @@ -6,16 +6,18 @@ [formControl]="signCtrl" aria-labelledby="example-zodiac-sign-label" class="example-listbox"> -{{error}}
-{{error}}
+ } +Your zodiac sign is: {{signCtrl.value | json}} diff --git a/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.ts b/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.ts index ff6e9c215d57..a8ca73893fb4 100644 --- a/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.ts +++ b/src/components-examples/cdk/listbox/cdk-listbox-forms-validation/cdk-listbox-forms-validation-example.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {map} from 'rxjs/operators'; import {Observable} from 'rxjs'; -import {NgFor, NgIf, AsyncPipe, JsonPipe} from '@angular/common'; +import {AsyncPipe, JsonPipe} from '@angular/common'; import {CdkListbox, CdkOption} from '@angular/cdk/listbox'; /** @title Listbox with forms validation. */ @@ -12,16 +12,7 @@ import {CdkListbox, CdkOption} from '@angular/cdk/listbox'; templateUrl: 'cdk-listbox-forms-validation-example.html', styleUrls: ['cdk-listbox-forms-validation-example.css'], standalone: true, - imports: [ - CdkListbox, - FormsModule, - ReactiveFormsModule, - NgFor, - CdkOption, - NgIf, - AsyncPipe, - JsonPipe, - ], + imports: [CdkListbox, FormsModule, ReactiveFormsModule, CdkOption, AsyncPipe, JsonPipe], }) export class CdkListboxFormsValidationExample { signs = [ diff --git a/src/components-examples/cdk/listbox/cdk-listbox-horizontal/cdk-listbox-horizontal-example.html b/src/components-examples/cdk/listbox/cdk-listbox-horizontal/cdk-listbox-horizontal-example.html index 08b362fb333b..5b5e6f19b386 100644 --- a/src/components-examples/cdk/listbox/cdk-listbox-horizontal/cdk-listbox-horizontal-example.html +++ b/src/components-examples/cdk/listbox/cdk-listbox-horizontal/cdk-listbox-horizontal-example.html @@ -6,10 +6,8 @@ cdkListboxOrientation="horizontal" aria-labelledby="example-shirt-size-label" class="example-listbox"> -
native input
mat-checkbox
Single select with mat-checkbox
with trackBy
Selected range: {{range.value | json}}
diff --git a/src/components-examples/material/datepicker/date-range-picker-forms/date-range-picker-forms-example.ts b/src/components-examples/material/datepicker/date-range-picker-forms/date-range-picker-forms-example.ts index 2074169d3cfa..b1b4d92a3460 100644 --- a/src/components-examples/material/datepicker/date-range-picker-forms/date-range-picker-forms-example.ts +++ b/src/components-examples/material/datepicker/date-range-picker-forms/date-range-picker-forms-example.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {FormGroup, FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {NgIf, JsonPipe} from '@angular/common'; +import {JsonPipe} from '@angular/common'; import {MatDatepickerModule} from '@angular/material/datepicker'; import {MatFormFieldModule} from '@angular/material/form-field'; import {MatNativeDateModule} from '@angular/material/core'; @@ -15,7 +15,6 @@ import {MatNativeDateModule} from '@angular/material/core'; MatDatepickerModule, FormsModule, ReactiveFormsModule, - NgIf, JsonPipe, MatNativeDateModule, ], diff --git a/src/components-examples/material/datepicker/datepicker-events/datepicker-events-example.html b/src/components-examples/material/datepicker/datepicker-events/datepicker-events-example.html index 208548d84935..1dc59fb2450d 100644 --- a/src/components-examples/material/datepicker/datepicker-events/datepicker-events-example.html +++ b/src/components-examples/material/datepicker/datepicker-events/datepicker-events-example.html @@ -8,5 +8,7 @@
diff --git a/src/components-examples/material/list/list-selection/list-selection-example.ts b/src/components-examples/material/list/list-selection/list-selection-example.ts
index 2d5c04ecb1a5..2209654a7771 100644
--- a/src/components-examples/material/list/list-selection/list-selection-example.ts
+++ b/src/components-examples/material/list/list-selection/list-selection-example.ts
@@ -1,5 +1,4 @@
import {Component} from '@angular/core';
-import {NgFor} from '@angular/common';
import {MatListModule} from '@angular/material/list';
/**
@@ -9,7 +8,7 @@ import {MatListModule} from '@angular/material/list';
selector: 'list-selection-example',
templateUrl: 'list-selection-example.html',
standalone: true,
- imports: [MatListModule, NgFor],
+ imports: [MatListModule],
})
export class ListSelectionExample {
typesOfShoes: string[] = ['Boots', 'Clogs', 'Loafers', 'Moccasins', 'Sneakers'];
diff --git a/src/components-examples/material/list/list-single-selection/list-single-selection-example.html b/src/components-examples/material/list/list-single-selection/list-single-selection-example.html
index c08d6106d477..0c653bd3b6da 100644
--- a/src/components-examples/material/list/list-single-selection/list-single-selection-example.html
+++ b/src/components-examples/material/list/list-single-selection/list-single-selection-example.html
@@ -1,7 +1,7 @@
diff --git a/src/components-examples/material/list/list-single-selection/list-single-selection-example.ts b/src/components-examples/material/list/list-single-selection/list-single-selection-example.ts index c9a06a75e45c..c848f921fe8c 100644 --- a/src/components-examples/material/list/list-single-selection/list-single-selection-example.ts +++ b/src/components-examples/material/list/list-single-selection/list-single-selection-example.ts @@ -1,5 +1,4 @@ import {Component} from '@angular/core'; -import {NgFor} from '@angular/common'; import {MatListModule} from '@angular/material/list'; /** @@ -9,7 +8,7 @@ import {MatListModule} from '@angular/material/list'; selector: 'list-single-selection-example', templateUrl: 'list-single-selection-example.html', standalone: true, - imports: [MatListModule, NgFor], + imports: [MatListModule], }) export class ListSingleSelectionExample { typesOfShoes: string[] = ['Boots', 'Clogs', 'Loafers', 'Moccasins', 'Sneakers']; diff --git a/src/components-examples/material/progress-bar/progress-bar-configurable/progress-bar-configurable-example.html b/src/components-examples/material/progress-bar/progress-bar-configurable/progress-bar-configurable-example.html index 1e658b2cced3..100f7afff8fc 100644 --- a/src/components-examples/material/progress-bar/progress-bar-configurable/progress-bar-configurable-example.html +++ b/src/components-examples/material/progress-bar/progress-bar-configurable/progress-bar-configurable-example.html @@ -35,18 +35,22 @@
Selected food: {{selectedValue}}
@@ -14,9 +14,9 @@Selected car: {{selectedCar}}
diff --git a/src/components-examples/material/select/select-form/select-form-example.ts b/src/components-examples/material/select/select-form/select-form-example.ts index 5e87a68ea320..e06de0971da4 100644 --- a/src/components-examples/material/select/select-form/select-form-example.ts +++ b/src/components-examples/material/select/select-form/select-form-example.ts @@ -1,6 +1,5 @@ import {Component} from '@angular/core'; import {MatInputModule} from '@angular/material/input'; -import {NgFor} from '@angular/common'; import {MatSelectModule} from '@angular/material/select'; import {MatFormFieldModule} from '@angular/material/form-field'; import {FormsModule} from '@angular/forms'; @@ -22,7 +21,7 @@ interface Car { selector: 'select-form-example', templateUrl: 'select-form-example.html', standalone: true, - imports: [FormsModule, MatFormFieldModule, MatSelectModule, NgFor, MatInputModule], + imports: [FormsModule, MatFormFieldModule, MatSelectModule, MatInputModule], }) export class SelectFormExample { selectedValue: string; diff --git a/src/components-examples/material/select/select-harness/select-harness-example.html b/src/components-examples/material/select/select-harness/select-harness-example.html index e41f610c08d1..687e19334a62 100644 --- a/src/components-examples/material/select/select-harness/select-harness-example.html +++ b/src/components-examples/material/select/select-harness/select-harness-example.html @@ -1,8 +1,8 @@You selected: {{selectedFood}}
@@ -13,8 +15,10 @@You selected: {{selectedCar}}
diff --git a/src/components-examples/material/select/select-initial-value/select-initial-value-example.ts b/src/components-examples/material/select/select-initial-value/select-initial-value-example.ts index 0688b7f3539f..dfa6782a0eef 100644 --- a/src/components-examples/material/select/select-initial-value/select-initial-value-example.ts +++ b/src/components-examples/material/select/select-initial-value/select-initial-value-example.ts @@ -1,7 +1,6 @@ import {Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatInputModule} from '@angular/material/input'; -import {NgFor} from '@angular/common'; import {MatSelectModule} from '@angular/material/select'; import {MatFormFieldModule} from '@angular/material/form-field'; @@ -22,7 +21,7 @@ interface Car { selector: 'select-initial-value-example', templateUrl: 'select-initial-value-example.html', standalone: true, - imports: [MatFormFieldModule, MatSelectModule, NgFor, MatInputModule, FormsModule], + imports: [MatFormFieldModule, MatSelectModule, MatInputModule, FormsModule], }) export class SelectInitialValueExample { foods: Food[] = [ diff --git a/src/components-examples/material/select/select-multiple/select-multiple-example.html b/src/components-examples/material/select/select-multiple/select-multiple-example.html index 2f617c7221fc..1387a62bd98c 100644 --- a/src/components-examples/material/select/select-multiple/select-multiple-example.html +++ b/src/components-examples/material/select/select-multiple/select-multiple-example.html @@ -1,6 +1,8 @@Selected: {{foodControl.value}}
@@ -15,9 +15,9 @@Selected: {{carControl.value}}
diff --git a/src/components-examples/material/select/select-reactive-form/select-reactive-form-example.ts b/src/components-examples/material/select/select-reactive-form/select-reactive-form-example.ts index 816341b06dff..67f07d8003ba 100644 --- a/src/components-examples/material/select/select-reactive-form/select-reactive-form-example.ts +++ b/src/components-examples/material/select/select-reactive-form/select-reactive-form-example.ts @@ -1,7 +1,6 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatInputModule} from '@angular/material/input'; -import {NgFor} from '@angular/common'; import {MatSelectModule} from '@angular/material/select'; import {MatFormFieldModule} from '@angular/material/form-field'; @@ -22,14 +21,7 @@ interface Car { selector: 'select-reactive-form-example', templateUrl: 'select-reactive-form-example.html', standalone: true, - imports: [ - FormsModule, - ReactiveFormsModule, - MatFormFieldModule, - MatSelectModule, - NgFor, - MatInputModule, - ], + imports: [FormsModule, ReactiveFormsModule, MatFormFieldModule, MatSelectModule, MatInputModule], }) export class SelectReactiveFormExample { foods: Food[] = [ diff --git a/src/components-examples/material/select/select-reset/select-reset-example.html b/src/components-examples/material/select/select-reset/select-reset-example.html index e0f734507aab..0b89556937b1 100644 --- a/src/components-examples/material/select/select-reset/select-reset-example.html +++ b/src/components-examples/material/select/select-reset/select-reset-example.html @@ -3,7 +3,9 @@Auto-resizing sidenav
-Lorem, ipsum dolor sit amet consectetur.
+ @if (showFiller) { +Lorem, ipsum dolor sit amet consectetur.
+ } diff --git a/src/components-examples/material/sidenav/sidenav-autosize/sidenav-autosize-example.ts b/src/components-examples/material/sidenav/sidenav-autosize/sidenav-autosize-example.ts index 8d7cc2a368a0..d6eea4d561e3 100644 --- a/src/components-examples/material/sidenav/sidenav-autosize/sidenav-autosize-example.ts +++ b/src/components-examples/material/sidenav/sidenav-autosize/sidenav-autosize-example.ts @@ -1,6 +1,5 @@ import {Component} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; -import {NgIf} from '@angular/common'; import {MatSidenavModule} from '@angular/material/sidenav'; /** @@ -11,7 +10,7 @@ import {MatSidenavModule} from '@angular/material/sidenav'; templateUrl: 'sidenav-autosize-example.html', styleUrls: ['sidenav-autosize-example.css'], standalone: true, - imports: [MatSidenavModule, NgIf, MatButtonModule], + imports: [MatSidenavModule, MatButtonModule], }) export class SidenavAutosizeExample { showFiller = false; diff --git a/src/components-examples/material/sidenav/sidenav-configurable-focus-trap/sidenav-configurable-focus-trap-example.html b/src/components-examples/material/sidenav/sidenav-configurable-focus-trap/sidenav-configurable-focus-trap-example.html index e9542d34307c..e6b0821ca811 100644 --- a/src/components-examples/material/sidenav/sidenav-configurable-focus-trap/sidenav-configurable-focus-trap-example.html +++ b/src/components-examples/material/sidenav/sidenav-configurable-focus-trap/sidenav-configurable-focus-trap-example.html @@ -1,36 +1,39 @@ -- -
-+ +
+
-
- -
-
+
+ +
+Closed due to: {{reason}}
-Closed due to: {{reason}}
+
-
+
-
+
Events:
-Events:
+{{content}}
-{{content}}
+ } +{{column}} | -{{element[column]}} | -{{column}} | +{{element[column]}} | +|
---|---|---|---|---|
{{column}} | -{{element[column]}} | -{{column}} | +{{element[column]}} | +
---|
- {{column.header}} - | -- {{column.cell(row)}} - | -+ {{column.header}} + | ++ {{column.cell(row)}} + | +
---|---|---|---|
Position | -{{element.position}} | -Position Footer | -
---|
Position | +{{element.position}} | +Position Footer | +Name | -{{element.name}} | -Name Footer | -Name | +{{element.name}} | +Name Footer | +Weight | -{{element.weight}} | -Weight Footer | -Weight | +{{element.weight}} | +Weight Footer | +Symbol | -{{element.symbol}} | -Symbol Footer | -Symbol | +{{element.symbol}} | +Symbol Footer | +Filler header cell | -Filler data cell | -Filler footer cell | -Filler header cell | +Filler data cell | +Filler footer cell | +
---|
@@ -66,21 +67,25 @@
@@ -89,9 +94,9 @@ TOGGLE DISABLED
@@ -141,8 +146,11 @@
Your favorite type of pie is: {{favoritePie}}
Last input: {{lastDateInput}}
@@ -110,10 +126,12 @@Expansion Panel Animation Events
- {{event}}
+ @for (event of events; track event) {
+ {{event}}
+ }
This is the content text that makes sense here.
-I only show if item 1 is expanded
+ @if (item1.expanded) { +I only show if item 1 is expanded
+ }@@ -110,7 +118,9 @@
I only show if item 2 is expanded
+ @if (item2.expanded) { +I only show if item 2 is expanded
+ }@@ -118,7 +128,9 @@
I only show if item 3 is expanded
+ @if (item3.expanded) { +I only show if item 3 is expanded
+ }{{display?.lat}}
-{{display?.lng}}
- -{{display?.lat}}
+{{display?.lng}}
+ +Supported input types: - {{type}}, + @for (type of supportedInputTypes; track type) { + {{type}}, + }
diff --git a/src/dev-app/portal/portal-demo.html b/src/dev-app/portal/portal-demo.html index bdb0e648447c..e6aaefc7b2c8 100644 --- a/src/dev-app/portal/portal-demo.html +++ b/src/dev-app/portal/portal-demo.html @@ -21,7 +21,7 @@Your favorite season is: {{favoriteSeason}}
@@ -73,9 +75,11 @@
Value: {{ currentPokemon }}
@@ -85,7 +89,9 @@@@ -104,9 +110,9 @@
Value: {{ currentDrinkObject | json }}
@@ -174,9 +181,9 @@Value: {{ foodControl.value }}
-Touched: {{ foodControl.touched }}
-Dirty: {{ foodControl.dirty }}
-Status: {{ foodControl.status }}
- - - -Value: {{ foodControl.value }}
+Touched: {{ foodControl.touched }}
+Dirty: {{ foodControl.dirty }}
+Status: {{ foodControl.status }}
+ + + +Change event value: {{ latestChangeEvent?.value }}
-Change event value: {{ latestChangeEvent?.value }}
+Show button on snack bar
-Show button on snack bar
+ }Auto hide after duration
-Auto hide after duration
+ }
diff --git a/src/dev-app/stepper/stepper-demo.html b/src/dev-app/stepper/stepper-demo.html
index 9b6004bb2d8d..1dd2a5e94cda 100644
--- a/src/dev-app/stepper/stepper-demo.html
+++ b/src/dev-app/stepper/stepper-demo.html
@@ -16,7 +16,9 @@
Position | -{{element.position}} | -Position Footer | -
---|
Position | +{{element.position}} | +Position Footer | +Name | -{{element.name}} | -Name Footer | -Name | +{{element.name}} | +Name Footer | +Weight | -{{element.weight}} | -Weight Footer | -Weight | +{{element.weight}} | +Weight Footer | +Symbol | -{{element.symbol}} | -Symbol Footer | -Symbol | +{{element.symbol}} | +Symbol Footer | +Filler header cell | -Filler data cell | -Filler footer cell | -Filler header cell | +Filler data cell | +Filler footer cell | +
---|
{{folder.updated}}
-{{folder.updated}}
+ @if (!$last) { +{{note.updated}}
-{{note.updated}}
+Content
-Content
+- {{message.subject}} - -- {{message.content}} -
-+ {{message.subject}} + -- {{message.content}} +
+{{message.subject}}
-{{message.content}}
-{{message.subject}}
+{{message.content}}
+- {{message.subject}} - -- {{message.content}} -
-+ {{message.subject}} + -- {{message.content}} +
+- {{message.subject}} - -- {{message.content}} -
-+ {{message.subject}} + -- {{message.content}} +
+{{folder.updated}}
-{{folder.updated}}
+{{note.updated}}
-{{note.updated}}
+{{item.description}}
-{{item.description}}
+{{item.description}}
-Some other text
-{{item.description}}
+Some other text
+Line 2
-Line 3
-Line 4
-Line 2
+Line 3
+Line 4
+{{item.description}}
-{{item.description}}
+{{item.description}}
-Some other text
-{{item.description}}
+ @if (showThirdLine) { +Some other text
+ } +