Adding the active class to each clicked button, Angular 4

后端 未结 2 971
名媛妹妹
名媛妹妹 2021-01-13 14:53

I have:

2条回答
  •  温柔的废话
    2021-01-13 15:13

    Just maintain a temporary array

    
    

    in component public isClicked = [];

    working fiddler --> https://plnkr.co/edit/MwuWhtBPPQUQCG2Y9qmx?p=preview

    Hope it helps!!

提交回复
热议问题