Answers for "check if div has class add class angular"

CSS
0

add classon ng if

[ngClass]="{'my-class': step === 'step1'}"
Posted by: Guest on June-11-2020
0

check if element with class has another class javascript

const div = document.querySelector('div');
div.classList.contains('secondary'); // trueCode language: JavaScript (javascript)
Posted by: Guest on March-02-2021

Code answers related to "check if div has class add class angular"

Browse Popular Code Answers by Language