Swipe to change content on a view


#1

I implemented swipe functionality within side menu content
But the content on the view does not change when swiped but it refreshes when the side menu is open.
What can I do to change the content on swipe or drag?

Plunkr: http://plnkr.co/edit/ro9xbPI8Brvsh3TC5fiT?p=preview


#2

Wow. That’s pretty interesting. I modified it a bit because you weren’t actually notifying the controller except on dragEnd. However, I still can’t get it to update the view unless the side menu is opened. It logs all the notifications, but won’t change the view value. I even wrapped it in dot notation.

Anyone have ideas?


#3

Finally found a solution. Called $state.reload() in the controller and it worked :smiley:


#4

I have no clue why that worked.

Updated sample : http://plnkr.co/edit/IXaqdU4JSc8F6KECqWJa?p=preview

Thanks for updating us.