mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 09:55:37 +01:00
substituted @ifs and @fors with deprecated ngIf and ngFor
This commit is contained in:
parent
171400f9ca
commit
7202ed8806
15 changed files with 105 additions and 110 deletions
|
|
@ -2,9 +2,7 @@
|
|||
<div class="card">
|
||||
<h1>Create task</h1>
|
||||
|
||||
@if (errorMessage()) {
|
||||
<div class="error">{{ errorMessage() }}</div>
|
||||
}
|
||||
<div class="error" *ngIf="errorMessage()">{{ errorMessage() }}</div>
|
||||
|
||||
<form (ngSubmit)="onSubmit()" #taskForm="ngForm">
|
||||
<div class="form-group">
|
||||
|
|
@ -44,11 +42,8 @@
|
|||
<div class="actions">
|
||||
<button type="button" class="btn-secondary" (click)="onCancel()">Cancel</button>
|
||||
<button type="submit" class="btn-primary" [disabled]="isSaving() || !taskForm.form.valid">
|
||||
@if (isSaving()) {
|
||||
<span>Creating...</span>
|
||||
} @else {
|
||||
<span>Create task</span>
|
||||
}
|
||||
<span *ngIf="isSaving(); else createText">Creating...</span>
|
||||
<ng-template #createText><span>Create task</span></ng-template>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue