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 ATX: Components
Search
timgthomas
May 29, 2015
Programming
0
77
Ember ATX: Components
An introduction to Ember's Components
timgthomas
May 29, 2015
Tweet
Share
More Decks by timgthomas
See All by timgthomas
Living Style Guides: Bringing Designers and Developers Together
timgthomas
0
150
Icons and the Web: Symbols of the Modern Age
timgthomas
0
140
Constructing Modern UIs with SVG
timgthomas
0
150
Browser Invasion: Desktop Apps and the Web
timgthomas
0
120
Mind the Gap: Bringing Designers and Developers Together
timgthomas
0
89
Zero to App Store: A Hybrid App’s Tale
timgthomas
1
120
Chocolate-Covered Vegetables: Tasty Workflows with Broccoli
timgthomas
0
100
Ember ATX: Ember.Evented
timgthomas
0
110
Chocolate-Covered Vegetables: Tasty Workflows with Broccoli
timgthomas
0
340
Other Decks in Programming
See All in Programming
Immutable ActiveRecord
megane42
0
130
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
110
ARA Ansible for the teams
kksat
0
150
Kubernetes History Inspector(KHI)を触ってみた
bells17
0
200
chibiccをCILに移植した結果 (NGK2025S版)
kekyo
PRO
0
210
Kanzawa.rbのLT大会を支える技術の裏側を変更する Ruby on Rails + Litestream 編
muryoimpl
0
220
[JAWS-UG横浜 #80] うわっ…今年のServerless アップデート、少なすぎ…?
maroon1st
1
170
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
170
『品質』という言葉が嫌いな理由
korimu
0
160
sappoRo.R #12 初心者セッション
kosugitti
0
230
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
110
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
240
Featured
See All Featured
A designer walks into a library…
pauljervisheath
205
24k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Rails Girls Zürich Keynote
gr2m
94
13k
BBQ
matthewcrist
86
9.5k
Building Applications with DynamoDB
mza
93
6.2k
Building an army of robots
kneath
302
45k
Visualization
eitanlees
146
15k
Transcript
Components
Tim G. Thomas @timgthomas timgthomas.com
Components
{{ember-atx}}
Controller + View (+ Template) Route-less
Why?
Using Components
{{ember-atx}}
/* ember-atx.hbs */ <h1>‚</h1> /* elsewhere... */ {{ember-atx}}
/* ember-atx.hbs */ <h1>‚</h1> /* In 1.13... */ <ember-atx>
export default Ember.Component.extend({ });
export default Ember.Component.extend({ didInsertElement() { // I'm a view! }
});
export default Ember.Component.extend({ didInsertElement() { this.$().fadeOut(); } });
export default Ember.Component.extend({ itemCount: function() { // No, wait...I'm a
Controller! }.property() });
export default Ember.Component.extend({ itemCount: function() { return this.get('items'); }.property('items') });
{{ember-atx items=model}}
export default Ember.Component.extend({ items: function() { return Ember.$ .getJSON('/dont/tell/anyone'); }.property()
});
<ember-atx foo={{action 'attend'}}> foo: 'bar', actions: { somethingHappened() { this.attrs.foo.call({});
} }
<ember-atx attend={{action 'attend'}}>
<p>{{yield}}</p> {{#ember-atx}} I'm a lumberjack and I'm okay... {{/ember-atx}}
{{component 'component-name'}}
guides.emberjs.com ember-components.com timgthomas.com Don't go here!
Thanks! @timgthomas