File

src/app/app.component.ts

Description

The main component that Angular loads at the start

This is the root component; all other components are created/destroyed inside this component.

Metadata

selector app-root
styleUrls app.component.css
templateUrl ./app.component.html
import { Component } from '@angular/core';

/**
 * The main component that Angular loads at the start
 * 
 * This is the root component; all other components are created/destroyed
 * inside this component.
 */
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  
}
<div class="container">
  <app-header></app-header>
  <router-outlet></router-outlet>
</div>

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""