R
R
Roman Rakzin2020-06-10 20:40:32
Angular
Roman Rakzin, 2020-06-10 20:40:32

How to undo css class?

On the angular element, when selected, the active class is added, which I do not like.
I want to remove it, I wrote display:none , but the class still applies.
How can it be turned off?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bpGusar, 2020-06-10
@bpGusar

I'll poke my finger into the sky and say that you need to figure out how it is added and it will become clear how to "turn it off"))

S
Sergey, 2020-06-10
@rakot90

.elementClass:active {
use styles to change those parameters that do not suit the display
}
or
$('element_selector').removeClass('active');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question