Getting Started with Knockout.js for .NET Developers by Akinshin Andrey
Author:Akinshin, Andrey [Akinshin, Andrey]
Language: eng
Format: azw3, epub
Publisher: Packt Publishing
Published: 2015-05-26T16:00:00+00:00
Let's discuss some of the updates in detail.
The initialization logic of the model is in the constructor of the controller.
The GetBooks and the GetName methods were removed because now we can bind to the corresponding data directly via the model, with the help of Knockout MVC.
The [HttpGet] Edit method turned into two methods: Edit and EditRedirect. The new Edit method just returns the Edit view for the target book by index. The EditRedirect method returns a special redirect object in the JSON format. The object contains two properties: redirect=true (which means that we want to perform a redirect on this action) and url (which contains the target URL). The [HttpPost] Edit method for the Edit view remains the same.
The Add and Remove methods now take an additional LibraryModel argument. The argument stores the entire model obtained from the client (because Knockout MVC sends the entire model on each such requests). In the bodies of these methods, we update the static Library property with the client version of the model (let's recall that the static Library property symbolizes the main data source; for example, it can be a database in the real application).
Download
Getting Started with Knockout.js for .NET Developers by Akinshin Andrey.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(15010)
The Mikado Method by Ola Ellnestam Daniel Brolund(12269)
Hello! Python by Anthony Briggs(12162)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(11535)
Dependency Injection in .NET by Mark Seemann(11320)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10529)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10135)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(9790)
Grails in Action by Glen Smith Peter Ledbrook(9463)
Hit Refresh by Satya Nadella(9039)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(9016)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9014)
The Kubernetes Operator Framework Book by Michael Dame(8473)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8428)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8298)
Robo-Advisor with Python by Aki Ranin(8248)
Practical Computer Architecture with Python and ARM by Alan Clements(8224)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8193)
Building Low Latency Applications with C++ by Sourav Ghosh(8098)