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
  • 6,180
  • 2
  • 41
  • 64
kamalav
  • 1,190
  • 4
  • 14
  • 31
  • 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