- I have a directive (Just a button).
- This directive has an isolated scope.
- I want to update the object in my parent scope by clicking on the button.
- But the function is not being called.
This is the plunker.
I've tried defining the function in both the link function and the controller, and they didn't work
I know I am missing something very basic. Need some form of explanation on why this is happening. Have tried looking through a lot of the other questions but I still couldn't find a clear answer.
Thanks in advance!