migrate angular 21

This commit is contained in:
2026-03-09 22:43:40 +01:00
parent 0203d4ea9d
commit 26c99a0dae
65 changed files with 19188 additions and 16946 deletions

View File

@@ -1,8 +1,10 @@
<button mat-button>
<span *ngIf="icon"
><fa-icon [icon]="icon"></fa-icon><span class="content">&nbsp;</span></span
>
<span class="button-content">
<ng-content></ng-content>
</span>
</button>
@if (icon) {
<span
><fa-icon [icon]="icon"></fa-icon><span class="content">&nbsp;</span></span
>
}
<span class="button-content">
<ng-content></ng-content>
</span>
</button>

View File

@@ -1,14 +1,14 @@
import {Component, Input} from '@angular/core';
import {IconProp} from '@fortawesome/fontawesome-svg-core';
import {MatButton} from '@angular/material/button';
import {NgIf} from '@angular/common';
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
@Component({
selector: 'app-button',
templateUrl: './button.component.html',
styleUrls: ['./button.component.less'],
imports: [MatButton, NgIf, FaIconComponent],
imports: [MatButton, FaIconComponent],
})
export class ButtonComponent {
@Input() public icon: IconProp | null = null;