So here are my states:
.state('home', {
    url: '/',
    templateUrl: '/components/item-list-view.html',
    controller: 'ItemListCtrl'
})
.state('add-item', {
    url: '/item/add',
    templateUrl: '/components/item-add-view.html',
    controller: 'ItemAddCtrl'
})
.state('view-project', {
    url: '/item/:id',
    templateUrl: '/components/item-view-view.html',
    controller: 'ItemViewCtrl'
});
So I would like to have a slugified version of :name instead of the :id, so I would have prettier URL-s, but I also need to retrieve a single item for the item-view, but doing that using a slugified name does not seem like a good idea. (How) can I conveniently pass an id there?
 
    