I'm using angular route to change views in my app. When changing views (user clicks on a link) the new view is added at the bottom and the old view stays there for about 1 second before disapperaring.
When listening to $routeChangeStart/success and $viewContentLoaded I can see the new view actually loads very quick, just the old view isn't hidden quick enough.
Any ideas?
Html
<div class="content container-fluid" ng-view id="main"></div>
Code
config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/dashboard:l3_outputmaterial_id?', { templateUrl: 'app/frontend/inline/dashboard.html', controller: 'dashboardCtrl' });
$routeProvider.when('/nicetohave', { templateUrl: 'app/frontend/nice/nicetohave.html', controller: 'niceToHaveCtrl' });
$routeProvider.when('/login/:return_url', { templateUrl: 'app/frontend/auth/login.html', controller: 'loginCtrl' });
}])