ka
This commit is contained in:
parent
8ad3c80421
commit
65bdfdd28b
@ -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)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user