Book Image

ASP.NET Core Essentials

By : Shahed Chowdhuri
Book Image

ASP.NET Core Essentials

By: Shahed Chowdhuri

Overview of this book

<p>ASP.NET Core is the latest collection of Microsoft’s web application development technologies. When you’re trying to reach a broad spectrum of users with a robust web application, ASP.NET Core is there to help you build that application. With the ability to cater to users on desktop, tablet, or smartphone platforms, you can put together a solution that works well anywhere.</p> <p>This book is what you need to get started developing ASP.NET Core applications was quickly as possible; starting by introducing the software and how it can be used in today’s modern world of web applications and smartphone apps. Walking you through the benefits of a Web API to support both applications and mobile apps to give you a solid understanding of the tech to build upon as you see what ASP.NET Core can do for you.</p> <p>The book wraps up with practical guidelines for the use of database technologies, unit tests, security best practices, and cloud deployments for the real world.</p>
Table of Contents (15 chapters)
ASP.NET Core Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Model-View-ViewModel (MVVM) with KnockoutJS


The official ASP.NET documentation mentions KnockoutJS as an option for building a Model-View-ViewModel (MVVM) web application; refer to http://docs.asp.net/en/latest/client-side/knockout.html .

Getting started with KnockoutJS

KnockoutJS is a popular JavaScript framework that you can use by itself, or with jQuery, and other JavaScript libraries. It uses the MVVM pattern on the client side and facilitates data binding between HTML elements and JavaScript variables.

Similar to AngularJS, the easiest way to set up KnockoutJS to your web application in Visual Studio 2015 is to update your bower.json file in a new web application. Once again, launch Visual Studio 2015, click on File | New | Project, and then create a new Web Application using the new ASP.NET Template (not the empty one).

Just like previously, this should automatically create a bower.json configuration file that you can edit. Add an entry for "knockout" under "dependencies". You may use...