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
Lightning Talk: Fluxo (básico) Ember 1.x.x
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Duke
July 24, 2015
Programming
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lightning Talk: Fluxo (básico) Ember 1.x.x
Duke
July 24, 2015
More Decks by Duke
See All by Duke
Docker
dukex
0
110
Lightning Talk: Testes em Javascript
dukex
0
130
Concorrência em GO
dukex
0
84
Meetup Go - Como construi o uhuraapp.com
dukex
4
730
Realtime - Usando o MeteorJS
dukex
3
660
Como fazer API melhor que o governo?
dukex
1
760
Raspagem de Dados com Ruby
dukex
1
1k
Grid System com Amor
dukex
0
760
Abrindo Dados na unha
dukex
1
120
Other Decks in Programming
See All in Programming
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
2
740
週末にAI-DLCを本気で回したら$1,600溶けた
hbashimizu
0
130
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
180
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
640
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
150
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
AIエージェント時代のコードレビューを設計する
nogu66
6
2.6k
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
200
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
950
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
260
不幸な GC
chencmd
0
890
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
A designer walks into a library…
pauljervisheath
211
25k
Building Applications with DynamoDB
mza
96
7.2k
The browser strikes back
jonoalderson
0
1.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
490
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Crafting Experiences
bethany
1
300
Transcript
Model Controller Route Template View
Model Route model(p, t) beforeModel(transition) afterModel(resolvedModel, transition) Promise Promise Promise
model () { return this.get('store').findAll('structural-context'); } afterModel (transition) { let
superResult = this._super(transition); return this.get('consumer').setup() .then(() => superResult); } Model Route
setupController(controller, model) setupController(controller, model) { let query = { structuralItemId:
model.get('structuralItemId') }; this.get('store').query('structural-widget', query).then((structuralWidgets) => { controller.set('structuralWidgets', structuralWidgets); }); this._super(controller, model); } Controller Route
renderTemplate(controller, model) sidebar: 'default', renderTemplate (controller, model) { this.render('sidebar', {
outlet: 'sidebar' }); this.render(`sidebar/${this.get('sidebar')}`, { outlet: 'sidebar-content', into: 'sidebar' }); this._super(controller, model); } Route View
Template View didInsertElement () { this._super(); Ember.run.scheduleOnce('afterRender', this, () =>
{ window.componentHandler.upgradeAllRegistered(); }); } MyView = Ember.View.extend({ classNames: ['my-class', 'my-other-class'] }); <div id="ember1" class="ember-view my-class my-other-class"></div> didInsertElement() willClearRender() willDestroyElement() willInsertElement()
Controller Template <div class="col-sm-3"> {{#if model.parent}} <h3>PAI:</h3> {{#linkTo "structural_contexts.structural_context" model.parent}}
{{model.parent.name}} ({{model.parent.structuralItemType}}) {{/linkTo}} {{/if}} </div> <h2 class="col-sm-5 text-center">{{model.name}} ({{model}})</h2>
Controller View didInsertElement: -> ... controller = @get('controller') rdpApi =
controller.get('rdpApi') config = controller.get('config') controller.get('features').set('go_to_page', null) ... Ember.$('.container').click ()-> controller.get('features').send('close') ... reader.on "error", (status)-> controller.send('invalidateSession') if status is 403