Comment récupérer ID dans ui-router pour enlace ui-sref ?
Bonjour,
Mes multiples views marchent mais comme j´ai une liste d´object [project1, project2 etc..)
comment je peux récupérer la ide de chaque item pour ui-sref? dans
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/Inicio');
$stateProvider
.state('inicio', {
url: '/Inicio',
templateUrl: 'templates/home.html',
controller:'Portafolio'
})
.state('servicios', {
url: '/Servicios',
templateUrl:'templates/servicios.html',
controller:'ServCtrl'
})
.state('proyectos', {
url: '/Proyectos/ICI COMMENT RÉCUPÉRER ID DE CHAQUE ITEM??????',
views: {
'': { templateUrl: 'templates/proyectos.html' },
'details@proyectos': {
templateUrl: 'templates/proyectosdetalles.html',
controller: 'test'
}
}
}); |
?????
Merci.