In this article we will see how to use Angular.js in a LightSwitch application.
IntroductionIn this article we will see how to use Angular.js in a LightSwitch application. Please check the previous article on LightSwitch by visiting the following links.Using Angular.js in Visual Studio LightSwitch Part 1 Now let's continue with further steps. Step 1: Add a Global Application class and add the following implementation.Right-click on the server project and select Add then New Item.
You may get the build failed if the packages are and the updates not installed correctly. Usually you may get system.web.optimization not found error.To get rid of it install the following package via Package Manager Console and rebuild the application.PM> Install-Package Microsoft.Web.Optimization -Version 1.0.0-beta2 -Pre Step 2: Now let's create a page called Home (and an associated controller) so that we have a page to load our Angular grid.
Step 4: Create a folder named Views and a folder named Home under it.
Step 5: Add a file called Web.config under the Views folder.
Run (using F5) the application; we will see the following error since we didn't have a Lightswitch page.
Pro WPF: Windows Presentation Foundation in .NET 3.0