I have exhausted all my options, but as a learner, I am struggling to make this work. https://plnkr.co/edit/FrNChlSwHYDbapr7gFQH?p=preview
<a class="collection-item"
ng-repeat="task in tasks"
ui-sref="todo.detail({ todoID: task.todoID })">
{{ task.text }}
</a>
My goal is to route to /todo/1, /todo/2, etc. from the "todo"-view, but I seem to be having trouble with the $stateParams. I would greatly appreciate your help in identifying where my issue lies :).