Bogdan Tushevskyi

0

votes
1

answer
9

views

Use errorStateMatcher as directive

I have simple material input and for that input, I'm using material errorStateMatcher which help me to show mat-error dynamically and not on the input blur. and inside the component: export class MyErrorStateMatcher implements ErrorStateMatcher { isErrorState(control: FormControl | null, form: FormG...
Bogdan Tushevskyi
1

votes
1

answer
211

views

remove empty object value from reactive form valueChanges

I have reactive form in angular application. I subscribe to it with valueChanges and before get the result of subscribe method, want to filter this object with rxjs filter or some similar method to get only not empty feald of form. How can I solve this? this.form.valueChanges.pipe( debounceTime(500...
Bogdan Tushevskyi
4

votes
1

answer
1.5k

views

Remove active and focus from element on second click

I'm trying to make an interactive map with information on it. When you click on a dot it is resized and shows some contacts. This is achieved because the element gets the :active and :focus pseudo-classes. Is there any way to remove the pseudo-classes from the element when it is clicked a second ti...
Bogdan Tushevskyi