sliding between route transition angularjs

后端 未结 3 2029
后悔当初
后悔当初 2021-02-02 16:58

I\'ve only been working with Angular for about a week, so I apologize if my code is crap.

I\'m attempting to create a sliding action between route transitions. I can cre

3条回答
  •  遥遥无期
    2021-02-02 17:24

    The above answers are correct... but I would add that having routes with a trailing slash:

    .when('/introduction/', ...)
    

    Will break your transitions... Angular immediately redirects to '/introduction' which breaks the transition. so be sure to use:

    .when('/introduction', ...)
    

    Took me like 5 hours to finally determine why my transitions wouldn't work.. when my test projects and all the examples worked great.

提交回复
热议问题