If you use a framework such as bootstrap, you know that an element classes change depending on actions or viewport size...
Is there an event in Angular that allows us to detect when the classes of an element change?
For example, having a bootstrap navbar, each time it has show
class in its class list I want to console.log("show")
, and each time it doesn't have show
class in its class list I want to console.log("hide")
. In other words, I want to subscribe to the class change of the element.