Open jlcampana opened 9 years ago
I second that issue. The hack solves the problem. I use angular 1.5.0 and ng-flow 2.7.1
@jlcampana / @merlinschumacher so it's simply the example code that should be fixed you are identifying that some changes may be valuable in the library? in such a case pull requests are welcome! thanks
Hi, I'm using angular ver 1.2.28 with ui-route.
The example of how to receive notifications in the controller is not working because the $flow variable is not on the $scope of the controller, so you cannot receive them:
Instead of that, if you emit your notifications inside the $rootScope, the notification will arrive to the controller (by using $rootScope.$on('flow::XXXXXX....)
HTML
Controller
The hack Perform the broadcast over $scope.$parent instead $scope: