File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
projects/fab-speed-dial/src/lib Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717 ViewEncapsulation ,
1818} from '@angular/core' ;
1919import { MatMiniFabButton } from '@angular/material/button' ;
20- import { CommonModule , DOCUMENT } from '@angular/common' ;
20+ import { DOCUMENT } from '@angular/common' ;
2121import { forkJoin , fromEvent , Subscription } from 'rxjs' ;
2222import { 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} )
4041export class EcoFabSpeedDialActionsComponent implements AfterContentInit {
4142 private _parent : EcoFabSpeedDialComponent ;
You can’t perform that action at this time.
0 commit comments