This seems overkill, why not simply concatenate the url in the template: `"#/tickets/{{ticket.id}}", that way you could probably pass `data.results` to the template directly.