javascript - Ember more complex example - Stack Overflow

I spent last week exploring Ember and Backbone. I got easy into backbone but Ember (even more difficult

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:

  1. 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?
  2. Data manipulation
  3. Validation
  4. 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:

  1. 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?
  2. Data manipulation
  3. Validation
  4. 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 badges
Add a ment  | 

4 Answers 4

Reset to default 6

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./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

相关推荐

  • javascript - Ember more complex example - Stack Overflow

    I spent last week exploring Ember and Backbone. I got easy into backbone but Ember (even more difficult

    9小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信