Have a personal or library account? Click to login
Angular 2 Components Cover

Angular 2 Components

Practical and easy-to-follow guide to Angular 2 Components

Paid access
|Sep 2025
Product purchase options

A quick and concise guide to Angular 2 Components

Key Features

  • First look to the Angular 2 Components architecture
  • Creating your own Angular 2 Component
  • Integrating your components with third party components

Book Description

This book is a concise guide to Angular 2 Components and is based on the stable version of Angular 2. You will start with learning about the Angular 2 Components architecture and how components differ from Angular directives in Angular 1. You will then move on to quickly set up an Angular 2 development environment and grasp the basics of TypeScript. With this strong foundation in place, you will start building components.

The book will teach you, with an example, how to define component behavior, create component templates, and use the controller of your component. You will
also learn how to make your components communicate with each other. Once you have built a component, you will learn how to extend it by integrating third-party components with it. By the end of the book, you will be confident with building and using components for your applications.

What you will learn

  • Break your application into reusable dynamic components
  • Take advantage of TypeScript in Angular 2
  • Migrate your Angular 1 directive to an Angular 2 Component
  • Understand the Angular 2 component structure and APIs
  • Hook to component life cycle events
  • Bind dynamic data to your component properties
  • Communicate with other components using events
  • Compose complicated UIs from simple components

Who this book is for

If you are a front-end developer with some experience in Angular and want to understand Angular 2 Components, and easily put it to use to create powerful user interfaces and views, then this book is for you

Table of Contents

  1. Angular2 Components architecture
  2. Setting up an Angular2 development environment
  3. Using TypeScript for more cleaner code
  4. Defining the Component Behavior
  5. Declaring and Creating templates
  6. Creating a Component Controller Class
  7. Making the component dynamic
  8. Developing your own custom component
  9. Integrating third-party components
https://github.com/packtpublishing/angular-2-components
PDF ISBN: 978-1-78588-940-0
Publisher: Packt Publishing Limited
Copyright owner: © 2016 Packt Publishing Limited
Publication date: 2025
Language: English
Pages: 124