Your SlideShare is downloading. ×
Single page applications mit asp.net mvc und der asp.net web api
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Single page applications mit asp.net mvc und der asp.net web api

1,383
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,383
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Single Page Applications mit ASP.NETMVC und der ASP.NET Web API Alexander Zeitler PDMLab http://pdmlab.comddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 2. Single Page Applications• „Rich Client“ im Browser• Responsive• Best of both worlds• HTML 5 / JavaScriptddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 3. DEMODEMO: Single Page Application in Aktionddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 4. Single Page Applications• Angenehme User Experience• Auf allen Geräten verfügbar• Offline arbeiten möglich• via App Stores deployableddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 5. SPA: Schema Server UI Client HTML/CSS Application Navigation JavaScript UI Data access Local Storage HTML/CSS/JS JavaScript Data JSON/XMLddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 6. SPA: Schema Server UI Client HTML/CSS Application Navigation JavaScript UI Data access Local Storage HTML/CSS/JS JavaScript Data JSON/XMLddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 7. DEMODEMO: SPA Entwicklungddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 8. KnockoutJSvar Viewmodel = function() { this.title = ko.observable(‚Single Page Applications‘); this.tags = ko.observableArray([‚webapi‘, ‚knockoutjs‘, ‚spa‘]);}ko.applyBindings(new Viewmodel())<h1 data-bind=„text: title“></h1><ul data-bind=„foreach: tags“> <li data-bind=„text: $data“></ul> ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 9. HTML5 LocalStoragelocalStorage.setItem("key", “value");localStorage.getItem("key");localStorage.removeItem("key");localStorage.clear();navigator.onLine ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 10. AMPLIFYJSamplify.store(„key“,“value“);amplify.store(„key“);LocalStorageSessionStorageGlobalStorage (FF2)UserData (IE)memory ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 11. HTML5 CacheManifest<html manifest=“myapp.appcache"> ...</html>text/cache-manifestCACHE MANIFESTCACHE:NETWORK:FALLBACK: ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 12. http://www.flickr.com/photos/crystaljingsr/391472934 3/ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 13. http://www.flickr.com/photos/nateone/3768979925ddc_conference | #ddc12 www.dotnet-developer-conference.de
  • 14. Alexander Zeitler PDMLab alexander.zeitler@pdmlab.com http://blog.alexonasp.net @AlexZeitlerddc_conference | #ddc12 www.dotnet-developer-conference.de