Live Chat
Monday - Friday 8am - 6pm EST Chat Now
Contact Us
Monday - Friday 8am - 8pm EST 1-800-268-7737 Other Contact Options

Cart () Loading...

    • Quantity:
    • Delivery:
    • Dates:
    • Location:


AngularJS and ASP.NET 5 MVC 6

Learn how to integrate AngularJS with ASP.NET MVC Web API using Microsoft's Visual Studio.

GK# 7282

Course Overview


In this course, you'll learn how to integrate AngularJS with ASP.NET MVC Web API using Microsoft's Visual Studio. You'll begin by using the required application template and packages, and building the required JavaScript files with Grunt. You'll configure the model and controller for the Web API. You'll then go on to generate the AngularJS front end – creating a module, controller, service, and template. You configure client routing, controller and resources, the main layout, and virtual pages for CRUD operations. You will also configure the app to use Entity Framework. Finally, you'll configure validation and security using ASP.NET Identity.


  • Delivery Format:
  • Date:
  • Location:
  • Access Period:


What You'll Learn

  • AngularJS and ASP.NET 5 MVC 6: Creating an SPA
  • AngularJS and ASP.NET 5 MVC 6: Data Persistence, Validation, and Security


Viewing outline for:

On-Demand Outline

AngularJS and ASP.NET 5 MVC 6: Creating an SPA

  • Describe ASP.NET 5 and AngularJS and describe how AngularJS can be integrated with the ASP.NET MVC 6 Web API
  • Create an empty ASP.NET project and describe its elements
  • Use NPM to add Grunt and Grunt plugins
  • Use and run Grunt plugins uglify and watch to build required JavaScript files
  • Modify project.json and Startup.cs to enable MVC for an ASP.NET application
  • Create a model class to pass items from the Web API to AngularJS
  • Create a Web API controller
  • Download and install the files needed to create an AngularJS app in VS215
  • Add an AngularJS app module to the ASP.NET project
  • Add an AngularJS controller to the ASP.NET project
  • Add an AngularJS service to the ASP.NET project
  • Add an AngularJS HTML template to the ASP.NET project
  • Set up client-side routes for the AngularJS app
  • Configure IIS to redirect requests to home to avoid 44 errors when Reload is hit
  • Create client controllers for each route
  • Configure the index.html page of the application
  • Configure partial view templates for creating and retrieving server side resources
  • Configure partial view templates for editing and removing server side resources
  • Creating an app with AngularJS and MVC 6 Web API

AngularJS and ASP.NET 5 MVC 6: Data Persistence, Validation, and Security

  • Add the Entity Framework (EF) 7 NuGet packages to the project
  • Create an Entity Framework DbContext class
  • Register the EF DbContext with the application services
  • Configure the database connection string in the Config.json file
  • Avail of dependency injection to enable the Web API controller to use the DbContext class
  • Use the command prompt or NuGet Package Manager Console to perform database migrations
  • Use built-in features of AngularJS to configure client-side form validation
  • Update an ASP.NET model to use validation attributes
  • Update the Web API controller on the server to check for a valid model state and display validation messages
  • Update the client controllers to show validation messages coming from the server
  • Store app data persistently as well as validate data on client and server side
  • Enable ASP.NET Identity by adding required packages and updating ConfigureServices() method in startup file to register services with the Dependency Injection framework
  • Modify the DbContext class to inherit from IdentityDbContext to use ASP.NET Identity
  • Modify the startup file to create the database, sample data, and add users at startup
  • Modify the application to serve the Angular index files as a MVC view
  • Force user login by using the Authorize attribute on the Home controller
  • Pass claims data for users from ASP.NET to AngularJS
  • Modify the application to add functionality for authenticated users to log out
  • Modify the application to restrict access to web API endpoints based on authentication and claims
  • Configure use of EF7 and add validation and security to an app using AngularJS and MVC6 Web API

Who Should Attend


Developers familiar with AngularJS, C#, and Visual Studio who want to use AngularJS and ASP.NET's MVC 6 Web API to create SPAs.

Course Delivery

This course is available in the following formats:


Train at your own pace with 24/7 access to courses that help you acquire must-have technology skills.

Request this course in a different delivery format.