I’m using the _id in my model hook to do my lookup. The problem is, I don’t want the ID shown in my address bar:
http://localhost:4200/#/markets/556c6e288db725344c8bf55e
I would much rather the name shown but still do my search based on the Id:
http://localhost:4200/#/markets/southern-market
model: function() {
return Ember.$.getJSON(config.api.baseURL + 'markets/' + market.path).then(function(marketData)
{
....
...
..
}
}
Example Link-to:
{{#link-to 'market' market.id}}
{{market.id}}
{{/link-to}}
Router.js portion:
this.route('market', { path: 'markets/:path'});