Programatically navigating between tabs in a modal

I have a modal window which has two tabs, a simple view and a complete view. Now I’m building it so that if you are on the simple view and swipe to the left, it animates to the complete view tab and when on the complete view and you swipe to the right, it animates to the simple view tab.

$ionicGesture.on('swipeleft', function(){
        // swich to complete view tab
}, $scope.tastingNoteModal);
        
$ionicGesture.on('swiperight', function(){
        // switch to simple view tab
}, $scope.tastingNoteModal);

How can I programatically navigate between the tabs?

Use the $ionicTabsDelegate.select() method

http://ionicframework.com/docs/nightly/api/service/$ionicTabsDelegate/