mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 18:05:38 +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
|
|
@ -3,11 +3,9 @@
|
|||
<h1>{{ 'KanbanCloneAngular' }}</h1>
|
||||
<h2>Sign In</h2>
|
||||
|
||||
@if (errorMessage()) {
|
||||
<div class="error-message">
|
||||
{{ errorMessage() }}
|
||||
</div>
|
||||
}
|
||||
<div class="error-message" *ngIf="errorMessage()">
|
||||
{{ errorMessage() }}
|
||||
</div>
|
||||
|
||||
<form (ngSubmit)="onSubmit()" #loginForm="ngForm">
|
||||
<div class="form-group">
|
||||
|
|
@ -37,11 +35,8 @@
|
|||
</div>
|
||||
|
||||
<button type="submit" class="btn-primary" [disabled]="isLoading() || !loginForm.form.valid">
|
||||
@if (isLoading()) {
|
||||
<span>Logging in...</span>
|
||||
} @else {
|
||||
<span>Login</span>
|
||||
}
|
||||
<span *ngIf="isLoading(); else loginText">Logging in...</span>
|
||||
<ng-template #loginText><span>Login</span></ng-template>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue