javascript - I can't get my angular ui-router nested states to work. Code inside -


i literally tried @ point, still learning , can't 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> 

what trying do, routing /todo/1, /todo/2 , on "todo"-view, seem have problem $stateparams. it'd nice if guys me out , show me problem :).

in addition adding id field task objects need put <section ui-view></section> in todo.html file. how nested states work. can use href oliver mentioned or stick sref. i've forked plunk here example.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -