Build efficient web apps and deliver great results by integrating Angular and the .NET framework
About This Book
- Become a more productive developer and learn to use frameworks that implement good development practices
- Achieve advanced autocompletion, navigation, and refactoring in Angular using Typescript
- Follow a gradual introduction to the concepts with a lot of examples and explore the evolution of a production-ready application
Who This Book Is For
What You Will Learn
- Create a standalone Angular application to prototype user interfaces
- Validate complex forms with Angular version 4 and use Bootstrap to style them
- Build RESTful web services that work well with single-page applications
- Implement automatic validation for web service requests to reduce your boilerplate code
- Use web services with Angular version 4 to offload and secure your application logic
- Test your Angular version 4 and web service code to improve the quality of your software deliverables
Are you are looking for a better, more efficient, and more powerful way of building front-end web applications? Well, look no further, you have come to the right place!
This book comprehensively integrates Angular version 4 into your tool belt, then runs you through all the new options you now have on hand for your web apps without bogging you down. The frameworks, tools, and libraries mentioned here will make your work productive and minimize the friction usually associated with building server-side web applications.
Starting off with building blocks of Angular version 4, we gradually move into integrating TypeScript and ES6. You will get confident in building single page applications and using Angular for prototyping components. You will then move on to building web services and full-stack web application using ASP.NET WebAPI. Finally, you will learn the development process focused on rapid delivery and testability for all application layers.
Style and approach
This book covers everything there is to know about getting well-acquainted with Angular 4 and .NET without bogging you down. Everything is neatly laid out under clear headings for quick consultation, offering you the information required to understand a concept immediately, with short, relevant examples of each feature.
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.
Table of Contents
Getting Started with Angular
- The birth of AngularJS
- Why AngularJS?
- Angular 2
- The benefits of Angular 2
- The development process in Angular 2
- What happened to Angular 3?
- What's new in Angular ?
- Why Angular for .NET developers?
- Building a Hello World app with Angular
- The architecture of Angular
- Introducing Angular
Angular Building Blocks - Part 1
- Modules (NgModules)
- Decorators and metadata
- Dependency injection
Angular Building Blocks - Part 2
Using TypeScript with Angular
- What is TypeScript?
- Basic types
- TypeScript and Angular
Creating an Angular Single-Page Application in Visual Studio
- Creating an ASP.NET core web application
- Adding client-side packages using NPM package manager
- Using Gulp to run tasks
- Adding Angular components and templates
Creating ASP.NET Core Web API Services for Angular
- RESTful Web Services
- ASP.NET Web API Overview
- Creating ASP.NET Web API services
- Using DB Migration
Integrating ASP.NET Core Web API with Angular application
- Updating a model in an Angular app
- Preparing Angular application
- Consuming Web API GET Action in TodoService
- Posting to the Web API from TodoService
- Calling the PUT action of the Web API to update a Todo item
- Calling the DELETE action of the Web API to delete a Todo item
- Updating the wrapper functions in TodoService
- Updating AppComponent
- Updating the AppComponent template
- Updating the index page
- Running the application
Creating an Application Using Angular, ASP.NET MVC, and Web API in Visual Studio
- Using ASP.NET MVC
- Combining routing for ASP.NET MVC, the ASP.NET Web API, and Angular
- Testing Angular Applications
What s New in Angular and ASP.NET Core
- What's new in Angular
- Introducing the Meta service
- Introducing .NET Core 1.0
- Cross-platform development with the .NET Execution Environment
- Deployment options
- Title: Learning Angular for .NET Developers
- Release date: June 2017
- Publisher(s): Packt Publishing
- ISBN: 9781785884283