I'd like to access a function from the parent => parent controller inside my directive (with the controllerAs notation). I'm using angular 1.3.14 I have the following structure:
- Controller (with save function)
- (Child) controller
- Directive with a template (and isolated scope). Inside this template I have a button which should call the save function from the parent (parent) controller.
- (Child) controller
I don't want to call $scope.$parent.$parent.save(...) Does anyone has an idea?
Thanks in advance.