What's the correct way to toggle buttons now?


#1

Ok so here’s what I’m trying to do.
I have a row of buttons, video, camera, mic, etc once any one of them is pressed I need to disable all the others.

I followed an earlier thread on this, but evidently something has changed.

Here is a plunkr that shows what I’m doing…

Problem is there are no errors, but the buttons do not disable at all. It’s not just they don’t look disabled, if I click any button it’s underlaying function is called anyways.

So how would I accomplish this now days?
Thanks!


#2

The plunkr is not working, but [disabled] would need to be tied to property on your class that is a true/false value.