Slide 1

Slide 1 text

A framework for creating ambitious web applications EMBER.JS IN 10 MINUTES

Slide 2

Slide 2 text

WHAT IS EMBER.JS? ARCHITECTURE- ORIENTED STRONG LINEAGE AMBITIOUS MVC

Slide 3

Slide 3 text

■ Object model ■ Computed properties ■ Data bindings ■ Data-bound templates ■ Write less code! EMBER.JS FEATURES.

Slide 4

Slide 4 text

App.Person = Ember.Object.extend({ firstName: null, lastName: null }); App.Student = App.Person.extend({ graduationYear: null }); OBJECT MODEL.

Slide 5

Slide 5 text

App.Student = App.Person.extend({ graduationYear: null }); var patrick = App.Student.create({ firstName: 'Patrick' lastName: 'Gibson' graduationYear: 2015 }); patrick.get('graduationYear'); // => 2015 patrick.set('graduationYear', 2016); OBJECT MODEL.

Slide 6

Slide 6 text

App.Student = Ember.Person.extend({ grades: null, gradeAverage: function() { var grades = this.get('grades'); var total = grades.reduce(function(val, i){ return val + i; }); return total/grades.get('length'); }.property('grades.@each') }); var patrick = App.Student.create({ grades: [83, 76, 97, 60] }); patrick.get('gradeAverage'); // => 79 COMPUTED PROPERTIES.

Slide 7

Slide 7 text

App.school = Ember.Object.create({ city: "Embertown", schoolName: function() { var city = this.get('city') return "University of %@".fmt(city); }.property('city') }); App.Student.extend({ attendingSchoolBinding: 'App.school.schoolName' }); patrick.get('attendingSchool') // => "University of Embertown" DATA BINDINGS.

Slide 8

Slide 8 text

... same javascript as before ... {{App.patrick.gradeAverage}} DATA-BOUND TEMPLATES.

Slide 9

Slide 9 text

■ Primitives provide structure for large applications ■ Convention over con guration ■ Big companies on board: Square, ZenDesk, R&D at major education companies, etc. ■ ember-data makes it easy to persist data ■ ember-rails makes getting started easy ■ Optimized for developer happiness WRAP UP.

Slide 10

Slide 10 text

THANK YOU.

Slide 11

Slide 11 text

@PATR1CK AND @TOMDALE @EMBERJS EMBERJS.COM GITHUB.COM/EMBERJS IRC #EMBERJS