How would you render a dynamic route on a hypothetical TodosView.js component? (example localhost:3000/todos/1 where 1 is the id of the todo item)
On Home you used:
static needs = [ TodosActions.getTodos ];
On TodosView, how would you get the parameter ( 1 in this case ), and then pass it to the viewTodo(id) action so that it can be rendered on the server?
How would you render a dynamic route on a hypothetical TodosView.js component? (example localhost:3000/todos/1 where 1 is the id of the todo item)
On Home you used: static needs = [ TodosActions.getTodos ];
On TodosView, how would you get the parameter ( 1 in this case ), and then pass it to the viewTodo(id) action so that it can be rendered on the server?