Navigate to another page with header button


#1

I know this is a very easy one and maybe lack of sleep is the cause but all I’m trying to do is have a header button navigate to another page.

I’ve search several forums and found several ways to complete the action in ionic but not a specific solution for creator.

I’ve attempted it using ng-click, state and go()


#2

Figured it out

JS:

function ($scope, $stateParams, $state) {

$scope.home = function(){
        $state.go('mPANZ');
    }, function(){
}

}

Angular directive

and lastly set the directive placement to the nav button.