SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
Starting out with

Ember.js
    24 November, 2012
    BangaloreJS Meetup
whoami?
Anirudh Shivanand
    @theobile
     JS noob
     iOS developer
     Siebel faker
about ember.js
Been around since 2011
Came out of SproutCore -> Amber -> Ember
It's a JavaScript MVC framework
Eliminates boilerplate code and provides architecture

auto updating templates
data bindings
computed properties
routers - state managers
Dependencies
jQuery
Handlebars.js - Template language
Init | app.js
Ap=EbrApiaincet(
p   me.plcto.rae{
     ato:'nrd'
     uhr Aiuh
};
)

ApApiainotolr=EbrCnrle.xed)
p.plctoCnrle   me.otolretn(;

ApApiainiw=EbrVe.xed{
p.plctoVe   me.iwetn(
    tmltNm:'plcto'
    epaeae apiain
};
)

Apiiilz(;
p.ntaie)
Source HTML
<dcyehm>
!otp tl
<ed
ha>
     <citsc"slbjur-..-i.s>/cit
     srp r=j/i/qey172mnj"<srp>
     <citsc"slbhnlbr-...ea6j"<srp>
     srp r=j/i/adeas100bt..s>/cit
     <citsc"slbebr100pe2mnj"<srp>
     srp r=j/i/me-..-r..i.s>/cit
<ha>
/ed

<oy
bd>
     <cittp=tx/-adeas dt-epaenm=api
     srp ye"etxhnlbr" aatmlt-ae"pl
cto"
ain>
         <3Wount!/3
          h>hdni?<h>
         {Apato}
          {p.uhr}
     <srp>
     /cit

       <citsc"sapj"<srp>
       srp r=j/p.s>/cit
<bd>
/oy
<hm>
/tl
Voila!
Wount!
 hdni?
Aiuh
 nrd
Demo
Computed Property
ApUe =EbrOjc.xed{
p.sr   me.betetn(
    frt nl,
     is: ul
    ls:nl,
     at ul
    fl:fnto({
     ul ucin)
         rtr ti.e(frt)""ti.e(ls';
          eun hsgt'is'+ +hsgt'at)
    }poet(frt,ls'
     .rpry'is''at)
};
)
Subclassing | Data Binding
Apcret=ApUe.rae{
p.urn   p.srcet(
    frt 'o'
    is: Bb,
    ls:'aly,
    at Mre'
    peettidn:'p.oain
    rsnABnig Aplcto'
};
)
HTML
<cittp=tx/-adeas dt-epaenm=apiain>
srp ye"etxhnlbr" aatmlt-ae"plcto"
    <i>aecetdb:{Apato}<dv<r
     dvPg rae y {p.uhr}/i>b>
    <i>{p.urn.ul}i {Apcretpeett}/i>b>
     dv{Apcretfl} n {p.urn.rsnA}<dv<r

     <utn{ato "eGe"tre=Apcret}>e Ge<bt
     bto {cin bees agt"p.urn"}Be es/ut
o>
n
     <utn{ato "oeM tre=Apcret}>oe M<bto
     bto {cin bny" agt"p.urn"}Bny ?/ut
n>
<srp>
 /cit
Demo
Thank you.

Más contenido relacionado

La actualidad más candente

レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
Yasuharu Nakano
 
Raspagem da dados com Hpricot e Sinatra
Raspagem da dados com Hpricot e SinatraRaspagem da dados com Hpricot e Sinatra
Raspagem da dados com Hpricot e Sinatra
Duke Khaos
 
Plone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope RpxPlone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope Rpx
Paris, France
 
Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.
Peter Higgins
 

La actualidad más candente (20)

Es6 good parts
Es6 good partsEs6 good parts
Es6 good parts
 
One page app with AngularJS
One page app with AngularJSOne page app with AngularJS
One page app with AngularJS
 
ภาษา C
ภาษา Cภาษา C
ภาษา C
 
Noung — Snakes of the Tonle Sap
Noung — Snakes of the Tonle SapNoung — Snakes of the Tonle Sap
Noung — Snakes of the Tonle Sap
 
Java&Script
Java&ScriptJava&Script
Java&Script
 
Templating in ansible
Templating in ansibleTemplating in ansible
Templating in ansible
 
レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
レッツゴーデベロッパー2011「プログラミングGroovy〜G*エコシステム編」
 
Expressを使ってみた
Expressを使ってみたExpressを使ってみた
Expressを使ってみた
 
Pecha Kucha
Pecha KuchaPecha Kucha
Pecha Kucha
 
Java & Script ─ 清羽
Java & Script ─ 清羽Java & Script ─ 清羽
Java & Script ─ 清羽
 
Raspagem da dados com Hpricot e Sinatra
Raspagem da dados com Hpricot e SinatraRaspagem da dados com Hpricot e Sinatra
Raspagem da dados com Hpricot e Sinatra
 
Islam House
Islam HouseIslam House
Islam House
 
Ansible -new kid in configuration management world
Ansible -new kid in configuration management worldAnsible -new kid in configuration management world
Ansible -new kid in configuration management world
 
Plone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope RpxPlone Conference 2008 Lightning Talk Static Zope Rpx
Plone Conference 2008 Lightning Talk Static Zope Rpx
 
Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.
 
Dion Almaer & Ben Galbraith - Build Once, Deploy Everywhere
Dion Almaer & Ben Galbraith - Build Once, Deploy EverywhereDion Almaer & Ben Galbraith - Build Once, Deploy Everywhere
Dion Almaer & Ben Galbraith - Build Once, Deploy Everywhere
 
Ruby ile tanışma!
Ruby ile tanışma!Ruby ile tanışma!
Ruby ile tanışma!
 
구름 이야기(Feat. gcp) - 구글클라우드(GCP) 활용 사례
구름 이야기(Feat. gcp) - 구글클라우드(GCP) 활용 사례구름 이야기(Feat. gcp) - 구글클라우드(GCP) 활용 사례
구름 이야기(Feat. gcp) - 구글클라우드(GCP) 활용 사례
 
Extracting ruby gem
Extracting ruby gemExtracting ruby gem
Extracting ruby gem
 
Ruby Robots
Ruby RobotsRuby Robots
Ruby Robots
 

Destacado

Johnson alannah mdia3002_image_gallery
Johnson alannah mdia3002_image_galleryJohnson alannah mdia3002_image_gallery
Johnson alannah mdia3002_image_gallery
lanaj90
 
4 q08 presentation
4 q08 presentation4 q08 presentation
4 q08 presentation
Equatorial
 
Taller recuperacion 4 to periodo 2011 copia
Taller recuperacion 4 to periodo 2011   copiaTaller recuperacion 4 to periodo 2011   copia
Taller recuperacion 4 to periodo 2011 copia
jolehidy6
 
보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1
준수 김
 
Uchebnik smm maxim_gorbunov
Uchebnik smm maxim_gorbunovUchebnik smm maxim_gorbunov
Uchebnik smm maxim_gorbunov
Sergey Shmakov
 
Házi múzeum egresi zs.+ani (nx powerlite)
Házi múzeum egresi zs.+ani (nx powerlite)Házi múzeum egresi zs.+ani (nx powerlite)
Házi múzeum egresi zs.+ani (nx powerlite)
VarganeAnny
 
Argentina+ani (nx power lite)
Argentina+ani (nx power lite)Argentina+ani (nx power lite)
Argentina+ani (nx power lite)
VarganeAnny
 
Arany kezek(3)+ani (nx power lite)
Arany kezek(3)+ani (nx power lite)Arany kezek(3)+ani (nx power lite)
Arany kezek(3)+ani (nx power lite)
VarganeAnny
 
Görögország(7)+ani (nx power lite)
Görögország(7)+ani (nx power lite)Görögország(7)+ani (nx power lite)
Görögország(7)+ani (nx power lite)
VarganeAnny
 
보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1
준수 김
 

Destacado (20)

Workshop nara
Workshop naraWorkshop nara
Workshop nara
 
Johnson alannah mdia3002_image_gallery
Johnson alannah mdia3002_image_galleryJohnson alannah mdia3002_image_gallery
Johnson alannah mdia3002_image_gallery
 
Twitter For Business: A "How To" for B2B Marketing
Twitter For Business: A "How To" for B2B MarketingTwitter For Business: A "How To" for B2B Marketing
Twitter For Business: A "How To" for B2B Marketing
 
4 q08 presentation
4 q08 presentation4 q08 presentation
4 q08 presentation
 
Powerpoint
PowerpointPowerpoint
Powerpoint
 
Combi
CombiCombi
Combi
 
Taller recuperacion 4 to periodo 2011 copia
Taller recuperacion 4 to periodo 2011   copiaTaller recuperacion 4 to periodo 2011   copia
Taller recuperacion 4 to periodo 2011 copia
 
Social Media: 0-60
Social Media: 0-60Social Media: 0-60
Social Media: 0-60
 
Branding Retrospective - Schwan Food Company
Branding Retrospective - Schwan Food CompanyBranding Retrospective - Schwan Food Company
Branding Retrospective - Schwan Food Company
 
보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1
 
Uchebnik smm maxim_gorbunov
Uchebnik smm maxim_gorbunovUchebnik smm maxim_gorbunov
Uchebnik smm maxim_gorbunov
 
Házi múzeum egresi zs.+ani (nx powerlite)
Házi múzeum egresi zs.+ani (nx powerlite)Házi múzeum egresi zs.+ani (nx powerlite)
Házi múzeum egresi zs.+ani (nx powerlite)
 
Argentina+ani (nx power lite)
Argentina+ani (nx power lite)Argentina+ani (nx power lite)
Argentina+ani (nx power lite)
 
Arany kezek(3)+ani (nx power lite)
Arany kezek(3)+ani (nx power lite)Arany kezek(3)+ani (nx power lite)
Arany kezek(3)+ani (nx power lite)
 
Choose to Save PSA Presentation
Choose to Save PSA PresentationChoose to Save PSA Presentation
Choose to Save PSA Presentation
 
Bab iv
Bab ivBab iv
Bab iv
 
VDI, desktopconcepten en het nieuwe werken
VDI, desktopconcepten en het nieuwe werkenVDI, desktopconcepten en het nieuwe werken
VDI, desktopconcepten en het nieuwe werken
 
Görögország(7)+ani (nx power lite)
Görögország(7)+ani (nx power lite)Görögország(7)+ani (nx power lite)
Görögország(7)+ani (nx power lite)
 
Aca f16 actividades - plan de apoyo apa 7mos 2do periodo
Aca f16 actividades - plan de apoyo apa 7mos  2do periodoAca f16 actividades - plan de apoyo apa 7mos  2do periodo
Aca f16 actividades - plan de apoyo apa 7mos 2do periodo
 
보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1보건산업안전학과 2009180929김준수1
보건산업안전학과 2009180929김준수1
 

Similar a Starting out with Ember.js

Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Pat Cito
 
Refactoring to symfony components
Refactoring to symfony componentsRefactoring to symfony components
Refactoring to symfony components
Michael Peacock
 
Cakefest 2010: API Development
Cakefest 2010: API DevelopmentCakefest 2010: API Development
Cakefest 2010: API Development
Andrew Curioso
 
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DB
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DBWeb aplikāciju izstrāde ar Ruby on Rails un Oracle DB
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DB
Raimonds Simanovskis
 
Creating windows store java script apps
Creating windows store java script appsCreating windows store java script apps
Creating windows store java script apps
Eugene Zharkov
 

Similar a Starting out with Ember.js (20)

Angular.js + Rails at WeWork or: The Accidental Feature
Angular.js + Rails at WeWork or: The Accidental FeatureAngular.js + Rails at WeWork or: The Accidental Feature
Angular.js + Rails at WeWork or: The Accidental Feature
 
A Backbone.js Tutorial for the Impatient - Part 1
A Backbone.js Tutorial for the Impatient - Part 1A Backbone.js Tutorial for the Impatient - Part 1
A Backbone.js Tutorial for the Impatient - Part 1
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Building modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and javaBuilding modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and java
 
Refactoring to symfony components
Refactoring to symfony componentsRefactoring to symfony components
Refactoring to symfony components
 
How to create a 3.2 billion dollar business in 20 minutes: combining AngularJ...
How to create a 3.2 billion dollar business in 20 minutes: combining AngularJ...How to create a 3.2 billion dollar business in 20 minutes: combining AngularJ...
How to create a 3.2 billion dollar business in 20 minutes: combining AngularJ...
 
Learn Frontend Testing
Learn Frontend TestingLearn Frontend Testing
Learn Frontend Testing
 
JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼
 
SecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play FrameworkSecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play Framework
 
Flow of events during Media Player creation in Android
Flow of events during Media Player creation in AndroidFlow of events during Media Player creation in Android
Flow of events during Media Player creation in Android
 
Clojurescript up and running
Clojurescript up and runningClojurescript up and running
Clojurescript up and running
 
Beginner workshop to angularjs presentation at Google
Beginner workshop to angularjs presentation at GoogleBeginner workshop to angularjs presentation at Google
Beginner workshop to angularjs presentation at Google
 
Cakefest 2010: API Development
Cakefest 2010: API DevelopmentCakefest 2010: API Development
Cakefest 2010: API Development
 
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DB
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DBWeb aplikāciju izstrāde ar Ruby on Rails un Oracle DB
Web aplikāciju izstrāde ar Ruby on Rails un Oracle DB
 
An Introduction to CSS Preprocessors
An Introduction to CSS PreprocessorsAn Introduction to CSS Preprocessors
An Introduction to CSS Preprocessors
 
Going crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHPGoing crazy with Node.JS and CakePHP
Going crazy with Node.JS and CakePHP
 
[Webinar] An Hour with the CTO: All About APIs and the Nuxeo Platform
[Webinar] An Hour with the CTO: All About APIs and the Nuxeo Platform[Webinar] An Hour with the CTO: All About APIs and the Nuxeo Platform
[Webinar] An Hour with the CTO: All About APIs and the Nuxeo Platform
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and Customization
 
Creating windows store java script apps
Creating windows store java script appsCreating windows store java script apps
Creating windows store java script apps
 
Lettering js
Lettering jsLettering js
Lettering js
 

Starting out with Ember.js