SlideShare ist ein Scribd-Unternehmen logo
1 von 11
I M P A C TI M P A C T
SINGLE PAGE
APPLICATIONS
MED ANGULAR
1 1 . M A J 2 0 1 6
I M P A C T
OM MI G
• Filip Bruun Bech-Larsen
• Frontend Manager, IMPACT
• Passioneret omkring internettet
@filipbech
I M P A C T
HVAD ER EN SPA
• En web-applikation som passer på en webpage
med det formål at give en mere flydende bruger-
oplevelse, sammenlignelig med desktop +
mobile-apps. [wikipedia]
• I praksis i JS-router, som styrer visninger ud fra
url’er.
I M P A C T
HVORFOR?
• Bedre oplevelse
– Gennemført oplevelse
– Ingen ”hop”
– Animationer, spinners, etc.
– Preloade indhold
– Hurtigere side-skift (færre og mindre requests,
mindre JS-parsing)
I M P A C T
HVORDAN
• Simple (naiv)
– Alt up-front
• Avanceret (dynamisk)
– Alt dynamisk
I M P A C T
MED ANGULAR 1.X I DAG
• ui.router
• state()
I M P A C T
AND NOW FOR
SOME
LIVE-CODING…
I M P A C T
UDFORDRI NGERNE …
• Caching (invalidering)
• Memory-management
• Initial content (seo, indexering mm)
• Javascript afhængighed
• Onload (analytics, 3rd-party scripts)
• document.write
I M P A C T
SPØRGSMÅL???
I M P A C T
THANKS …
• @filipbech (slides, video mm)
• fbb@impact.dk
[DK] SPA med angular

Weitere ähnliche Inhalte

Mehr von Filip Bruun Bech-Larsen

Building a dynamic SPA website with Angular
Building a dynamic SPA website with AngularBuilding a dynamic SPA website with Angular
Building a dynamic SPA website with AngularFilip Bruun Bech-Larsen
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) futureFilip Bruun Bech-Larsen
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) futureFilip Bruun Bech-Larsen
 

Mehr von Filip Bruun Bech-Larsen (20)

Whats next in clientside templating
Whats next in clientside templatingWhats next in clientside templating
Whats next in clientside templating
 
Whats next in clientside templating
Whats next in clientside templatingWhats next in clientside templating
Whats next in clientside templating
 
Angular ❤️ CMS from #AngularUp
Angular ❤️ CMS from #AngularUpAngular ❤️ CMS from #AngularUp
Angular ❤️ CMS from #AngularUp
 
Whats next in templating
Whats next in templatingWhats next in templating
Whats next in templating
 
The future of templating and frameworks
The future of templating and frameworksThe future of templating and frameworks
The future of templating and frameworks
 
Whats next in templating
Whats next in templatingWhats next in templating
Whats next in templating
 
Future of the Web
Future of the WebFuture of the Web
Future of the Web
 
Diversity at impact
Diversity at impactDiversity at impact
Diversity at impact
 
Angular ❤️CMS
Angular ❤️CMSAngular ❤️CMS
Angular ❤️CMS
 
The Future of the web
The Future of the webThe Future of the web
The Future of the web
 
Building a dynamic SPA website with Angular
Building a dynamic SPA website with AngularBuilding a dynamic SPA website with Angular
Building a dynamic SPA website with Angular
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) future
 
Commerce and the browser in 2017
Commerce and the browser in 2017Commerce and the browser in 2017
Commerce and the browser in 2017
 
Frontend State of the union
Frontend State of the unionFrontend State of the union
Frontend State of the union
 
AngularJS best practices
AngularJS best practicesAngularJS best practices
AngularJS best practices
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) future
 
Dynamic content with Angular
Dynamic content with AngularDynamic content with Angular
Dynamic content with Angular
 
Observables - the why, what & how
Observables - the why, what & howObservables - the why, what & how
Observables - the why, what & how
 
Angular2 workshop
Angular2 workshopAngular2 workshop
Angular2 workshop
 
Progressive Web Apps og Payment Request
Progressive Web Apps og Payment RequestProgressive Web Apps og Payment Request
Progressive Web Apps og Payment Request
 

[DK] SPA med angular

  • 1. I M P A C TI M P A C T SINGLE PAGE APPLICATIONS MED ANGULAR 1 1 . M A J 2 0 1 6
  • 2. I M P A C T OM MI G • Filip Bruun Bech-Larsen • Frontend Manager, IMPACT • Passioneret omkring internettet @filipbech
  • 3. I M P A C T HVAD ER EN SPA • En web-applikation som passer på en webpage med det formål at give en mere flydende bruger- oplevelse, sammenlignelig med desktop + mobile-apps. [wikipedia] • I praksis i JS-router, som styrer visninger ud fra url’er.
  • 4. I M P A C T HVORFOR? • Bedre oplevelse – Gennemført oplevelse – Ingen ”hop” – Animationer, spinners, etc. – Preloade indhold – Hurtigere side-skift (færre og mindre requests, mindre JS-parsing)
  • 5. I M P A C T HVORDAN • Simple (naiv) – Alt up-front • Avanceret (dynamisk) – Alt dynamisk
  • 6. I M P A C T MED ANGULAR 1.X I DAG • ui.router • state()
  • 7. I M P A C T AND NOW FOR SOME LIVE-CODING…
  • 8. I M P A C T UDFORDRI NGERNE … • Caching (invalidering) • Memory-management • Initial content (seo, indexering mm) • Javascript afhængighed • Onload (analytics, 3rd-party scripts) • document.write
  • 9. I M P A C T SPØRGSMÅL???
  • 10. I M P A C T THANKS … • @filipbech (slides, video mm) • fbb@impact.dk

Hinweis der Redaktion

  1. Mellem slide mhp.