Monday, 7 September 2015

Setting up a Visual Studio Project for use with Knockout

1. Open up Microsoft Visual Studio (this example was prepared on MS Visual Studio 2015)
2. Create a New Project
3. Choose ASP.Net Web Application from Installed templates
4. Choose Empty from Select a Template window
5. The Solution Explorer will look as follows:


6. Add KnockoutJS with NuGet package manager


7. Your solution will now look as follow:


8. Create a new Index.html page
9. Add the references to the knockout libraries in the <head> tag
10. See the code below:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/knockout-3.3.0.js"></script>
</head>
<body>


</body>
</html>

11. With above document, you are ready to do some exercises with KnockoutJS!

No comments:

Post a Comment