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 ?
thanks