Skip to content

Commit fb64fe6

Browse files
fdonzellocrisbeto
authored andcommittedNov 6, 2023
fix(material/schematics): asyncPipe not imported but used in the template (#28055)
(cherry picked from commit 4fcf821)
1 parent 3b6f023 commit fb64fe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/material/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { MatListModule } from '@angular/material/list';
77
import { MatIconModule } from '@angular/material/icon';<% } %>
88
import { Observable } from 'rxjs';
99
import { map, shareReplay } from 'rxjs/operators';
10+
import { AsyncPipe, NgIf } from '@angular/common';
1011

1112
@Component({
1213
selector: '<%= selector %>',<% if(inlineTemplate) { %>
@@ -26,7 +27,9 @@ import { map, shareReplay } from 'rxjs/operators';
2627
MatButtonModule,
2728
MatSidenavModule,
2829
MatListModule,
29-
MatIconModule
30+
MatIconModule,
31+
AsyncPipe,
32+
NgIf
3033
]<% } %>
3134
})
3235
export class <%= classify(name) %>Component {

0 commit comments

Comments
 (0)
Please sign in to comment.