O'Reilly logo

Mastering AngularJS for .NET Developers by Mohammad Wadood Majid, Golrokh Mirzaei

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Using AngularJS and ASP.NET Web API for CRUD Operations

This chapter will start with web API routing and then focus on how to create, read, update, and delete records from a database using the ASP.NET Web API, as well as the AngularJS $http and $resource directives. We will also discuss the difference between $http and $resource. At the end of this chapter, we will talk about how to secure the ASP.NET Web API. This chapter covers the following topics:

  • Web API routing:
    • Routing with an action name
    • The ASP.NET Web API attribute routing
  • CRUD operation using $http:
    • Using $http with AngularJS factory
  • CRUD operations using $resource
  • Differentiating between $http and $resource
  • Securing the ASP.NET Web API

Web API routing

Hypertext Transfer Protocol ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required