What is the best way to implement swipe navigation in Angular 2?

后端 未结 4 1555
[愿得一人]
[愿得一人] 2020-12-12 23:24

I\'m new to Angular 2 and am looking for a way to implement a good tab touch swipe navigation for mobile users with a swipe transition to the next tab view.

So far I

4条回答
  •  爱一瞬间的悲伤
    2020-12-13 00:09

    You can use HammerJS to implement for touch actions, You can follow this plunker for example.

    Include hammer.js file

    
    

    or

    npm install hammerjs --save
    

    For browser touch support with hammerjs, include

     
    
    
                                     
                  
提交回复
热议问题