Your SlideShare is downloading. ×
0
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
Knockout js with mvc
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

Knockout js with mvc

1,039

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,039
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
31
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. KnockoutJS withASP.NET MVCJOEL COCHRAN
  • 2. About Me Expression Blend MVP ASPInsider Manager Consultant, Sogeti joelcochran@gmail.com @joelcochran joelcochran.com
  • 3. Windows 8 apps with HTML5 andJavaScript manning.com/shultz/ 37% off! Use promo code: win8app37
  • 4. http://madexpo.us
  • 5. KnockoutJS: MVVM for the web Separation of concerns Data binding Uses modern HTML5 Pure JavaScript
  • 6. Scripts we’ll use jQuery – jQuery.com Knockout – knockoutjs.com Knockout mapping All available through Nuget
  • 7. Traditional ASP.NET MVC Pros Strongly Typed Razor syntax (familiar) Intellisense Start with Templates Cons Embedded JavaScript Poor Intellisense No separation
  • 8. Stop! Demo time
  • 9. Knockout Mapping Fast and (almost) painless Allows for separation BUT Ties Knockout ViewModel to ASP.NET ViewModel
  • 10. Stop! Demo time
  • 11. AJAX Calls within Controller Flexible Responsive Performant Can be done right in the Controller Good and bad: Can clutter up your Controller
  • 12. Stop! Demo time
  • 13. AJAX calls outside the Controller Service calls True separation Can be used in many applications/formats ASP.NET MVC 4 has this built in with WebApi Fits very well with the KO approach
  • 14. Stop! Demo time
  • 15. Thanks joelcochran@gmail.com @joelcochran joelcochran.com

×