Book description
Angular Development with TypeScript, Second Edition is an intermediate-level tutorial that introduces Angular and TypeScript to developers comfortable with building web applications using other frameworks and tools.
About the Technology
Whether you’re building lightweight web clients or full-featured SPAs, Angular is a clear choice. The Angular framework is fast, efficient, and widely adopted. Add the benefits of developing in the statically typed, fully integrated TypeScript language, and you get a programming experience other JavaScript frameworks just can’t match.
About the Book
Angular Development with TypeScript, Second Edition teaches you how to build web applications with Angular and TypeScript. Written in an accessible, lively style, this illuminating guide covers core concerns like state management, data, forms, and server communication as you build a full-featured online auction app. You’ll get the skills you need to write type-aware classes, interfaces, and generics with TypeScript, and discover time-saving best practices to use in your own work.
What's Inside
- Code samples for Angular 5, 6, and 7
- Dependency injection
- Reactive programming
- The Angular Forms API
About the Reader
Written for intermediate web developers familiar with HTML, CSS, and JavaScript.
About the Authors
Yakov Fain and Anton Moiseev are experienced trainers and web application developers. They have coauthored several books on software development.
Quotes
Informative, accurate, and insightful.
- Kunal Jaggi, General Motors
This is the book that you should read, no matter where you are along your Angular learning journey.
- Rahul Rai, Telstra
A brilliant revisit of a masterwork—not only about Angular but also about superb use of TypeScript. Inspiring and insightful.
- Alain Couniot, STIB-MIVB
A rock-solid guide to the most important web framework today—authoritative, accessible, and complete.
- Dennis Sellinger, Géotech
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Praise for the First Edition
- Preface
- Acknowledgments
- About this book
- About the authors
- About the cover illustration
- Chapter 1. Introducing Angular
- Chapter 2. The main artifacts of an Angular app
- Chapter 3. Router basics
- Chapter 4. Router advanced
-
Chapter 5. Dependency injection in Angular
- 5.1. The dependency injection pattern
- 5.2. Benefits of DI in Angular apps
- 5.3. Injectors and providers
- 5.4. A simple app with Angular DI
- 5.5. Switching injectables made easy
- 5.6. Declaring providers with useFactory and useValue
- 5.7. Providers in lazy-loaded modules
- 5.8. Providers in eagerly loaded modules
- 5.9. Hands-on: Using Angular Material components in ngAuction
- Summary
- Chapter 6. Reactive programming in Angular
- Chapter 7. Laying out pages with Flex Layout
- Chapter 8. Implementing component communications
- Chapter 9. Change detection and component lifecycle
- Chapter 10. Introducing the Forms API
-
Chapter 11. Validating forms
- 11.1. Using built-in validators
- 11.2. Controlling when validation starts
- 11.3. Custom validators in reactive forms
- 11.4. Validating a group of controls
- 11.5. Checking a form control’s status and validity
- 11.6. Changing validators dynamically in reactive forms
- 11.7. Asynchronous validators
- 11.8. Custom validators in template-driven forms
- 11.9. Adding a search form to ngAuction
- Summary
- Chapter 12. Interacting with servers using HTTP
- Chapter 13. Interacting with servers using the WebSocket protocol
- Chapter 14. Testing Angular applications
- Chapter 15. Maintaining app state with ngrx
-
Appendix A. An overview of ECMAScript
- A.1. How to run the code samples
- A.2. Scope of variables and this
- A.3. Template literals
- A.4. Optional parameters and default values
- A.5. Arrow function expressions, this, and that
- A.6. The rest operator
- A.7. The spread operator
- A.8. Generator functions
- A.9. Destructuring
- A.10. Iterating with forEach(), for-in, and for-of
- A.11. Classes and inheritance
- A.12. Asynchronous processing
- A.13. ES6 modules
-
Appendix B. TypeScript essentials
- B.1. The role of transpilers
- B.2. Getting started with TypeScript
- B.3. How to run the code samples
- B.4. Optional types
- B.5. Functions
- B.6. Classes
- B.7. Interfaces
- B.8. Generics
- B.9. The readonly modifier
- B.10. Decorators
- B.11. The union type
- B.12. Using type definition files
- B.13. Controlling code style with TSLint
- Appendix C. Using the npm package manager
- Appendix D. RxJS essentials
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Angular Development with TypeScript, Second Edition
- Author(s):
- Release date: December 2018
- Publisher(s): Manning Publications
- ISBN: 9781617295348
You might also like
video
Angular with TypeScript
Becoming a fullstack developer is one of the best ways you can progress your career. Angular …
video
Angular (Full App) with Angular Material, Angularfire and NgRx
This course will take you on a journey where you'll you will learn to build a …
book
Angular in Action
Angular in Action teaches you everything you need to build production-ready Angular applications.Thoroughly practical and packed …
book
TypeScript Quickly
TypeScript is JavaScript with an important upgrade! By adding a strong type system to JavaScript, TypeScript …