Not tried it yet, but have you tried watching for state change events? ``` $rootScope.$on '$stateChangeStart', (event, toState, toParams, fromState, fromParams) -> switch toState.name .... ```
Central point and maybe the right events (start, end, ..) for your purpose? Am Dienstag, 17. März 2015 07:01:15 UTC+1 schrieb Owen Williams: > > See http://plnkr.co/edit/3QjBzRu5VjOzK7czn71e?p=preview > > I'm applying a class to ui-view depending on the current state - so I can > target each new view and apply different animations.. > > The issue is: the state class seems to be added after the ng-enter class > (see plunker above). So initial transitions (which should executr on > ng-enter) just wont fire. > > Any advice would be much appreciated! > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.