ember.js - Overriding Ember's default behavior in {{linkTo}} -


the ember guide on {{linkto}} says:

by default, ember.js replace segment value of object's id property.

i use different property profilename(unique string) instead of id property. has done this? appreciated.

thanks

you have 2 choices:

  1. you create custom linkto handlebars helper, or
  2. or hook model hook of route alter deserialization, , serialize hook in route serialization. in hooks able alter default behavior linkto helper

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -