This commit is contained in:
Constantin Simonis 2025-01-14 10:03:59 +01:00
parent 8ad3c80421
commit 65bdfdd28b
Signed by: csimonis
GPG Key ID: 758DD9C506603183
2 changed files with 15 additions and 2 deletions

View File

@ -175,7 +175,6 @@ export class EditHotelComponent implements OnInit {
} }
control?.valueChanges?.pipe(debounceTime(debounce)).subscribe(() => { control?.valueChanges?.pipe(debounceTime(debounce)).subscribe(() => {
console.log(controlName, control)
this.setErrorMessage(controlName, control) this.setErrorMessage(controlName, control)
}); });
}); });

View File

@ -9,7 +9,7 @@ import {NgIf} from "@angular/common";
NgIf NgIf
], ],
template: ` template: `
<div *ngIf="msg" class="alert alert-danger"> <div *ngIf="msg" class="alert alert-danger border">
{{ msg }} {{ msg }}
</div> </div>
`, `,
@ -24,6 +24,20 @@ import {NgIf} from "@angular/common";
.alert-danger { .alert-danger {
background-color: red; background-color: red;
} }
.border {
border: 10px solid hotpink;
animation: rotate 0.5s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
` `
}) })
export class ErrorMsgComponent { export class ErrorMsgComponent {