ng-click
is not providing alert. When the inner template of the directive is clicked alert box is not shown.
The fiddle link is here: http://jsfiddle.net/NNDhX/
I don't know if this is the best way but you can use $parent in directive to access parent scope.
<a ng-click="$parent.hi();">parent</a>
Here is link to full fiddle example: http://jsfiddle.net/EKDse/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With