liveBook · Manning

@angular/core

As explained in Pro Angular 16

@angular/core is the Angular package that provides foundational framework functionality, including component support.

@angular/core supplies foundational Angular functionality, including the Component type used to define application components. section 2.3.3

Import Component from @angular/core, then configure a class with @Component metadata such as selector, templateUrl, and styleUrls. section 2.3.3

Todo application root component

AppComponent imports Component, declares the app-root selector, connects external template and stylesheet files, and exposes TodoList data through username and itemCount getters. section 2.3.3

How Pro Angular 16 covers it

How deep it goes
Explains module imports and @Component metadata with a complete component listing, without detailing the package's broader class catalog.
Examples
Uses an AppComponent Todo application with an app-root selector, TodoList state, and derived username and itemCount properties.
What it assumes
Introduces the required import syntax and decorator role while assuming familiarity with classes and application files.
What you can do after
Build an Angular component by importing Component and configuring its selector, template, and styles.
How it connects
Connects Angular components with decorators, JavaScript modules, templates, stylesheets, and Angular build tools.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Pro Angular 16. The section links point to the parts of the book it draws on.