20
rated 0 times
[
21]
[
1]
/ answers: 1 / hits: 16211
/ 11 Years ago, sun, october 27, 2013, 12:00:00
I wonder if you have an example of a directive code that reacts on angular events like $routeChangeError
without injecting $rootScope
in to it (to use $on
in link function). It breaks in my opinion MV* pattern and produces smell-code (gives the possibility to manipulate root scope in a directive). Thanks in advance.
More From » angularjs