Skip to content

Commit 36783eb

Browse files
committed
Migrate to new control flow
1 parent 99efdf7 commit 36783eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/fab-speed-dial/src/lib/fab-speed-dial.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
ViewEncapsulation,
1818
} from '@angular/core';
1919
import {MatMiniFabButton} from '@angular/material/button';
20-
import {CommonModule, DOCUMENT} from '@angular/common';
20+
import {DOCUMENT} from '@angular/common';
2121
import {forkJoin, fromEvent, Subscription} from 'rxjs';
2222
import {take} from 'rxjs/operators';
2323

@@ -33,9 +33,10 @@ function getHostElement(button: MatMiniFabButton): any {
3333

3434
@Component({
3535
selector: 'eco-fab-speed-dial-actions',
36-
template: ` <ng-content select="[mat-mini-fab]" *ngIf="miniFabVisible"></ng-content>`,
36+
template: `@if (miniFabVisible) {
37+
<ng-content select="[mat-mini-fab]"></ng-content>
38+
}`,
3739
standalone: true,
38-
imports: [CommonModule],
3940
})
4041
export class EcoFabSpeedDialActionsComponent implements AfterContentInit {
4142
private _parent: EcoFabSpeedDialComponent;

0 commit comments

Comments
 (0)