To go to this state with a bookName
parameter:
state('book.name', { url: '/books/:bookName', ... })
Use,
$state.go('book.name', {bookName: name});
To get parameter out of url,
$state.params.bookName
To go to this state with a bookName
parameter:
state('book.name', { url: '/books/:bookName', ... })
Use,
$state.go('book.name', {bookName: name});
To get parameter out of url,
$state.params.bookName