Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introduction to Ember.js
Search
Paulius Norkus
October 23, 2013
Programming
210
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to Ember.js
Paulius Norkus
October 23, 2013
More Decks by Paulius Norkus
See All by Paulius Norkus
ASP.NET vNext
pauliusnorkus
1
81
MonoGame
pauliusnorkus
0
350
Other Decks in Programming
See All in Programming
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
ジョジョの世界をXRで再現する
mofurune
0
160
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
450
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
JIS keyboard support in Omarchy
lef237
0
110
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
1.6k
A Modern Web Designer's Workflow
chriscoyier
699
190k
How to train your dragon (web standard)
notwaldorf
96
6.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
A better future with KSS
kneath
240
18k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
The Pragmatic Product Professional
lauravandoore
37
7.5k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Transcript
Introduction to Ember.js Paulius Norkus AdDuplex
What is Ember.js • A framework for creating ambitious web
applications • Based on MVC • Auto-Updating DOM • Conventions over configuration • Dependencies: • jQuery • Handelbars.js
Core Concepts • Classes and Instances • Computed Properties •
Bindings • Observers • Templates
Classes and Instances App.Person = Ember.Object.extend({ say: function (thing) {
var name = this.get("name"); alert(name + " says: " + thing); } }); App.Soldier = App.Person.extend({ say: function(thing){ this._super.say(thing + ", sir!"); } }); var soldier = App.Soldier.create({ name: "Ryan" }); soldier.say("Yes"); // alerts "Ryan says: Yes, sir!"
Computed Properties App.Person = Ember.Object.extend({ firstName: null, lastName: null, fullName:
function (){ return this.get("firstName") + " " + this.get("lastName"); }.property("firstName", "lastName") }); var person = App.Person.create({ firstName: "Paulius", lastName: "Norkus" }); person.get("fullName"); // "Paulius Norkus"
Bindings App.wife = Ember.Object.create({ householdIncome: 80000 }); App.husband = Ember.Object.create({
houseboldIncomeBinding: "App.wife.householdIncome" }); App.husband.get("householdIncome"); // 80000 //Someone get raise. App.husband.set("householdIncome", 90000); App.wife.get("householdIncome"); // 90000
Observers App.Person = Ember.Object.extend({ firstName: null, lastName: null, fullName: function
() { return this.get("firstName") + " " + this.get("lastName"); }.property("firstName", "lastName"), fullNameDidChange: function () { alert("Changed!"); }.observes("fullName") }); var person = App.Person.create({ firstName: "Paulius", lastName: "Norkus" }); person.set("firstName", "Jonas"); // alerts "Changed!"
Templates <script type="text/x-handlebars" id="posts"> <h1>{{categoryName}}</h1> <h2>Posts:</h2> <ul> {{#each post in
posts}} <li>{{post.title}}</li> {{else}} <p>No posts yet.</p> {{/each}} </ul> </script> Uses Handelbars.js templates with Ember.js helpers
Demo
Who is using Ember.js?
Resources • http://www.emberjs.com • http://discuss.emberjs.com • http://emberwatch.com/ • http://github.com/discourse/discourse •
IRC #emberjs
Thank You
We’re hiring! http://AdDuplex.com/Jobs