I've been playing with AngularJS for a few days but I still can't grasp some things about the way directives are managed, and I could not find any good answer anywhere for what I'm looking for.
Let's say I have a specific div in which I want to add a directive on a specific event, e.g. on a click. What is the best way to do so ? Or is my approach totally wrong, and should this be done in another way ?
I've set up a Plunker to better illustrate my problem : http://plnkr.co/edit/KM2KFVb6iuhtQKrLYax1?p=preview
Thanks in advance for your help!