Hi.
I changed "scope.$on('$stateChangeStart', function()" to "$rootScope.$on(
'$stateChangeStart', function()" but it has no effect.
How can I check check on which scope the router is defined on?
Best regards,
Tomek
On Tuesday, May 1, 2018 at 6:16:09 AM UTC+2, Sander Elias wrote:
>
> Hi Trojek,
>
> Those events are only available in the same scope that the router is
> defined on. usually the $rootScope. Handling those in a directive is
> usually a bad idea, that's why it's a bit harder to get to those.
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.