I want to create a component that should generate dynamic links. I tried passing the link data as an array, but this will not work.
var user1 = get("store").find("user", 1); var data = {link: ["users.show", user1], title: "User1"}; {{#link-to data.link}}{{data.title}}{{/link-to}}
It should be equal
{{#link-to "users.show" 1}}{{data.title}}{{/link-to}}
How to create fully dynamic links from a variable?
gucki source share