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

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -