1

In my application when I manually change state with $state.go('state-1'), the target view appears before the current view was faded out. Can anyone help me resolve? States are defined as below code:

myApp.config(['$stateProvider','$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('parent1', {
                abstract: true,
                url: '/parent1',
                templateUrl: '...'
            })
            .state('parent1.child1',{
                url:'/child1',
                templateUrl:"..."
            })                
            .state('parent2', {
                abstract: true,
                url: '/parent2',
                templateUrl: '...'
            })
            .state('parent2.child1', {
                url: '/child1',
                templateUrl: '...'
            });
    }]);

Now from one of my controllers,I am changing state "parent2.child1 to parent1.child1"

$state.go('parent1.child1');

Both the ui-view divs are having class "animated fadeIn" from animate.css

When the $state.go executes, partial of state "parent1.child1" appears before the current state's view is faded out.

Thanks.

1
  • Provide fiddle or plunkr. Commented Jul 21, 2015 at 6:17

1 Answer 1

1

Thanks @jay for your inputs.

I got resolution of this issue. It was due to mix use of ngAnimate and animate.css animations together.

I removed ngAnimate and this issue is now fixed.

Thanks!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.