Swipe for page transition

I ended up referencing $state and calling $state.transitionTo(‘stateName’);

Seems to work fine.

I ended up implementing my circular navigation like so:

I have a MenuService, which is storing a list of urls in the app, and a next/prev state for each one, So if I have Customers, ToDo List and Photos, I store something like:

var stateTransitions = [
{ url: '/customers', nextState: 'todo', prevState: 'photos' },
{url: '/todo', nextState: 'photos', prevstate: 'customers' },
{url: '/photos', nextState: 'customers', prevState: 'todo' }];

Then my menu controller gets passed the swipe direction and if it’s left or right, moves to next/prev according to the current url.