Great article; thanks. A couple of questions for you though.
1) What does the .apply() methods do for both console.log and _emit()? I've tried looking in documentation but unable to find any .apply() methods mentioned
2) I tried augmenting the $broadcast event using the exact same pattern, but get errors with it. Is there a specific reason why this would not work with the $broadcast event?
Great article; thanks. A couple of questions for you though.
1) What does the .apply() methods do for both console.log and _emit()? I've tried looking in documentation but unable to find any .apply() methods mentioned
2) I tried augmenting the $broadcast event using the exact same pattern, but get errors with it. Is there a specific reason why this would not work with the $broadcast event?
TypeError: Cannot read property 'defaultPrevented' of undefined
at http://localhost:58888/client.git/bower_components/angular/angular.js:10171:88
Thanks,
Eric