Submit Search
Upload
Intro a Ember.js
•
0 likes
•
1,333 views
Julio Olivera
Follow
Intro a Ember.js Charla de Meetup.js Argentina, Julio 2014
Read less
Read more
Software
Report
Share
Report
Share
1 of 12
Download now
Download to read offline
Recommended
Stream variables
Stream variables
Kristian Pemba
BEHIN BETIKO
BEHIN BETIKO
bmeranalg
AED Postcardbook
AED Postcardbook
AfroEnergydance
Sept 09 - Morgan Engel - A Primer on Polyphasic Sleeping
Sept 09 - Morgan Engel - A Primer on Polyphasic Sleeping
Noisebridge 5 Minutes of Fame
Betagroup 12 - Board of Innovation
Betagroup 12 - Board of Innovation
Board of Innovation
Nomethoderror talk
Nomethoderror talk
Jan Berdajs
Selfmanagement & Getting Things Done (GTD)
Selfmanagement & Getting Things Done (GTD)
Martijn C
Osborne Engineering Condition Monitoring
Osborne Engineering Condition Monitoring
Nitheesh Abdul Rahman
Recommended
Stream variables
Stream variables
Kristian Pemba
BEHIN BETIKO
BEHIN BETIKO
bmeranalg
AED Postcardbook
AED Postcardbook
AfroEnergydance
Sept 09 - Morgan Engel - A Primer on Polyphasic Sleeping
Sept 09 - Morgan Engel - A Primer on Polyphasic Sleeping
Noisebridge 5 Minutes of Fame
Betagroup 12 - Board of Innovation
Betagroup 12 - Board of Innovation
Board of Innovation
Nomethoderror talk
Nomethoderror talk
Jan Berdajs
Selfmanagement & Getting Things Done (GTD)
Selfmanagement & Getting Things Done (GTD)
Martijn C
Osborne Engineering Condition Monitoring
Osborne Engineering Condition Monitoring
Nitheesh Abdul Rahman
Tattleshall Ln 10902 2pg
Tattleshall Ln 10902 2pg
jamoise
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Fundación Ciudadano Inteligente
Pets muzzlebook
Pets muzzlebook
Stepan_m
Jaquire King and Dangerous Music
Jaquire King and Dangerous Music
DangerousMusic
MPI_PQ_2015_ISSUE5
MPI_PQ_2015_ISSUE5
Nurul Ade Suryanie
Ecmascript 6
Ecmascript 6
Gatuk S. Chattanon
Squence Annotation
Squence Annotation
Luke Finlay
If songs were lines in a conversation. Nick Drake
If songs were lines in a conversation. Nick Drake
Pseudoplastik
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
King's College London
Regalos 2012
Regalos 2012
Regalos Vip
Ig1 task 2 analysis work sheet sonic adveture battle 2
Ig1 task 2 analysis work sheet sonic adveture battle 2
Jordanianmc
Ve, a linguistic framework.
Ve, a linguistic framework.
tapster
Power of Local August Webinar: Papua New Guinea Flying Labs
Power of Local August Webinar: Papua New Guinea Flying Labs
WeRobotics
1.9 liz turner
1.9 liz turner
Martijn Kriens
Introduction - Builders at Play
Introduction - Builders at Play
Smart in Public
Shoudio Music Hackday Boston 2011
Shoudio Music Hackday Boston 2011
Roeland P Landegent
Public international-law-notesp
Public international-law-notesp
Amita Pradhan
15 champs de vecteurs sur r3
15 champs de vecteurs sur r3
Achraf Ourti
Importance of ipad stands that seem trivial
Importance of ipad stands that seem trivial
Sonia Singh
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Jittipong Loespradit
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
Presentation.STUDIO
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
More Related Content
What's hot
Tattleshall Ln 10902 2pg
Tattleshall Ln 10902 2pg
jamoise
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Fundación Ciudadano Inteligente
Pets muzzlebook
Pets muzzlebook
Stepan_m
Jaquire King and Dangerous Music
Jaquire King and Dangerous Music
DangerousMusic
MPI_PQ_2015_ISSUE5
MPI_PQ_2015_ISSUE5
Nurul Ade Suryanie
Ecmascript 6
Ecmascript 6
Gatuk S. Chattanon
Squence Annotation
Squence Annotation
Luke Finlay
If songs were lines in a conversation. Nick Drake
If songs were lines in a conversation. Nick Drake
Pseudoplastik
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
King's College London
Regalos 2012
Regalos 2012
Regalos Vip
Ig1 task 2 analysis work sheet sonic adveture battle 2
Ig1 task 2 analysis work sheet sonic adveture battle 2
Jordanianmc
Ve, a linguistic framework.
Ve, a linguistic framework.
tapster
Power of Local August Webinar: Papua New Guinea Flying Labs
Power of Local August Webinar: Papua New Guinea Flying Labs
WeRobotics
1.9 liz turner
1.9 liz turner
Martijn Kriens
Introduction - Builders at Play
Introduction - Builders at Play
Smart in Public
Shoudio Music Hackday Boston 2011
Shoudio Music Hackday Boston 2011
Roeland P Landegent
Public international-law-notesp
Public international-law-notesp
Amita Pradhan
15 champs de vecteurs sur r3
15 champs de vecteurs sur r3
Achraf Ourti
Importance of ipad stands that seem trivial
Importance of ipad stands that seem trivial
Sonia Singh
What's hot
(19)
Tattleshall Ln 10902 2pg
Tattleshall Ln 10902 2pg
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Avellaneda como incorporar redes_sociales_a_los_sitios_we
Pets muzzlebook
Pets muzzlebook
Jaquire King and Dangerous Music
Jaquire King and Dangerous Music
MPI_PQ_2015_ISSUE5
MPI_PQ_2015_ISSUE5
Ecmascript 6
Ecmascript 6
Squence Annotation
Squence Annotation
If songs were lines in a conversation. Nick Drake
If songs were lines in a conversation. Nick Drake
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
HOW TO TEACH SCIENCE IN 1-TO-1 PRIMARY SCHOOLS.
Regalos 2012
Regalos 2012
Ig1 task 2 analysis work sheet sonic adveture battle 2
Ig1 task 2 analysis work sheet sonic adveture battle 2
Ve, a linguistic framework.
Ve, a linguistic framework.
Power of Local August Webinar: Papua New Guinea Flying Labs
Power of Local August Webinar: Papua New Guinea Flying Labs
1.9 liz turner
1.9 liz turner
Introduction - Builders at Play
Introduction - Builders at Play
Shoudio Music Hackday Boston 2011
Shoudio Music Hackday Boston 2011
Public international-law-notesp
Public international-law-notesp
15 champs de vecteurs sur r3
15 champs de vecteurs sur r3
Importance of ipad stands that seem trivial
Importance of ipad stands that seem trivial
Recently uploaded
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Jittipong Loespradit
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
Presentation.STUDIO
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
WSO2
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
masabamasaba
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
masabamasaba
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
Shane Coughlan
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
masabamasaba
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
Recently uploaded
(20)
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
Intro a Ember.js
1.
Intro a Ember.js Julio
Olivera - @_joliv
2.
/#/routing window.MusicPlayer = Ember.Application.create();! ! MusicPlayer.Router.map(function()
{! this.resource('song', { path: '/song/:song_id'});! });! ! MusicPlayer.SongRoute = Ember.Route.extend({});! ! MusicPlayer.SongController = Ember.ObjectController.extend({});! ! <script type="text/x-handlebars" data-template-name="song">! {{outlet}}! </script> /#/song/1 /#/song/1?startAt=120 😡
3.
/#/routes MusicPlayer.SongRoute = Ember.Route.extend({! model:
function() {! return { name: 'Spiritual Groove', artist: 'Antoine Dufour' };! }! });! ! MusicPlayer.ArtistRoute = Ember.Route.extend({! model: function() {! return new Ember.RSVP.Promise(function(resolve, reject) {! doSomethingAsync(resolve);! });! }! });!
4.
/#/controllers MusicPlayer.SongController = Ember.ObjectController.extend({! actions:
{! saveComment: function(arguments) {! /* ... */! }! }! });! MusicPlayer.CommentsController = Ember.ArrayController.extend({! sortProperties: ['createdAt'],! sortAscending: false! });!
5.
/#/objects MusicPlayer.Song = Ember.Object.extend({! length:
0,! duration: function() {! var length = this.get('length'),! seconds = length % 60,! minutes = Math.floor(length / 60),! duration = '';! ! if (seconds < 10) {! seconds = '0' + seconds;! }! ! return duration + minutes + ':' + seconds;! }.property('length')! });! ! var song = MusicPlayer.Song.create();! song.get('duration'); // '0:00'! song.set('length', 119);! song.get('duration'); // '1:59'!
6.
/#/templates <script type="text/x-handlebars" data-template-name="song">! <div>! <h2>{{name}}</h2>! <h3>{{#link-to
'artist' artist}}{{artist.name}}{{/link-to}}</h3>! ! <div class="song-player--cover">! {{cover-art mbid=mbid}}! </div>! ! <audio controls {{bind-attr src=path}}></audio>! </div>! </script>!
7.
/#/components <script type="text/x-handlebars" data-template-name="components/cover-art">! <img
{{bind-attr src=coverArtPath}}/>! </script>! MusicPlayer.CoverArtComponent = Ember.Component.extend({! coverArtPath: function() {! return 'http://coverartarchive.org/release/' +! this.get('mbid') +! '/front-500';! }.property('mbid')! });!
8.
/#/ember-data MusicPlayer.Song = DS.Model.extend({! name:
DS.attr('string'),! artist: DS.belongsTo('artist'),! path: DS.attr('string'),! mbid: DS.attr('string'),! comments: DS.hasMany('comment', { async: true })! });! MusicPlayer.Artist = DS.Model.extend({! name: DS.attr('string'),! songs: DS.hasMany('song', { async: true })! });!
9.
/#/bonus/ember-inspector
10.
/#/bonus/embedded-ember window.MusicPlayer = Ember.Application.create({! rootElement:
'#music-player-app'! });! ! MusicPlayer.Router = Ember.Router.extend({! location: 'none'! });!
11.
/#/pending • Views • Testing •
Mixins
12.
¡Gracias! ¿Preguntas?
Download now