app-root
component in the first chapter of the book: "Create a new Angular project".@Component
decorator is applied on the AppComponent
class and it configures the component with the required properties, that are called metadataselector: 'app-root'
, which means this component can be utilised in HTML using the <app-root></app-root>
tag.standalone:true
is mandatory if you want to use the latest version of Angular and it is useful to distinguish the new type of components (available from Angular v.14) compared to the previous ones. Probably this option won't be required anymore in future versions of AngularAppComponent
imports
component metadata<selector-name>
PanelComponent
(child) are used in the AppComponent
(parent):