2

I created two pages with identical sliders. (say HomePage and Page1Page) I place Navigation links to the other in each (via navCtrl.push)

Now while the slider works well (that is responds to both swipe and clicks on pager) on the HomePage, it does not respond correctly to swipe on the Page1Page. Why? What am I doing wrong?

Plunkr: http://embed.plnkr.co/8v0nBm/

Going back to the HomePage from the Page1Page causes the slider to stop working there too!

All help/ideas appreciated.

Mayank R Jain
  • 3,127
  • 1
  • 29
  • 43
  • 1
    Dont have enough reputation so posting it as answer. In your plunkr try replacing `push` with `setRoot` in your `home.page.ts`, while navigating from Home Page to page1. It seems to be working. I am still trying to figure out why is it not working in push. Will update here if i get any more details Hope this at-least provides you a small break-through – Dhaval Shah Jul 04 '17 at 18:42
  • There's an open issue related to this [here](https://github.com/ionic-team/ionic/issues/10271). Maybe you could try if [this PR](https://github.com/ionic-team/ionic/pull/11100) fixes it... – sebaferreras Jul 06 '17 at 07:18
  • @sebaferreras the PR mentions merged 2 months ago, no? – Mayank R Jain Jul 06 '17 at 08:23
  • oh, you're right, sorry for that :( – sebaferreras Jul 06 '17 at 08:40

0 Answers0