万本电子书0元读

万本电子书0元读

顶部广告

Learning Angular for .NET Developers电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Rajesh Gunasundaram

出  版  社:Packt Publishing

出版时间:2017-07-07

字       数:25.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 Type* ? 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 If you are a .NET developer who now wants to efficiently build single-page applications using the new features that Angular 4 has to offer, then this book is for you. Familiarity of HTML, CSS, and JavaScript is assumed to get the most from this book. 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 ? Use Gulp and Bower in Visual Studio to run tasks and manage JavaScript packages ? 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 In Detail 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.
目录展开

Title Page

Copyright

Learning Angular for .NET Developers

Credits

About the Author

About the Reviewers

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Getting Started with Angular

Introducing Angular

The birth of AngularJS

Why AngularJS?

Angular 2

The benefits of Angular 2

The development process in Angular 2

What is ECMAScript 6?

What is a transpiler?

What is TypeScript?

The development process in JavaScript

Development with a build-time transpiler

Development with a runtime transpiler

Transpiler options

What happened to Angular 3?

What's new in Angular ?

Why Angular for .NET developers?

Building a Hello World app with Angular

Setting up the development environment

Installing Visual Studio Code

Installing Node.js

Creating an Angular application

The architecture of Angular

Summary

Angular Building Blocks - Part 1

Modules (NgModules)

Components

The life cycle of a component

Decorators and metadata

Templates

Inline templates

Isolated templates

The local template variable

Binding

One-way binding

Interpolation binding

Property binding

Event binding

Two-way binding

Directives

Structural directives

Attribute directives

Dependency injection

Why dependency injection?

The role of injectors

Handling dependency injection in Angular

Summary

Angular Building Blocks - Part 2

Forms

Tools for forms

Types of Angular forms

Templete driven forms

Model-driven forms

Fundamental objects of model-driven forms

Pipes

Common pipes

Pipe with parameters

Chaining pipes

Currency pipes

Date pipes

Uppercase and lowercase pipes

JSON pipes

AppComponent

Routers

The core concept of Component Routers

Setting up a Component Router

Configuring routes

Router Outlet and Router Links

Services

Observables

Summary

Using TypeScript with Angular

What is TypeScript?

Basic types

Boolean

Number

String

Array

Enum

Any

Void

Interfaces

Optional properties

Function type interfaces

Array type interfaces

Class type interfaces

Extending interfaces

Hybrid type interface

Classes

Inheritance

Inheritance in TypeScript

Private/Public modifiers

Accessors

Static properties

Modules

Namespaces

Modules

Functions

Optional and default parameters

Rest parameters

Generics

Generic interfaces

Generic classes

Decorators

Class decorators

Method decorators

Accessor decorators

Property decorators

Parameter decorators

TypeScript and Angular

Summary

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

Configuring TypeScript compiler options

Adding an Angular component

Adding app module

Adding an Angular component

Adding a Todo class

Adding a TodoService class

Updating the AppComponent class

Updating the AppModule

Adding the AppComponent template

Summary

Creating ASP.NET Core Web API Services for Angular

RESTful Web Services

ASP.NET Web API Overview

Why the ASP.NET Web API is a great fit for Angular

Creating ASP.NET Web API services

Adding and configuring an MVC service to the ASP.NET project

Adding Web API Controller to an ASP.NET application

Adding models to an ASP.NET application

Adding DBContext to an ASP.NET application

Using DB Migration

Using Database Context in a Web API controller

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

Summary

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

Routing in ASP.NET MVC

Adding ASP.NET MVC HomeController

Routing for ASP.NET MVC

Moving the content from the default page to the ASP.NET MVC view

Routing in the ASP.NET Web API

Routing in Angular

Moving the Angular template to the ASP.NET MVC template

Summary

Testing Angular Applications

Introducing Jasmine

Testing Angular services

Testing Angular components

Writing Specs for AppComponent

Running the specs or tests of AppComponent

Unit testing a mock service

Summary

What s New in Angular and ASP.NET Core

What's new in Angular

Ahead-of-Time compilation

Update on templates

Introducing titlecase pipes

Simplified parameter passing in HTTP

Overriding templates in testing

Introducing the Meta service

New form validators

Introducing ParamMap in router

Introducing .NET Core 1.0

Cross-platform development with the .NET Execution Environment

The traditional .NET Framework

Mono Cross-platform .NET Framework

NuGet package manager

CoreFx and CoreCLR in .NET Core

Choosing a Framework

The Dotnet Execution Environment- DNX

Deployment options

Publishing with Visual Studio

Publishing with dotnet command-line interface

Deploying to IIS

Deploying to Microsoft Azure

Deploying to Linux and macOS

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部