serialization - EmberJS - How is find / findAll and the Route.deserialize and Route.serialize related? -
Hello, to find and search amazing queries, use them on all models to automatically deserialize URLs Has been mentioned for. / P>
How does this interface look like, and is it really a model and not a controller?
An example would be wonderful.
As always, there is a wonderful place to start documenting. See a look for the default serial / deserialize methods.
You have the right idea.
- Amber takes the nearest dynamic segment eg.
blog_post_id
- Finally
_id strips,
blog_post
- call
leaving Ember .String .classify ('blog_post') which gives a blog post
- It appears under the Amber namespace example for that model class, App.BlogPost
- call this on that model In search of Napppard's comments, he asked about many dynamic areas. App.BlogPost.find (1)
Edit:
Yes amber-router currently supports many dynamic areas in the same path.
Ember.Route.extend ({":: / / post_type /: post_id"}}
If you really need it for your own To write deserialize / serialize modes, I personally use the nested dynamic position.
Amber. way. Extension ({path: "/: post_type" post: Ember.Route.extend ({path: "/: Post_id"})})
- Finally
Comments
Post a Comment