Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ember.js Primer

Ember.js Primer

Balint Erdi

May 11, 2013
Tweet

More Decks by Balint Erdi

Other Decks in Technology

Transcript

  1. JAVASCRIPT CLIENT-SIDE FRAMEWORKS • Aim to bring the desktop experience

    to the web • Could easily be the next big thing • People like fast, intuitive user experience Monday, May 13, 13
  2. JAVASCRIPT CLIENT-SIDE FRAMEWORKS • Angular.js ⚔ • Backbone • Batman.js

    • Sammy.js •Ember.js ✌ • Knockout.js Monday, May 13, 13
  3. EMBER.JS: MAIN COMPONENTS • Model: Stores and fetches data •

    Controller: proxies model data to views • View: reusable UI component, handles events • Templates: base for rendered html (aka. as view in server-side MVC :) ) • Router: matches URLs and connects other components (somewhat like controllers in server-side mvc) Monday, May 13, 13
  4. NAMING CONVENTIONS - PLURAL • this.resource(‘tables’) • App.TablesRoute • App.Table

    • App.TablesController • App.TablesView • Template: tables Monday, May 13, 13
  5. NAMING CONVENTIONS - SINGULAR • this.resource(‘table’) (nested) • App.TableRoute •

    App.Table • App.TableController • App.TableView • Template: table Monday, May 13, 13