I spent last week exploring Ember and Backbone. I got easy into backbone but Ember (even more difficult to learn) gives me more options. From ember site I found only basic examples.
Is there some more complex example that demonstrates the following features:
- Routing and history for more complex cases like /articles/view/12,
/blogs/12/post1234. I am wondering how ember handles bunch of
different urls. Nested routes? Can I add routes dynamically? - Data manipulation
- Validation
- Localization
AND MOST IMPORTANT:
How to separate my logic into different files? Something like
-
Controllers
- HomeController.js
- BlogsController.js
- ArticlesController.js
-
Views
- Home
- Index.js
- About.js
- Blogs
- Index.js
etc.
Any ideas?
I’ve just updated a Rails-based ember / ember-data example to illustrate the latest changes in the ember router and ember-data: https://github.com/dgeb/ember_data_example
I hope you’ll find it to be a good example of nested routing and basic data manipulation. Because ember-data does not yet include validation logic, this example relies on Bootstrap validation in forms (definitely not the most robust solution).
I’m cooking up some blog posts based on this example.