Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 231634

Help me with this controller?

$
0
0

if you want to navigate between page try use $state.go

like this:

app.controller("RegistrationCtrl", function($scope, $state){
this.goAfter = function(){
$state.go('after');
}
});

In html try use:
< div ng-controller="AfterCtrl as ctrl" class="content" >
< button class="button button-positive" ng-click="ctrl.goAfter()">Go to prev state (page)


Viewing all articles
Browse latest Browse all 231634

Trending Articles