Skip to content

Instantly share code, notes, and snippets.

@iheanyi
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save iheanyi/263fbd39467a86df82fd to your computer and use it in GitHub Desktop.

Select an option

Save iheanyi/263fbd39467a86df82fd to your computer and use it in GitHub Desktop.
Drawing connections between Angular and Ember as I learn Angular.

Think of Angular Modules as an Ember Application

This is what defines your application and which controllers are a part of it.

Think of Angular Controllers as Ember Controllers

You can see the similarities between Ember controllers and Angular controllers. Attributes and functions defined within the Angular controller are responsible for updating the view. Similar to how actions in the front-end and attributes in Ember controllers are responsible for updating Ember's views.

Think of Angular Directives as Ember Components

Directives in Angular can be seen as components in Ember.JS, isolated in scope, attributes, and their templates. <directive [args...]> = {{component [args...}}

Think of Angular Factories/Services as Ember ? ? ? ?

I mean, they remind me of fetching things using Ember.$.ajax() or {request} via ic-ajax, for some initial data this could be called from the model {} function in a route, returning the initial data that is defined in the front-end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment