I have two routes in my router.js
'user/:id' -> will move to user show page
'user-answer/:id/answers' -> will move to user answer page
currently i am using a if condition to change the link as shown in below code ,
sidePanel.hbs
I use the sidePanel component in other two components as
it is working fine , but is there a way to use link-to one time , instead of a conditional check , like passing dynamic route parameters ?
something like
Aucun commentaire:
Enregistrer un commentaire