src/app/app.component.ts
The main component that Angular loads at the start
This is the root component; all other components are created/destroyed inside this component.
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>