October 2018
Beginner to intermediate
478 pages
10h 8m
English
Components are a key part of every modern UI framework. The idea is simple: you decompose the application visually into smaller encapsulated and reusable units, called components.
Let's review the auto-generated AppComponent component:
import { Component } from '@angular/core';@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'app'; }
Just like modules, Angular components are classes with an @Component decorator. The decorator receives a configuration object with the following relevant key properties:
Read now
Unlock full access