File

src/app/app.component.ts

Description

The main component

Metadata

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

/**
 * The main component
 */
@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: [
        './app.component.css',
        './app.component-ext.css'
    ]
})
export class AppComponent {

}
<router-outlet></router-outlet>

<p class="info links">
    <a routerLink="/" routerLinkActive="active">Home</a>
    &nbsp;|&nbsp;
    <a routerLink="/about" routerLinkActive="active">About</a>
</p>
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""