diff --git a/src/dev-app/autocomplete/autocomplete-demo.ts b/src/dev-app/autocomplete/autocomplete-demo.ts index 139afbea4c04..b1c366ac9b52 100644 --- a/src/dev-app/autocomplete/autocomplete-demo.ts +++ b/src/dev-app/autocomplete/autocomplete-demo.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; +import {JsonPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core'; import {FormControl, FormsModule, NgModel, ReactiveFormsModule} from '@angular/forms'; import {MatAutocompleteModule} from '@angular/material/autocomplete'; @@ -36,7 +36,7 @@ type DisableStateOption = 'none' | 'first-middle-last' | 'all'; styleUrl: 'autocomplete-demo.css', standalone: true, imports: [ - CommonModule, + JsonPipe, FormsModule, MatAutocompleteModule, MatButtonModule, @@ -246,7 +246,7 @@ export class AutocompleteDemo { } `, standalone: true, - imports: [CommonModule, FormsModule, MatAutocompleteModule, MatButtonModule, MatInputModule], + imports: [FormsModule, MatAutocompleteModule, MatButtonModule, MatInputModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class AutocompleteDemoExampleDialog { diff --git a/src/dev-app/badge/badge-demo.ts b/src/dev-app/badge/badge-demo.ts index 7599af0a5c13..42d42de7e2ba 100644 --- a/src/dev-app/badge/badge-demo.ts +++ b/src/dev-app/badge/badge-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatBadgeModule} from '@angular/material/badge'; @@ -18,7 +17,7 @@ import {MatIconModule} from '@angular/material/icon'; templateUrl: 'badge-demo.html', styleUrl: 'badge-demo.css', standalone: true, - imports: [CommonModule, FormsModule, MatBadgeModule, MatButtonModule, MatIconModule], + imports: [FormsModule, MatBadgeModule, MatButtonModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class BadgeDemo { diff --git a/src/dev-app/baseline/baseline-demo.ts b/src/dev-app/baseline/baseline-demo.ts index 9cff750d98ae..b9b75dc5b417 100644 --- a/src/dev-app/baseline/baseline-demo.ts +++ b/src/dev-app/baseline/baseline-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MatCardModule} from '@angular/material/card'; import {MatCheckboxModule} from '@angular/material/checkbox'; @@ -22,7 +21,6 @@ import {MatToolbarModule} from '@angular/material/toolbar'; styleUrl: 'baseline-demo.css', standalone: true, imports: [ - CommonModule, MatCardModule, MatCheckboxModule, MatFormFieldModule, diff --git a/src/dev-app/bottom-sheet/bottom-sheet-demo.ts b/src/dev-app/bottom-sheet/bottom-sheet-demo.ts index da1ca26be10e..f56c05a4513c 100644 --- a/src/dev-app/bottom-sheet/bottom-sheet-demo.ts +++ b/src/dev-app/bottom-sheet/bottom-sheet-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component, TemplateRef, ViewChild, inject} from '@angular/core'; import {FormsModule} from '@angular/forms'; import { @@ -32,7 +31,6 @@ const defaultConfig = new MatBottomSheetConfig(); templateUrl: 'bottom-sheet-demo.html', standalone: true, imports: [ - CommonModule, FormsModule, MatBottomSheetModule, MatButtonModule, @@ -80,7 +78,7 @@ export class BottomSheetDemo { `, standalone: true, - imports: [CommonModule, MatListModule], + imports: [MatListModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class ExampleBottomSheet { diff --git a/src/dev-app/button-toggle/button-toggle-demo.ts b/src/dev-app/button-toggle/button-toggle-demo.ts index 1d02c00a3d11..f717583db871 100644 --- a/src/dev-app/button-toggle/button-toggle-demo.ts +++ b/src/dev-app/button-toggle/button-toggle-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonToggleModule} from '@angular/material/button-toggle'; @@ -18,7 +17,7 @@ import {MatIconModule} from '@angular/material/icon'; templateUrl: 'button-toggle-demo.html', styleUrl: 'button-toggle-demo.css', standalone: true, - imports: [CommonModule, FormsModule, MatButtonToggleModule, MatCheckboxModule, MatIconModule], + imports: [FormsModule, MatButtonToggleModule, MatCheckboxModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class ButtonToggleDemo { diff --git a/src/dev-app/cdk-experimental-combobox/cdk-combobox-demo.ts b/src/dev-app/cdk-experimental-combobox/cdk-combobox-demo.ts index c362d17f2b3f..db411d6b8ce8 100644 --- a/src/dev-app/cdk-experimental-combobox/cdk-combobox-demo.ts +++ b/src/dev-app/cdk-experimental-combobox/cdk-combobox-demo.ts @@ -7,13 +7,12 @@ */ import {CdkComboboxModule} from '@angular/cdk-experimental/combobox'; -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; @Component({ templateUrl: 'cdk-combobox-demo.html', standalone: true, - imports: [CdkComboboxModule, CommonModule], + imports: [CdkComboboxModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class CdkComboboxDemo {} diff --git a/src/dev-app/cdk-menu/cdk-menu-demo.ts b/src/dev-app/cdk-menu/cdk-menu-demo.ts index b3acb783e900..c80023e11147 100644 --- a/src/dev-app/cdk-menu/cdk-menu-demo.ts +++ b/src/dev-app/cdk-menu/cdk-menu-demo.ts @@ -8,7 +8,6 @@ import {CdkMenuModule} from '@angular/cdk/menu'; import {ConnectedPosition} from '@angular/cdk/overlay'; -import {CommonModule} from '@angular/common'; import { CdkMenuContextExample, CdkMenuInlineExample, @@ -25,7 +24,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; standalone: true, imports: [ CdkMenuModule, - CommonModule, CdkMenuStandaloneMenuExample, CdkMenuStandaloneStatefulMenuExample, CdkMenuMenubarExample, diff --git a/src/dev-app/checkbox/checkbox-demo.ts b/src/dev-app/checkbox/checkbox-demo.ts index d31de6c036cb..bcf866c34801 100644 --- a/src/dev-app/checkbox/checkbox-demo.ts +++ b/src/dev-app/checkbox/checkbox-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ANIMATION_MODULE_TYPE, ChangeDetectionStrategy, Component, Directive} from '@angular/core'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MAT_CHECKBOX_DEFAULT_OPTIONS, MatCheckboxModule} from '@angular/material/checkbox'; @@ -51,7 +50,7 @@ export class AnimationsNoop {} `, templateUrl: 'nested-checklist.html', standalone: true, - imports: [CommonModule, MatCheckboxModule, FormsModule], + imports: [MatCheckboxModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class MatCheckboxDemoNestedChecklist { @@ -104,7 +103,6 @@ export class MatCheckboxDemoNestedChecklist { styleUrl: 'checkbox-demo.css', standalone: true, imports: [ - CommonModule, FormsModule, MatCheckboxModule, MatInputModule, diff --git a/src/dev-app/chips/chips-demo.ts b/src/dev-app/chips/chips-demo.ts index 13e7befc85b5..a867f673ab41 100644 --- a/src/dev-app/chips/chips-demo.ts +++ b/src/dev-app/chips/chips-demo.ts @@ -8,7 +8,6 @@ import {LiveAnnouncer} from '@angular/cdk/a11y'; import {COMMA, ENTER} from '@angular/cdk/keycodes'; -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; @@ -35,7 +34,6 @@ export interface DemoColor { styleUrl: 'chips-demo.css', standalone: true, imports: [ - CommonModule, FormsModule, MatButtonModule, MatCardModule, diff --git a/src/dev-app/connected-overlay/connected-overlay-demo.ts b/src/dev-app/connected-overlay/connected-overlay-demo.ts index f3fcdce5b683..a03acad621f2 100644 --- a/src/dev-app/connected-overlay/connected-overlay-demo.ts +++ b/src/dev-app/connected-overlay/connected-overlay-demo.ts @@ -16,7 +16,6 @@ import { VerticalConnectionPos, } from '@angular/cdk/overlay'; import {TemplatePortal} from '@angular/cdk/portal'; -import {CommonModule} from '@angular/common'; import {CdkOverlayBasicExample} from '@angular/components-examples/cdk/overlay'; import { ChangeDetectionStrategy, @@ -40,7 +39,6 @@ import {MatRadioModule} from '@angular/material/radio'; standalone: true, imports: [ CdkOverlayBasicExample, - CommonModule, FormsModule, MatButtonModule, MatCheckboxModule, diff --git a/src/dev-app/datepicker/datepicker-demo.ts b/src/dev-app/datepicker/datepicker-demo.ts index 7968268a8553..4e67b1db6212 100644 --- a/src/dev-app/datepicker/datepicker-demo.ts +++ b/src/dev-app/datepicker/datepicker-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -18,6 +17,7 @@ import { ViewEncapsulation, inject, } from '@angular/core'; +import {JsonPipe} from '@angular/common'; import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatCheckboxModule} from '@angular/material/checkbox'; @@ -179,7 +179,7 @@ export class CustomHeaderNgContent { changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ - CommonModule, + JsonPipe, FormsModule, MatButtonModule, MatCheckboxModule, diff --git a/src/dev-app/dev-app/dev-app-layout.html b/src/dev-app/dev-app/dev-app-layout.html index 2d390d2ac39f..12bb738e38fb 100644 --- a/src/dev-app/dev-app/dev-app-layout.html +++ b/src/dev-app/dev-app/dev-app-layout.html @@ -32,7 +32,7 @@ be one level above the density class in the DOM. At the same time, we want the density to apply to the toolbar while always keeping it in LTR at the same time. --> -
+
diff --git a/src/dev-app/dev-app/dev-app-layout.ts b/src/dev-app/dev-app/dev-app-layout.ts index 35051cb8c19c..506e5c0839ae 100644 --- a/src/dev-app/dev-app/dev-app-layout.ts +++ b/src/dev-app/dev-app/dev-app-layout.ts @@ -7,7 +7,7 @@ */ import {Direction, Directionality} from '@angular/cdk/bidi'; -import {CommonModule, DOCUMENT} from '@angular/common'; +import {DOCUMENT} from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -37,7 +37,6 @@ import {DevAppDirectionality} from './dev-app-directionality'; encapsulation: ViewEncapsulation.None, standalone: true, imports: [ - CommonModule, MatButtonModule, MatIconModule, MatListModule, diff --git a/src/dev-app/dialog/dialog-demo.ts b/src/dev-app/dialog/dialog-demo.ts index 6bde5f83775e..dcec8d05ad30 100644 --- a/src/dev-app/dialog/dialog-demo.ts +++ b/src/dev-app/dialog/dialog-demo.ts @@ -44,6 +44,7 @@ import {MatSelectModule} from '@angular/material/select'; encapsulation: ViewEncapsulation.None, standalone: true, imports: [ + JsonPipe, FormsModule, MatButtonModule, MatCardModule, diff --git a/src/dev-app/drag-drop/drag-drop-demo.ts b/src/dev-app/drag-drop/drag-drop-demo.ts index d027d074ee17..679e232f92da 100644 --- a/src/dev-app/drag-drop/drag-drop-demo.ts +++ b/src/dev-app/drag-drop/drag-drop-demo.ts @@ -17,7 +17,6 @@ import { Point, DragRef, } from '@angular/cdk/drag-drop'; -import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {MatFormFieldModule} from '@angular/material/form-field'; import {MatInputModule} from '@angular/material/input'; @@ -32,7 +31,6 @@ import {MatCheckbox} from '@angular/material/checkbox'; changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ - CommonModule, DragDropModule, FormsModule, MatFormFieldModule, diff --git a/src/dev-app/example/example-list.ts b/src/dev-app/example/example-list.ts index b2a7c88e746d..cc8b3cf4b075 100644 --- a/src/dev-app/example/example-list.ts +++ b/src/dev-app/example/example-list.ts @@ -7,7 +7,6 @@ */ import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion'; -import {CommonModule} from '@angular/common'; import {EXAMPLE_COMPONENTS} from '@angular/components-examples'; import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; import {MatExpansionModule} from '@angular/material/expansion'; @@ -17,7 +16,7 @@ import {Example} from './example'; @Component({ selector: 'material-example-list', standalone: true, - imports: [CommonModule, MatExpansionModule, Example], + imports: [MatExpansionModule, Example], template: ` @for (id of ids; track id) { diff --git a/src/dev-app/example/example.ts b/src/dev-app/example/example.ts index 722a0ffd8097..d0c962723864 100644 --- a/src/dev-app/example/example.ts +++ b/src/dev-app/example/example.ts @@ -17,14 +17,12 @@ import { inject, } from '@angular/core'; import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion'; -import {CommonModule} from '@angular/common'; import {EXAMPLE_COMPONENTS} from '@angular/components-examples'; import {loadExample} from '@angular/components-examples/private'; @Component({ selector: 'material-example', standalone: true, - imports: [CommonModule], template: ` @if (showLabel) {
diff --git a/src/dev-app/expansion/expansion-demo.ts b/src/dev-app/expansion/expansion-demo.ts index 609a1d82690f..c7f1e944211f 100644 --- a/src/dev-app/expansion/expansion-demo.ts +++ b/src/dev-app/expansion/expansion-demo.ts @@ -7,7 +7,6 @@ */ import {CdkAccordionModule} from '@angular/cdk/accordion'; -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; @@ -30,7 +29,6 @@ import {MatSlideToggleModule} from '@angular/material/slide-toggle'; standalone: true, imports: [ CdkAccordionModule, - CommonModule, FormsModule, MatButtonModule, MatCheckboxModule, diff --git a/src/dev-app/focus-trap/focus-trap-demo.ts b/src/dev-app/focus-trap/focus-trap-demo.ts index ed4e4d3547e1..6b73f9281b7b 100644 --- a/src/dev-app/focus-trap/focus-trap-demo.ts +++ b/src/dev-app/focus-trap/focus-trap-demo.ts @@ -8,7 +8,6 @@ import {A11yModule, CdkTrapFocus} from '@angular/cdk/a11y'; import {_supportsShadowDom} from '@angular/cdk/platform'; -import {CommonModule} from '@angular/common'; import { AfterViewInit, ChangeDetectionStrategy, @@ -47,14 +46,7 @@ export class FocusTrapShadowDomDemo {} templateUrl: 'focus-trap-demo.html', styleUrl: 'focus-trap-demo.css', standalone: true, - imports: [ - A11yModule, - CommonModule, - MatButtonModule, - MatCardModule, - MatToolbarModule, - FocusTrapShadowDomDemo, - ], + imports: [A11yModule, MatButtonModule, MatCardModule, MatToolbarModule, FocusTrapShadowDomDemo], changeDetection: ChangeDetectionStrategy.OnPush, }) export class FocusTrapDemo implements AfterViewInit { diff --git a/src/dev-app/google-map/google-map-demo.ts b/src/dev-app/google-map/google-map-demo.ts index 35e4e7118ec6..07448ec1f517 100644 --- a/src/dev-app/google-map/google-map-demo.ts +++ b/src/dev-app/google-map/google-map-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -69,7 +68,6 @@ let apiLoadingPromise: Promise | null = null; styleUrl: 'google-map-demo.css', standalone: true, imports: [ - CommonModule, GoogleMap, MapBicyclingLayer, MapCircle, diff --git a/src/dev-app/grid-list/grid-list-demo.ts b/src/dev-app/grid-list/grid-list-demo.ts index a6cdb9b62c22..cff42cd4a03b 100644 --- a/src/dev-app/grid-list/grid-list-demo.ts +++ b/src/dev-app/grid-list/grid-list-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; @@ -19,14 +18,7 @@ import {MatIconModule} from '@angular/material/icon'; templateUrl: 'grid-list-demo.html', styleUrl: 'grid-list-demo.css', standalone: true, - imports: [ - CommonModule, - FormsModule, - MatButtonModule, - MatCardModule, - MatGridListModule, - MatIconModule, - ], + imports: [FormsModule, MatButtonModule, MatCardModule, MatGridListModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class GridListDemo { diff --git a/src/dev-app/input-modality/input-modality-detector-demo.ts b/src/dev-app/input-modality/input-modality-detector-demo.ts index ea0f5548266d..e1f7bac6ab11 100644 --- a/src/dev-app/input-modality/input-modality-detector-demo.ts +++ b/src/dev-app/input-modality/input-modality-detector-demo.ts @@ -16,7 +16,6 @@ import { inject, } from '@angular/core'; -import {CommonModule} from '@angular/common'; import {MatButtonModule} from '@angular/material/button'; import {MatFormFieldModule} from '@angular/material/form-field'; import {MatInputModule} from '@angular/material/input'; @@ -31,7 +30,6 @@ import {takeUntil} from 'rxjs/operators'; standalone: true, imports: [ A11yModule, - CommonModule, MatButtonModule, MatFormFieldModule, MatInputModule, diff --git a/src/dev-app/input/input-demo.ts b/src/dev-app/input/input-demo.ts index 96c02e26501e..491b6c7abfa9 100644 --- a/src/dev-app/input/input-demo.ts +++ b/src/dev-app/input/input-demo.ts @@ -7,6 +7,7 @@ */ import {ChangeDetectionStrategy, Component} from '@angular/core'; +import {AsyncPipe} from '@angular/common'; import {FormControl, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms'; import { FloatLabelType, @@ -14,7 +15,6 @@ import { MatFormFieldModule, } from '@angular/material/form-field'; import {ErrorStateMatcher, ThemePalette} from '@angular/material/core'; -import {CommonModule} from '@angular/common'; import { FormFieldCustomControlExample, MyTelInput, @@ -42,7 +42,7 @@ const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ - CommonModule, + AsyncPipe, FormsModule, MatAutocompleteModule, MatButtonModule, diff --git a/src/dev-app/layout/layout-demo.ts b/src/dev-app/layout/layout-demo.ts index 58ca83ab791a..e30be52f7708 100644 --- a/src/dev-app/layout/layout-demo.ts +++ b/src/dev-app/layout/layout-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {BreakpointObserverOverviewExample} from '@angular/components-examples/cdk/layout'; import {ChangeDetectionStrategy, Component} from '@angular/core'; @@ -15,7 +14,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; templateUrl: 'layout-demo.html', styleUrl: 'layout-demo.css', standalone: true, - imports: [CommonModule, BreakpointObserverOverviewExample], + imports: [BreakpointObserverOverviewExample], changeDetection: ChangeDetectionStrategy.OnPush, }) export class LayoutDemo {} diff --git a/src/dev-app/list/list-demo.ts b/src/dev-app/list/list-demo.ts index 0cd3452d04dc..0f1d3cdd215c 100644 --- a/src/dev-app/list/list-demo.ts +++ b/src/dev-app/list/list-demo.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, ChangeDetectorRef, Component, inject} from '@angular/core'; +import {JsonPipe} from '@angular/common'; import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatIconModule} from '@angular/material/icon'; @@ -29,7 +29,7 @@ interface Shoes { styleUrl: 'list-demo.css', standalone: true, imports: [ - CommonModule, + JsonPipe, FormsModule, MatButtonModule, MatIconModule, diff --git a/src/dev-app/menu/menu-demo.ts b/src/dev-app/menu/menu-demo.ts index b614715a5877..b09ce0826081 100644 --- a/src/dev-app/menu/menu-demo.ts +++ b/src/dev-app/menu/menu-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; import {MatDividerModule} from '@angular/material/divider'; @@ -19,14 +18,7 @@ import {MatToolbarModule} from '@angular/material/toolbar'; templateUrl: 'menu-demo.html', styleUrl: 'menu-demo.css', standalone: true, - imports: [ - CommonModule, - MatMenuModule, - MatButtonModule, - MatToolbarModule, - MatIconModule, - MatDividerModule, - ], + imports: [MatMenuModule, MatButtonModule, MatToolbarModule, MatIconModule, MatDividerModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class MenuDemo { diff --git a/src/dev-app/paginator/paginator-demo.ts b/src/dev-app/paginator/paginator-demo.ts index 8ce9c7135f24..645247bfa3b7 100644 --- a/src/dev-app/paginator/paginator-demo.ts +++ b/src/dev-app/paginator/paginator-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import { PaginatorConfigurableExample, PaginatorOverviewExample, @@ -25,7 +24,6 @@ import {MatSlideToggleModule} from '@angular/material/slide-toggle'; styleUrl: 'paginator-demo.css', standalone: true, imports: [ - CommonModule, FormsModule, MatCardModule, MatFormFieldModule, diff --git a/src/dev-app/performance/performance-demo.ts b/src/dev-app/performance/performance-demo.ts index a490df3c6b2f..9054e14623ea 100644 --- a/src/dev-app/performance/performance-demo.ts +++ b/src/dev-app/performance/performance-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import { afterNextRender, AfterViewInit, @@ -34,7 +33,6 @@ import {MatTableDataSource, MatTableModule} from '@angular/material/table'; styleUrl: 'performance-demo.css', standalone: true, imports: [ - CommonModule, FormsModule, MatButtonModule, MatDividerModule, diff --git a/src/dev-app/platform/platform-demo.ts b/src/dev-app/platform/platform-demo.ts index d4e576f33e02..feca8f6691eb 100644 --- a/src/dev-app/platform/platform-demo.ts +++ b/src/dev-app/platform/platform-demo.ts @@ -8,13 +8,11 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {Platform, getSupportedInputTypes} from '@angular/cdk/platform'; -import {CommonModule} from '@angular/common'; @Component({ selector: 'platform-demo', templateUrl: 'platform-demo.html', standalone: true, - imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class PlatformDemo { diff --git a/src/dev-app/progress-bar/progress-bar-demo.ts b/src/dev-app/progress-bar/progress-bar-demo.ts index 79c4b97c965a..32fc74b92434 100644 --- a/src/dev-app/progress-bar/progress-bar-demo.ts +++ b/src/dev-app/progress-bar/progress-bar-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; @@ -19,13 +18,7 @@ import {MatProgressBarModule} from '@angular/material/progress-bar'; templateUrl: 'progress-bar-demo.html', styleUrl: 'progress-bar-demo.css', standalone: true, - imports: [ - CommonModule, - FormsModule, - MatProgressBarModule, - MatButtonModule, - MatButtonToggleModule, - ], + imports: [FormsModule, MatProgressBarModule, MatButtonModule, MatButtonToggleModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class ProgressBarDemo { diff --git a/src/dev-app/radio/radio-demo.ts b/src/dev-app/radio/radio-demo.ts index a432b8eee5ba..35f1284879f0 100644 --- a/src/dev-app/radio/radio-demo.ts +++ b/src/dev-app/radio/radio-demo.ts @@ -7,7 +7,6 @@ */ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatCheckboxModule} from '@angular/material/checkbox'; @@ -19,14 +18,7 @@ import {MatTooltip} from '@angular/material/tooltip'; templateUrl: 'radio-demo.html', styleUrl: 'radio-demo.css', standalone: true, - imports: [ - CommonModule, - MatRadioModule, - FormsModule, - MatButtonModule, - MatCheckboxModule, - MatTooltip, - ], + imports: [MatRadioModule, FormsModule, MatButtonModule, MatCheckboxModule, MatTooltip], changeDetection: ChangeDetectionStrategy.OnPush, }) export class RadioDemo { diff --git a/src/dev-app/screen-type/screen-type-demo.ts b/src/dev-app/screen-type/screen-type-demo.ts index 28928818f4a8..a50271005c8d 100644 --- a/src/dev-app/screen-type/screen-type-demo.ts +++ b/src/dev-app/screen-type/screen-type-demo.ts @@ -7,8 +7,8 @@ */ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; +import {AsyncPipe} from '@angular/common'; import {BreakpointObserver, BreakpointState, Breakpoints, LayoutModule} from '@angular/cdk/layout'; -import {CommonModule} from '@angular/common'; import {MatGridListModule} from '@angular/material/grid-list'; import {MatIconModule} from '@angular/material/icon'; import {Observable} from 'rxjs'; @@ -18,7 +18,7 @@ import {Observable} from 'rxjs'; templateUrl: 'screen-type-demo.html', styleUrl: 'screen-type-demo.css', standalone: true, - imports: [CommonModule, LayoutModule, MatGridListModule, MatIconModule], + imports: [AsyncPipe, LayoutModule, MatGridListModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class ScreenTypeDemo { diff --git a/src/dev-app/select/select-demo.ts b/src/dev-app/select/select-demo.ts index 7048d82bbbea..db2ca626f92b 100644 --- a/src/dev-app/select/select-demo.ts +++ b/src/dev-app/select/select-demo.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; +import {JsonPipe} from '@angular/common'; import {FormControl, FormsModule, ReactiveFormsModule, Validators} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatCardModule} from '@angular/material/card'; @@ -36,7 +36,7 @@ type DisableDrinkOption = 'none' | 'first-middle-last' | 'all'; styleUrl: 'select-demo.css', standalone: true, imports: [ - CommonModule, + JsonPipe, FormsModule, MatButtonModule, MatCardModule, diff --git a/src/dev-app/sidenav/sidenav-demo.ts b/src/dev-app/sidenav/sidenav-demo.ts index 150f37736403..9d39ac8078d9 100644 --- a/src/dev-app/sidenav/sidenav-demo.ts +++ b/src/dev-app/sidenav/sidenav-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; @@ -19,14 +18,7 @@ import {MatToolbarModule} from '@angular/material/toolbar'; templateUrl: 'sidenav-demo.html', styleUrl: 'sidenav-demo.css', standalone: true, - imports: [ - CommonModule, - FormsModule, - MatButtonModule, - MatCheckboxModule, - MatSidenavModule, - MatToolbarModule, - ], + imports: [FormsModule, MatButtonModule, MatCheckboxModule, MatSidenavModule, MatToolbarModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class SidenavDemo { diff --git a/src/dev-app/snack-bar/snack-bar-demo.ts b/src/dev-app/snack-bar/snack-bar-demo.ts index 306d08c38116..584d16e15a9e 100644 --- a/src/dev-app/snack-bar/snack-bar-demo.ts +++ b/src/dev-app/snack-bar/snack-bar-demo.ts @@ -7,7 +7,6 @@ */ import {Directionality} from '@angular/cdk/bidi'; -import {CommonModule} from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -34,14 +33,7 @@ import { styleUrl: 'snack-bar-demo.css', encapsulation: ViewEncapsulation.None, standalone: true, - imports: [ - CommonModule, - FormsModule, - MatButtonModule, - MatCheckboxModule, - MatInputModule, - MatSelectModule, - ], + imports: [FormsModule, MatButtonModule, MatCheckboxModule, MatInputModule, MatSelectModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class SnackBarDemo { diff --git a/src/dev-app/stepper/stepper-demo.ts b/src/dev-app/stepper/stepper-demo.ts index 12ca101f021e..0565e59c4394 100644 --- a/src/dev-app/stepper/stepper-demo.ts +++ b/src/dev-app/stepper/stepper-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import { AbstractControl, @@ -28,7 +27,6 @@ import {MatStepperModule} from '@angular/material/stepper'; templateUrl: 'stepper-demo.html', standalone: true, imports: [ - CommonModule, FormsModule, MatButtonModule, MatCheckboxModule, diff --git a/src/dev-app/table-scroll-container/table-scroll-container-demo.ts b/src/dev-app/table-scroll-container/table-scroll-container-demo.ts index 04c77fe0155f..c01b90687df7 100644 --- a/src/dev-app/table-scroll-container/table-scroll-container-demo.ts +++ b/src/dev-app/table-scroll-container/table-scroll-container-demo.ts @@ -7,7 +7,6 @@ */ import {CdkTableScrollContainerModule} from '@angular/cdk-experimental/table-scroll-container'; -import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MatButtonModule} from '@angular/material/button'; import {MatButtonToggleGroup, MatButtonToggleModule} from '@angular/material/button-toggle'; @@ -21,13 +20,7 @@ import {MatTableModule} from '@angular/material/table'; styleUrl: 'table-scroll-container-demo.css', templateUrl: 'table-scroll-container-demo.html', standalone: true, - imports: [ - CdkTableScrollContainerModule, - CommonModule, - MatButtonModule, - MatButtonToggleModule, - MatTableModule, - ], + imports: [CdkTableScrollContainerModule, MatButtonModule, MatButtonToggleModule, MatTableModule], changeDetection: ChangeDetectionStrategy.OnPush, }) export class TableScrollContainerDemo { diff --git a/src/dev-app/tree/tree-demo.ts b/src/dev-app/tree/tree-demo.ts index 49da50ceb416..c8a68b2b7f71 100644 --- a/src/dev-app/tree/tree-demo.ts +++ b/src/dev-app/tree/tree-demo.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ import {CdkTreeModule} from '@angular/cdk/tree'; -import {CommonModule} from '@angular/common'; import { CdkTreeFlatExample, CdkTreeNestedExample, @@ -52,7 +51,6 @@ import {MatTreeModule} from '@angular/material/tree'; CdkTreeNestedChildrenAccessorExample, CdkTreeNestedLevelAccessorExample, CdkTreeComplexExample, - CommonModule, FormsModule, TreeDynamicExample, TreeFlatChildAccessorOverviewExample, diff --git a/src/dev-app/virtual-scroll/virtual-scroll-demo.ts b/src/dev-app/virtual-scroll/virtual-scroll-demo.ts index 4568ed83d7b8..1a5ea4050213 100644 --- a/src/dev-app/virtual-scroll/virtual-scroll-demo.ts +++ b/src/dev-app/virtual-scroll/virtual-scroll-demo.ts @@ -7,9 +7,9 @@ */ import {ChangeDetectionStrategy, Component, OnDestroy, ViewEncapsulation} from '@angular/core'; +import {AsyncPipe} from '@angular/common'; import {CdkVirtualScrollViewport, ScrollingModule} from '@angular/cdk/scrolling'; import {ScrollingModule as ExperimentalScrollingModule} from '@angular/cdk-experimental/scrolling'; -import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {MatButtonModule} from '@angular/material/button'; import {MatFormFieldModule} from '@angular/material/form-field'; @@ -34,7 +34,7 @@ type State = { changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ - CommonModule, + AsyncPipe, ExperimentalScrollingModule, FormsModule, MatButtonModule,