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

How a button open another page?

$
0
0

nothing worked :((
here is the code:
< button ng-click="go_to()" class="button button-full button-positive">Login < / button>

in the app. js :
.state("openState", {
cache: false,
url: '/',
templateUrl:'templates/anotherPage.html',
controller:'openCtrl'
})

in the controller:
.controller('openCtrl', function($state, $scope)
{
$scope.go_to = function(){
$state.go('openState');
}
})
any solution :frowning: ?
thanks


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>