1. spangulumbraco
Single Page Applications with Angular and Umbraco
Rene Pjengaard
Tech Lead at Skybrud.dk
@pjengaard
Filip Bruun Bech-Larsen
Frontend Manager at IMPACT
@filipbech
2. So what is a SPA
anyway
• Web-app that handles routing between states based
on urls
3. Why would anybody want
that?
• User experience
• Animating page-transitions
• Performance
• Preloading
• Less parsing
• Only send diffs
• Caching
4. How is it done
• Simple
• Everything up front
• Advanced
• Everything is dynamic
19. Grid as data
• Skybrud.Umbraco.GridData by @abjerner
• Create SpaGridJsonConverter
• Create GridValueConverter for each grid datatype
• Register SpaGridJsonConverter in
IApplicationStartup
• Decorate your grid-property on your models
25. What are the gotchas
• Initial content => SEO / indexing
• Cache-invalidation
• Memory management in JS
• JS dependency
• document.write
• no on-load. Manually handle analytics