Asume we have a directive with a nested directive inside. Both directives want to alter the data before it's being displayed. I used ngModelController to do that but I'm open for other suggestions.
My problem: I can't get it to work without using scope.$apply() but on the other hand scope.$apply() throws an error when I use it what would indicate that it's unnecessary.
Here is a plunkr to the problem: http://embed.plnkr.co/RROBxuITLpYnGkHSQAe3/preview
What am I doing wrong?