26
votes
3answers
11k views

ember.js and the server

I'm looking at Ember.js and have been reading the docs to try and understand how to use it. I get it (pretty well), except for one thing. To my way of thinking in the MVC pattern, the Model is the ...
12
votes
3answers
2k views

Best practice regarding StateManager in Ember.js

The StateManager in Ember.js isn't that well documented yet, so I've got some questions regarding its usage. Should one strive to call .goToState only from within the state manager? I sometimes find ...
10
votes
1answer
355 views

Ember multiple instance of controllers

I've been using Ember for a while but still struggling sometimes to find out the best practices. So one of the Ember ways regarding controller and view is an opinion of Ember's designers, that is ...
9
votes
1answer
524 views

How to unit test views in ember.js?

We are in the process of learning Ember.js. We do all our development TDD, and want Ember.js to be no exception. We have experience building Backbone.js apps test-driven, so we are familiar with ...
8
votes
1answer
201 views

EmberJS Binding Content Between Controllers

I'm currently working with two data models, where Foo has a "toMany" property of type Bars. I'm now trying to create two select boxes where when the first populated with Foo's is picked, it refines ...
7
votes
1answer
209 views

What paradigm shifts in thinking should a Rails or server-side developer make when beginning Ember.js?

While most of my recent work has primarily been with Ruby on Rails and a liberal dose of Javascript (mainly jQuery), I would like to build a single page application and realize that Ember.js seems to ...
7
votes
3answers
2k views

EmberJS: Good separation of concerns for Models, Stores, Controllers, Views in a rather complex application?

I'm doing a fairly complex emberjs application, and tying it to a backend of APIs. The API calls are not usually tied to any particular model, but may return objects of various types in different ...
7
votes
1answer
3k views

Ember.js: How do I access a specific item in a CollectionView?

First off I want to say that I really like ember.js. I have tried both Knockout and Angular but found them a bit to obtrusive and everything had to be done their way. I feel like ember allows me a bit ...
6
votes
1answer
491 views

Ember.js recursive controllers and views

Say I have a list of Action objects, which corresponds to a Ember model. Each has a few properties (timestamps) and a detail attribute, which can can recursively contain more details (arbitrarily deep ...
5
votes
2answers
1k views

What's the point of ArrayController in Ember.js?

The documentation has an example of using an ArrayController with this template: {{#each MyApp.listController}} {{firstName}} {{lastName}} {{/each}} This is how the ArrayController is used: ...
5
votes
4answers
739 views

EmberJS Nested Views and Controllers

I'm writing an app with EmberJS v1.0.pre. I have an ArrayController which contains a list of all persons. There are a bunch of nested views showing the person, their pets and the notes for each pet. ...
5
votes
1answer
1k views

How do you use ember-rest controllers to work with Rails3 nested resources?

I am newbie in client side Javascript MVC, first ember.js app. I follow the instructions here to use ember-rest in creating a post-comments type of nested models. ...
4
votes
3answers
2k views

Ember.js nested routes

Cheers! I've got routes: TravelClient.Router.map(function() { this.resource('tours', function() { this.resource('tour', { path: ':tour_id' }, function(){ this.route('seats'); }); ...
4
votes
1answer
162 views

How to secure EmberJS or any Javascript MVC framework?

I'm looking forward to start using Ember.js in a real life project, but as someone coming from a Java background, I always care about Security. And when I say to my fellow Java developers, I start ...
4
votes
1answer
2k views

Ember.js: How can I decouple my views from my controllers?

I'm trying to restructure tightly coupled portions of an ember.js app, particularly views and templates to controllers. All the examples I've seen bind views directly to controllers in the view's ...

1 2 3 4 5 7
15 30 50 per page