#71 Clickable Row with Ember Models Table

Guest Tip by Mehrdad Rafiee
If you are using Ember Models Table and you need to change the route (change URL) once you click on a row, you can pass “rowTemplate” attribute to the table component and in the template pass the attribute tagName=”tr” to the link-to helper like so:
app/templates/index.hbs

app/templates/band-row.hbs

 


Also published on Medium.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu