SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
Ember.js
why should you spend your time on it?

Opak Alex	

https://github.com/OpakAlex
Roundscope	

2 MVC	

JS MVC	

Live Demo	

Real project	

Ember-Admin
Roundscope

http://roundscope.com
1 MVC
Rails
Play
Dynamo
Grails
Spring
….
$(function() {
………….
});

OR

2 MVC
$()
var relX,
docw,

isMouseDown,

arrow = $('.selector .arrow'),

daily = $('.selector-container .daily'),

weekly = $('.selector-container .weekly'),

monthly = $('.selector-container .monthly'),

weeklyLabels = $('.bottom-labels .weekly span'),

!

monthlyLabels = $('.bottom-labels .monthly span');

$(arrow).on('mousedown', function(e){
var srcX = $(this).offset().left;
docw = $('body').width();

relX = e.pageX - srcX + 345;
isMouseDown = true;

});

!

$(document).on('mousemove',function(e){
if(isMouseDown) {

var maxX = $('.selector').width() - 25;
var mouseX = e.pageX;

var diffX = mouseX - relX;
if(diffX < 0) diffX = 0;

!
!
}});

if(diffX > maxX) diffX = maxX;
$(arrow).css('left', (diffX)+'px').text('');
$('.bottom-labels span').removeClass('active');
Result:
Never use jQuery()

Never use $()
Ember-Couchdb-kit

Ember.js + Couchdb

http://goo.gl/nyKn7D
Mapidy
http://staging.mapidy.com
Ember-Admin
https://github.com/ember-admin/ember-admin.js

Más contenido relacionado

Destacado (15)

4 ltr powerpoint2010_ch20_pr1a_jennthomas_2
4 ltr powerpoint2010_ch20_pr1a_jennthomas_24 ltr powerpoint2010_ch20_pr1a_jennthomas_2
4 ltr powerpoint2010_ch20_pr1a_jennthomas_2
 
Nuestras redes sociales
Nuestras redes socialesNuestras redes sociales
Nuestras redes sociales
 
Doc1
Doc1Doc1
Doc1
 
Albert Castellón
Albert CastellónAlbert Castellón
Albert Castellón
 
Small Cells for Capacity - Mobile Experts Infographic
Small Cells for Capacity - Mobile Experts InfographicSmall Cells for Capacity - Mobile Experts Infographic
Small Cells for Capacity - Mobile Experts Infographic
 
Recovered file 1
Recovered file 1Recovered file 1
Recovered file 1
 
Zapata
ZapataZapata
Zapata
 
Presentación1
Presentación1Presentación1
Presentación1
 
Red de aprendizaje personal
Red de aprendizaje personalRed de aprendizaje personal
Red de aprendizaje personal
 
Virus y vacunas informaticas taller informatica ultimo
Virus y vacunas informaticas taller informatica ultimoVirus y vacunas informaticas taller informatica ultimo
Virus y vacunas informaticas taller informatica ultimo
 
Make money stuffing copypasteads.com
Make money stuffing copypasteads.comMake money stuffing copypasteads.com
Make money stuffing copypasteads.com
 
Equipment
EquipmentEquipment
Equipment
 
Union P-N
Union P-NUnion P-N
Union P-N
 
Profesión taxista (riesgos de higiene industrial
Profesión taxista (riesgos de higiene industrialProfesión taxista (riesgos de higiene industrial
Profesión taxista (riesgos de higiene industrial
 
Basta de Historias
Basta de HistoriasBasta de Historias
Basta de Historias
 

Más de Sphere Consulting Inc (9)

Anton Vasiljev: Continuations in Ruby.
Anton Vasiljev: Continuations in Ruby.Anton Vasiljev: Continuations in Ruby.
Anton Vasiljev: Continuations in Ruby.
 
Anton Shemerey: Refactoring and SOLID principles in Ruby.
Anton Shemerey: Refactoring and SOLID principles in Ruby.Anton Shemerey: Refactoring and SOLID principles in Ruby.
Anton Shemerey: Refactoring and SOLID principles in Ruby.
 
Roman Gorel: Building better APIs on Rails.
Roman Gorel: Building better APIs on Rails.Roman Gorel: Building better APIs on Rails.
Roman Gorel: Building better APIs on Rails.
 
Valeriy Prokopchuk: Validators in Migrations.
Valeriy Prokopchuk: Validators in Migrations.Valeriy Prokopchuk: Validators in Migrations.
Valeriy Prokopchuk: Validators in Migrations.
 
Roman Kuznietsov: Zeromq: sockets on steroids.Zero mq
Roman Kuznietsov: Zeromq: sockets on steroids.Zero mqRoman Kuznietsov: Zeromq: sockets on steroids.Zero mq
Roman Kuznietsov: Zeromq: sockets on steroids.Zero mq
 
OpenSource Project. Where to Start? Dmitriy Zaporozhets
OpenSource Project. Where to Start? Dmitriy ZaporozhetsOpenSource Project. Where to Start? Dmitriy Zaporozhets
OpenSource Project. Where to Start? Dmitriy Zaporozhets
 
Debugging on Rails. Mykhaylo Sorochan
Debugging on Rails. Mykhaylo SorochanDebugging on Rails. Mykhaylo Sorochan
Debugging on Rails. Mykhaylo Sorochan
 
FormObject For Building Complex Forms. Dmytro Pilugin
FormObject For Building Complex Forms. Dmytro PiluginFormObject For Building Complex Forms. Dmytro Pilugin
FormObject For Building Complex Forms. Dmytro Pilugin
 
Asynchronous Applications in Ruby. Roman Gorel
Asynchronous Applications in Ruby. Roman GorelAsynchronous Applications in Ruby. Roman Gorel
Asynchronous Applications in Ruby. Roman Gorel
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Ember.js – Why Should You Spend Your Time On It? Alex Opak