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:
- you create custom linkto handlebars helper, or
- or hook model hook of route alter deserialization, , serialize hook in route serialization. in hooks able alter default behavior linkto helper
Comments
Post a Comment