私はng-animateを使用してアプリのビューをスライドさせているので、各ルートは独自のビューをスライドさせます。これは私の簡単なコードです:
html:
<div ng-view ng-animate class="slide"></div>
CSS:
/*Animations*/
.slide{
left:0;
}
.slide.ng-enter{
transition:0.15s linear all;
position:fixed;
z-index:inherit;
left:-100%;
height:inherit;
}
.slide.ng-leave{
transition:0.15s linear all;
position:fixed;
z-index:9999;
right:0;
}
.slide.ng-leave-active{
transition:0.15s linear all;
position:fixed;
right:-100%;
left:100%;
}
.slide.ng-enter-active{
transition:0.15s linear all;
left:0;
position:relative;
}
今、私は疑問に思っています、is there anyway to exclude the home page (main "/" route) from sliding?
言い換えれば、ng-animate からルートを除外する方法はありますか?