Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember more complex example

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:

  1. 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?
  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?

like image 315
Andrej Kaurin Avatar asked Jul 18 '26 12:07

Andrej Kaurin


1 Answers

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.

like image 96
Dan Gebhardt Avatar answered Jul 21 '26 01:07

Dan Gebhardt