0

I am navigating from one component to another while swiping by using router.navigate(['/.article']); and hammerjs.

after swiped and navigate to another page, swipe is not fired without reloading the page

I need to do it without reloading the page

Thanks

Iman Bahrampour
  • 5,448
  • 2
  • 39
  • 60
kamalav
  • 1,130
  • 3
  • 13
  • 29
  • please share the code and would be good if create a plnkr for this – Vivek Doshi Nov 10 '17 at 08:00
  • sorry,I didn't created plunker.I followed https://stackoverflow.com/questions/35728451/using-mobile-events-in-angular2 for swiping.For navigation I used doSwipe(direction: string){ if(direction=='swipeleft') { this. router.navigate(['/cinema']); } } – kamalav Nov 10 '17 at 08:05

0 Answers0