I don't know why ng-href isn't working.
What i want to do is go from a modal to a view, passing the parameters {{user}} and {{email}}
here's the state
//gestion
.state('gestion',
{
url:'/compte/gestion/:user/:email',
templateUrl:'templates/gestion.html',
controller:'loginCtrl'
})
code from the controller
$scope.goToState = function () {
$state.go('gestion', {user:'$scope.user', email: '$scope.email'});}
$scope.user and $scope.email are two values i retrieve from an external url
and here's the line from the view with the ng-href
<ion-item ng-click="goToState()" style="width:340px;margin-top:10px" >
Gerer mon compte
</ion-item>
thank you for help
Instead of
ng-hrefuseng-click. Becauseng-hrefis for anchor tags.In your controller, add the function