i'm early for angularjs.
i have some list, if i click one of list, popup will display. and after i chose option on popup, popup will close and background list will change. untill now it's work for only first list. ( i think )
and i got problem, when I click the second list, background first list change class to.
This samplemy
work
How to change background one by one after click option popup? Please help me, Thanks in advance
Here is an updated plunker, your problem is that you have one scope "class" item for your 2 items.
I separate it to 2 different scope value class1
and class2
and I switch the chooseItem
via showPopup, and when you close the popup, I update the class1 and class2 according the chooseItem.