I am using AngularJS with the alias controllers pattern. I can\'t access (or I don\'t know how to) directive methods from a parent controller.
I have a
I have another solution, that lets you use isolate scope and don't rely on broadcast. In javascript methods can be used like variables, co you can simply pass the method you want to the directive.
so in html:
and in directive
scope: {
text: '=',
changeText: '='
}
Here is slightly modyfied codepen, where You can see what i have in mind.