I\'m having some trouble binding a function defined in a controller with a callback function in a directive. My code looks like the following:
In my controller:
There is one small mistake in your code, please try the code below and it should work for you