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
Lightning Talk: Fluxo (básico) Ember 1.x.x
Search
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
140
Concorrência em GO
dukex
0
89
Meetup Go - Como construi o uhuraapp.com
dukex
4
740
Realtime - Usando o MeteorJS
dukex
3
670
Como fazer API melhor que o governo?
dukex
1
780
Raspagem de Dados com Ruby
dukex
1
1k
Grid System com Amor
dukex
0
770
Abrindo Dados na unha
dukex
1
120
Other Decks in Programming
See All in Programming
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
0
120
Getting Started with Vibe Coding
miccheng
0
160
Seven New Principles of Software Engineering
yegor256
0
420
Railsバージョンを4倍にした話
optim
0
900
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
320
8年前のNode.jsを動かして分かった、npm installの裏側
keisukeikeda
0
120
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
2.4k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
130
JIS keyboard support in Omarchy
lef237
0
180
Performance Optimization With LLMs
xleitix
0
230
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
750
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
460
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
440
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
We Are The Robots
honzajavorek
0
420
Visualization
eitanlees
153
17k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
730
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
340
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
320
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