更新时间:2021-07-23 17:24:11
封面
Title Page
Copyright and Credits
Mastering Angular Components Second Edition
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Component-Based User Interfaces
Thinking in components
Components – the organs of user interfaces
Encapsulation
Composability
Components invented by nature
My UI framework wishlist
Time for new standards
Template elements
Shadow DOM
Angular's component architecture
Everything is a component
Your first component
Angular NgModule
JavaScript of the future
I speak JavaScript translate please!
Classes
Modules
Template strings
TypeScript
History with TypeScript in Angular
Decorators
Tools
Node.js and npm
Angular CLI
Summary
Ready Set Go!
Managing tasks
Vision
Starting from scratch
Main application component
Resource download
Main application NgModule
Bootstrapping
Running the application
Recap
Creating a task list
The right size of components
Adding tasks
Custom UI elements
Task data service
Filtering tasks
Dealing with Data and State
Reactive programming with RxJS
HTTP client and in-memory web APIs
Using behaviour subjects
Loading data in the task service
Subscribing in the view using the async pipe
Immutability
Immutability with TypeScript
Pure components
Introducing container components
Purifying our task list
Thinking in Projects
Moving into projects
Project service
Project component
Updating the task list container
Integrating the project component
Creating a tabbed interface component
Building the main navigation
Composition using content projection
Creating navigation components
Providing a project navigation
One editor to rule them all
Creating an editor component
Integrating the editor component
Dealing with users