I'm trying to do something which, in theory, should be simple. I've Googled for the answer, but haven't come across anything yet that has worked. I'm using Angular JS 1.4.9. What I want to happen is to have this:
I want to do this as a directive so that when the user clicks one the links, I can apply an "active" CSS style to the LI element. For the life of me, though, I can't get it to work. To be honest, transclusion and compiling (if either of these are what it takes) has always been my weak point with Angular 1.x.
I don't see the need of using transclusion or compiling, i made a little directive to manage this so we have something to play with. Next time it would be better if you provide with more details or code example.