Hi all!
Does anybody know how i can send an id over an link?
Template:
<ion-item nav-clear menu-close ng-href="#/app/home/{{profile.id}}" ng-repeat="profile in profiles" class="item">
Config:
.state('app.home', {
url: '/home/:id',
cache: false,
views: {
'appContent': {
templateUrl: 'templates/app/home.html',
controller: 'appHomeCtrl',
},
},
})
Controller:
if ($stateParams.id) {
alert($stateParams.id);
}