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 plex example that demonstrates the following features:
- Routing and history for more plex 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 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 plex example that demonstrates the following features:
- Routing and history for more plex 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?
Share Improve this question edited Sep 14, 2012 at 15:00 Andrej Kaurin asked Sep 14, 2012 at 14:54 Andrej KaurinAndrej Kaurin 11.6k13 gold badges47 silver badges55 bronze badges4 Answers
Reset to default 6I've just updated a Rails-based ember / ember-data example to illustrate the latest changes in the ember router and ember-data: https://github./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.
Hi I'm having the same issue and found the following article or blog post very helpfully Advice on & Instruction in the Use Of Ember.js - http://trek.github./
I remend checking it out
Checkout Ember examle with latest resources
DEBUG: ------------------------------- ember.js:339
DEBUG: Ember.VERSION : 1.0.0-rc.1 ember.js:339
DEBUG: Handlebars.VERSION : 1.0.0-rc.3 ember.js:339
DEBUG: jQuery.VERSION : 1.9.1 ember.js:339
DEBUG: -------------------------------
Addy Osmani's TodoMVC project features an Ember version:
http://todomvc./architecture-examples/emberjs/
It would probably have everything you'd need to get started.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745110009a4611789.html
评论列表(0条)