Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ember Data
Search
Paul Chavard
May 30, 2012
Programming
11
810
Ember Data
Paul Chavard
May 30, 2012
Tweet
Share
More Decks by Paul Chavard
See All by Paul Chavard
Le Tour du monde en quatre-vingts jours
tchak
1
32
Functional Ember
tchak
0
270
HTTP
tchak
3
180
Ember Data REBOOT
tchak
0
120
Ember Data: (Advanced) Patterns
tchak
2
220
EmberJS Introduction
tchak
1
190
From SproutCore to Ember
tchak
2
240
Ember.js
tchak
11
1.6k
Other Decks in Programming
See All in Programming
Prolog入門
qnighy
4
1k
How to Break into Reading Open Source
kaspth
2
220
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
430
XStateでReactに秩序を与えたい
gizm000
0
730
Modernisation Progressive d’Applications PHP
hhamon
0
100
私のEbitengineの第一歩
qt_luigi
0
450
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
130
事業フェーズの変化に対応する 開発生産性向上のゼロイチ
masaygggg
0
210
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
4
90k
2024 컴포즈 정원사
jisungbin
0
150
The Shape of a Service Object
inem
0
530
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
420
Featured
See All Featured
The Language of Interfaces
destraynor
153
23k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
What's in a price? How to price your products and services
michaelherold
242
11k
Raft: Consensus for Rubyists
vanstee
136
6.5k
Principles of Awesome APIs and How to Build Them.
keavy
125
16k
What the flash - Photography Introduction
edds
67
11k
Into the Great Unknown - MozCon
thekraken
29
1.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Debugging Ruby Performance
tmm1
72
12k
Infographics Made Easy
chrislema
239
18k
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
How STYLIGHT went responsive
nonsquared
93
5.1k
Transcript
Ember Data
Paul Chavard capitainetrain.com
Capitaine Train recrute!
ALPHA !
DS.Store
✓ store = DS.Store.create() ✓ store.createRecord(App.Person) ✓ store.find(App.Person, 42) ✓
store.findAll(App.Person) ✓ store.findQuery(App.Person, {name: ‘Paul’}) ✓ store.filter(App.Person, function(data) {})
DS.Model
✓ App.Person = DS.Model.create() ✓ DS.attr(“string”) ✓ DS.attr(“number”) ✓ DS.attr(“boolean”)
✓ DS.attr(“date”)
✓ DS.hasMany(“App.Person”) ✓ DS.belongsTo(“App.Person”) ✓ DS.hasMany(“App.Person”, {embedded: true})
✓ record = App.Person.createRecord({name: “Paul”}) ✓ record.set(“name”, “Paul Chavard”) ✓
record.incrementProperty(“age”) ✓ record.deleteRecord()
DS.Transaction
✓ transaction = store.transaction() ✓ transaction.add(record) ✓ transaction.rollback() ✓ transaction.commit()
DS.Adapter
✓ adapter.find(store, type, id) ✓ adapter.findAll(store, type) ✓ adapter.createRecord(store, type,
record) ✓ adapter.updateRecord(store, type, record) ✓ adapter.deleteRecord(store, type, record)
DS.RESTAdapter
Active Model Serializers github.com/josevalim/active_model_serializers
Demo gist.github.com/2835387 github.com/tchak/colors-demo colors-demo.herokuapp.com
Ember Meetup www.meetup.com/EmberJS-Paris
twitter @emberjs github @emberjs IRC #emberjs emberjs.org
twitter @tchak13 github @tchak talks.tchak.net
thanks ! questions ?