File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { BreakpointObserver , Breakpoints } from '@angular/cdk/layout' ;
2
- import { CommonModule } from '@angular/common' ;
2
+ import { AsyncPipe } from '@angular/common' ;
3
3
import { Component , inject } from '@angular/core' ;
4
4
import { MatButtonModule } from '@angular/material/button' ;
5
5
import { MatIconModule } from '@angular/material/icon' ;
@@ -13,12 +13,12 @@ import { map, shareReplay } from 'rxjs';
13
13
selector : 'demo-sidebar-cmp' ,
14
14
imports : [
15
15
RouterModule ,
16
- CommonModule ,
17
16
MatToolbarModule ,
18
17
MatButtonModule ,
19
18
MatSidenavModule ,
20
19
MatIconModule ,
21
20
MatListModule ,
21
+ AsyncPipe ,
22
22
] ,
23
23
templateUrl : './sidebar.component.html' ,
24
24
styleUrls : [ './sidebar.component.css' ] ,
Original file line number Diff line number Diff line change 1
- import { CommonModule } from '@angular/common' ;
1
+ import { DatePipe } from '@angular/common' ;
2
2
import {
3
3
ChangeDetectionStrategy ,
4
4
Component ,
@@ -10,7 +10,7 @@ import { initFlight } from './flight';
10
10
11
11
@Component ( {
12
12
selector : 'demo-flight-card' ,
13
- imports : [ CommonModule , RouterModule ] ,
13
+ imports : [ RouterModule , DatePipe ] ,
14
14
templateUrl : './flight-card.component.html' ,
15
15
changeDetection : ChangeDetectionStrategy . OnPush ,
16
16
} )
You can’t perform that action at this time.
0 commit comments