Ember Vs Angular

All,

I’m slightly confused about choosing a right framework for one of my upcoming project. Can someone shed some light whether to opt Ember (or) Angular?

Thanks in advance! Dave

What type of application will you be building? Are you going to be persisting data over http using some type of REST api? Do you want to write this by hand using $.ajax or would you prefer to abstract this away (ie- how much control do you need here).

Some part of the decision might also be a preference of coding style. Have you looked over the todomvc example source code for each project? **Not that this app shows any of embers strengths but it will provide you with a simple comparision of “here is what code looks like in ember/ angular”

http://addyosmani.github.com/todomvc/architecture-examples/angularjs/#/ http://addyosmani.github.com/todomvc/architecture-examples/emberjs/

huge disclaimer here as I have ZERO experience with Angular

That said, part of my coding preference is to favor imparative coding styles over declarative. When I look at ember I see a lot of hand written javascript (when it’s needed at all). Then to wire up some component you write html or a handlebars helper.

On the Angular side I see something closer to twitter bootstrap where you add a good amount of behavior (that would usually be in pure JS code) by simply applying an html like tag. This is not to say it’s a bad thing, but my preference is usually on the javascript / imperative side of things.

Another thing worth mentioning is that when ember-data becomes stable (more-stable) the true ember.js + ember-data stack offers something unlike any client side library today. I get the rich domain model like experience I’m familar with on the server side, but in my client side code. You get persistence backed models that know how to manage relationships with other models / handle change tracking for more complex logic and workflows on the client / easily share different model state between various parts of your application without re-fetching that data from your REST api / lazy loading or evaluation of related models / less noise code (ie- not having to write $.ajax for each lookup + an ActiveRecord / orm like abstraction to let you focus on the things that matter in your product / etc)

That’s not to say the AngularJS team can’t also provide something like ember-data but today they appear to be a MVC only framework (unlike what I envision ember.js + ember-data looks like in the coming months).

That said -if you are shipping this thing in the next 30 days … you would need to build on a less than stable API (ember-data that is) and this might not be ideal.

I don’t think this is something on topic for an Ember.js forum. “Is Ember.js a good fit for my project” would be an OK question, especially if you shared details of what you were building. Can we help point you towards information that would help you make this decision yourself?

This topic is now invisible. It will no longer be displayed in any topic lists. The only way to access this topic is via direct link.