Skip to content

Commit 19ac262

Browse files
committed
chore(app): shrink CommonModule usage to exact submodule use
1 parent 07650c8 commit 19ac262

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/demo/src/app/core/sidebar/sidebar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
2-
import { CommonModule } from '@angular/common';
2+
import { AsyncPipe } from '@angular/common';
33
import { Component, inject } from '@angular/core';
44
import { MatButtonModule } from '@angular/material/button';
55
import { MatIconModule } from '@angular/material/icon';
@@ -13,12 +13,12 @@ import { map, shareReplay } from 'rxjs';
1313
selector: 'demo-sidebar-cmp',
1414
imports: [
1515
RouterModule,
16-
CommonModule,
1716
MatToolbarModule,
1817
MatButtonModule,
1918
MatSidenavModule,
2019
MatIconModule,
2120
MatListModule,
21+
AsyncPipe,
2222
],
2323
templateUrl: './sidebar.component.html',
2424
styleUrls: ['./sidebar.component.css'],

apps/demo/src/app/shared/flight-card.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule } from '@angular/common';
1+
import { DatePipe } from '@angular/common';
22
import {
33
ChangeDetectionStrategy,
44
Component,
@@ -10,7 +10,7 @@ import { initFlight } from './flight';
1010

1111
@Component({
1212
selector: 'demo-flight-card',
13-
imports: [CommonModule, RouterModule],
13+
imports: [RouterModule, DatePipe],
1414
templateUrl: './flight-card.component.html',
1515
changeDetection: ChangeDetectionStrategy.OnPush,
1616
})

0 commit comments

Comments
 (0)