官术网_书友最值得收藏!

What this book covers

Chapter 1, Building Your First Angular App, covers the setup of the development environment by installing Angular CLI 10 and explains how to use schematics (commands) to automate tasks such as code generation and application building. We create a new simple application using the Angular CLI 10 and build it. We also learn about how Angular tooling has been improved in some of the most widely known IDEs and emphasize the importance of Visual Studio Code.

Chapter 2, Introduction to TypeScript, explains what TypeScript is, the language that is used when creating Angular applications, and what the most basic building blocks are, such as types, template strings, lambdas, and classes. We learn to use the decorators that are widely used in Angular classes and ES6 modules and take a look at some of the advanced types available and the latest features of the language.

Chapter 3, Component Interaction and Inter-Communication, covers how a component is connected to its template and how we can use an Angular decorator to configure it. We take a look at how components communicate each other by passing data from one component to another using input and output bindings and learn about the different strategies to detect changes in a component. We will then see, what are some of the available ways to apply styles to a component. Finally, we investigate the hook events that are available in the life cycle of a component.

Chapter 4, Enhance Components with Pipes and Directives, covers the available built-in directives and pipes, and we build our own custom pipes and leverage them to a sample component that demonstrates their use. We learn the difference between attribute and structural directives.

Chapter 5, Structure an Angular App, explains how an Angular 10 application is organized into a tree of components, and how to group components into modules and use the dependency injection mechanism to create and use services in components. We find out about the different types of modules and their purpose as well as the different scopes for services.

Chapter 6, Enrich Components with Asynchronous Data Services, examines the RxJS library and observables that are fundamental to the HTTP client of Angular. We learn how to access a remote backend API, get some data and display it to the component, and how to overcome the problem of not having the actual backend API ready yet (how to design our application without a real API). We also investigate how to set additional headers to an HTTP request and intercept such a request to act before sending the request or upon completion.

Chapter 7, Navigate through Components with Routing, explains how to use the Angular router in order to activate different parts of an Angular 10 application from a URL. We find out how to pass parameters through the URL and what are the available events of the router that we can hook. We learn to break an application into routing modules that can be lazy loaded. We then learn how to guard against our components and how to prepare data prior to initialization of the component.

Chapter 8, Orchestrating Validation Experiences in Forms, explains how to use Angular reactive forms in order to integrate HTML forms and how to set them up using FormGroup and FormControl. We track the interaction of the user in the form and validate input fields, and then create a simple login form to illustrate the use of forms.

Chapter 9, Introduction to Angular Material, covers how to integrate Google Material Design guidelines in an Angular 10 application using a library called Angular Material that has been developed by the Angular team. We take a look at some of the core components of the library and their usage and discuss the available themes that are bundled with the library and how to install them.

Chapter 10, Give Motion to Components with Animations, explains how animation works with pure vanilla CSS and how to animate components of an Angular 10 application using the built-in AnimationBuilder or a custom directive.

Chapter 11, Unit Test an Angular App, covers how to test Angular 10 artifacts and override them in a test, what the different parts of a test are, and which parts of a component should be tested.

Chapter 12, Bringing an Angular App to Production, sets out the available hosting providers that are supported by the Angular CLI. We perform optimizations prior to deployment, and we use Angular CLI 10 to deploy to GitHub pages.

Chapter 13, Develop a Real-World Angular App, puts into practice many aspects of what we have learned in the previous chapters to create a full-blown, real-world Angular 10 application.

主站蜘蛛池模板: 达孜县| 西充县| 上林县| 衡水市| 宁陕县| 兰州市| 广昌县| 昌黎县| 嘉禾县| 广平县| 孝昌县| 平陆县| 大新县| 广灵县| 威海市| 普兰县| 富锦市| 磐石市| 衡南县| 柳林县| 商水县| 灵台县| 苏尼特左旗| 岚皋县| 禄劝| 东阳市| 漳州市| 永泰县| 浦城县| 广饶县| 崇仁县| 太和县| 永昌县| 兴隆县| 伊金霍洛旗| 阳信县| 龙口市| 洪洞县| 吉隆县| 沅江市| 鄂伦春自治旗|