i have list entries that each include a button, i want to use that button to toggle styles for the list entry its attached to and do some logic depending on the previous state
how do i best do this? one directive which switches the previous state and adds style + invokes function for logic? i havent used a directive with controller/logic yet so i have no idea how i split that best
thank you