Book Image

Learning AngularJS for .NET Developers

By : Alex Pop
Book Image

Learning AngularJS for .NET Developers

By: Alex Pop

Overview of this book

<p>AngularJS is the most popular JavaScript MVC framework, and it embraces and extends HTML rather than abstracting it. The building of single-page applications is a web-designer-friendly process with the AngularJS expressive HTML vocabulary. It drastically reduces the amount of JavaScript required to control complex user interactions and enforces a modular approach to structuring your JavaScript code.</p> <p>This book covers all of the stages of building a single-page web application, starting with frontend components powered by AngularJS, continuing with web services that leverage ServiceStack, and putting it all together in an ASP.NET MVC application. You will learn a development process focused on rapid delivery and testability for all application layers.</p>
Table of Contents (13 chapters)
Learning AngularJS for .NET Developers
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Creating an AngularJS, ASP.NET MVC, ServiceStack Application

In the previous chapter, we learned how to build the first web services to support an AngularJS application. In this chapter, we will learn about the following topics:

  • How to integrate an AngularJS application with ASP.NET MVC and ServiceStack

  • ASP.NET MVC features that are relevant to AngularJS

  • When you need to combine ASP.NET MVC and AngularJS

  • How to set up routing with ASP.NET MVC

  • How to secure AngularJS applications

  • AngularJS and backend integration

  • Adding database persistence with ServiceStack

This chapter assumes that you are familiar with the fundamentals of ASP.NET MVC. The last topic of this chapter that deals with database persistence also assumes you have a knowledge of relational databases, .NET data access fundamentals, and Object-relational Mapping (ORM) concepts.

Examples from this chapter can also be found as source control repositories hosted online. Examples 1 to 11 can be found at https://github.com/popalexandruvasile...