How to pass parameters using ui-sref in ui-router to controller

I’ve created an example to show how to. Updated state definition would be: And this would be the controller: What we can see is that the state home now has url defined as: which means, that the params in url are expected as These two links will correctly pass arguments into the controller: Also, the controller does consume $stateParams instead of $stateParam. … Read more