Skip to content
Advertisement

Tag: angular

class.active is not changing through (click) event handler

I’m trying to create a kind of toggle action when two buttons in angular. Buttons to code So, what should happen is when I click trending, burst should appear as inactive and vice versa. I’m trying to do this through [class.active] on angular: I tried to do this by declaring two boolean variables, one for each button: And handle the

Advertisement