@hodaraadam wrote:
Hi,
I am new to ember, I manage to get my " single post" model and route working if I send them to myapp/post/postId but I want it to make it work with myapp.com/post/postTitle..I can't fin anywhere how to do that...I tried to change the model to this:
model(params) {
this.get('store').query('post', {
filter: {
title: params.post_title
}
})
}and router to :
Router.map(function() {
this.route('post', {path: 'post/:post_title'});
});but won't work... any help?
I am using firebase as the database.
Posts: 1
Participants: 1