TypeScript 2.x for Angular Developers

Write Better, Reusable, and Predictable Angular Apps with Typed Logic
Preview in Mapt

TypeScript 2.x for Angular Developers

Christian Nwamba

Write Better, Reusable, and Predictable Angular Apps with Typed Logic

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


TypeScript 2.x for Angular Developers Book Cover
TypeScript 2.x for Angular Developers
$ 35.99
$ 25.20
Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781786460554
Paperback240 pages

Book Description

TypeScript, a superset of JavaScript, is the default language for building Angular applications from Google. TypeScript 2.0 adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications.

This book will teach you how to leverage the exciting features of TypeScript while working on Angular projects to build scalable, data-intensive web applications. You will begin by setting up and installing TypeScript and then compile it with JavaScript. You will then learn to write simple JavaScript expressions with TypeScript. You will then go through some built in TypeScript types and accessors. Further you will build web components using TypeScript Interfaces and Decorators. You will go through the Angular form module, which will enable you to write predictable typed forms with TypeScript and learn to use typed DOM events. You will also build a single-page application using the Router module. Lastly, you will consume API data with Angular's HTTP Module and handle responses with RxJS observables. At the end of the book, you will go through different testing and debugging techniques.

Table of Contents

Chapter 1: From Loose Types to Strict Types
Term definitions
Implications of loose types
Final Note
Summary
Chapter 2: Getting Started with TypeScript
Setting up TypeScript
Hello World
Type annotation in TypeScript
ES6 and beyond
Final notes
Summary
Chapter 3: Typescript Native Types and Features
Basic types
Functions and function types
Interfaces
Decorators
Summary
Chapter 4: Up and Running with Angular and TypeScript
Setting up Angular and TypeScript
Basics concepts
Modules
Unit testing
Summary
Chapter 5: Advanced Custom Components with TypeScript
Lifecycle hooks
DOM manipulation
View encapsulation
Summary
Chapter 6: Component Composition with TypeScript
Component composability
Hierarchical composition
Component communication
Summary
Chapter 7: Separating Concerns with Typed Services
Dependency injection
Data in components
Data class services
Component interaction with services
Services as utilities
Summary
Chapter 8: Better Forms and Event Handling with TypeScript
Creating types for forms
The form module
Two-way binding
More form fields
Validating the form and form fields
Submitting forms
Handling events
Summary
Chapter 9: Writing Modules, Directives, and Pipes with TypeScript
Directives
Pipes
Modules
Summary
Chapter 10: Client-Side Routing for SPA
RouterModule
Router directives
Master-details view with routes
Summary
Chapter 11: Working with Real Hosted Data
Observables
The HTTP module
Building a simple todo demo app
Build a user directory with Angular
Summary
Chapter 12: Testing and Debugging
Angular 2 testing tools
Using Karma (with Jasmine)
Testing the components
Testing services
Debugging
Summary

What You Will Learn

  • Move from loose types to predictable strict types
  • Write self-documented API methods and data structures
  • Understand custom generic types for complex data structures
  • Implement Contract with Interfaces
  • Enhance Dependency Injection in Angular via class constructors
  • Explore TypeScript advanced types
  • Build Interactive web apps with Angular and TypeScript

Authors

Table of Contents

Chapter 1: From Loose Types to Strict Types
Term definitions
Implications of loose types
Final Note
Summary
Chapter 2: Getting Started with TypeScript
Setting up TypeScript
Hello World
Type annotation in TypeScript
ES6 and beyond
Final notes
Summary
Chapter 3: Typescript Native Types and Features
Basic types
Functions and function types
Interfaces
Decorators
Summary
Chapter 4: Up and Running with Angular and TypeScript
Setting up Angular and TypeScript
Basics concepts
Modules
Unit testing
Summary
Chapter 5: Advanced Custom Components with TypeScript
Lifecycle hooks
DOM manipulation
View encapsulation
Summary
Chapter 6: Component Composition with TypeScript
Component composability
Hierarchical composition
Component communication
Summary
Chapter 7: Separating Concerns with Typed Services
Dependency injection
Data in components
Data class services
Component interaction with services
Services as utilities
Summary
Chapter 8: Better Forms and Event Handling with TypeScript
Creating types for forms
The form module
Two-way binding
More form fields
Validating the form and form fields
Submitting forms
Handling events
Summary
Chapter 9: Writing Modules, Directives, and Pipes with TypeScript
Directives
Pipes
Modules
Summary
Chapter 10: Client-Side Routing for SPA
RouterModule
Router directives
Master-details view with routes
Summary
Chapter 11: Working with Real Hosted Data
Observables
The HTTP module
Building a simple todo demo app
Build a user directory with Angular
Summary
Chapter 12: Testing and Debugging
Angular 2 testing tools
Using Karma (with Jasmine)
Testing the components
Testing services
Debugging
Summary

Book Details

ISBN 139781786460554
Paperback240 pages
Read More

Read More Reviews

Recommended for You

Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 25.20
Mastering TypeScript - Second Edition Book Cover
Mastering TypeScript - Second Edition
$ 39.99
$ 28.00
NativeScript for Angular Mobile Development Book Cover
NativeScript for Angular Mobile Development
$ 35.99
$ 25.20
Angular UI Development with PrimeNG Book Cover
Angular UI Development with PrimeNG
$ 35.99
$ 25.20
NGINX Cookbook Book Cover
NGINX Cookbook
$ 35.99
$ 25.20
Rapid Web Application Development with TypeScript 2.x [Video] Book Cover
Rapid Web Application Development with TypeScript 2.x [Video]
$ 124.99
$ 106.25