Move your logic into a scope variable:
<div ng-view ng-animate ng-class="{ 'slide': someVar }"></div>
and set $scope.someVar = true
whenever config.app_routes.indexOf(config.app_url) == -1
. How you do this depends how and when config.app_routes
is updated.