File

src/app/app.component.ts

Metadata

import { Component } from '@angular/core';

@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>

./app.component.css

.links a {
    font-weight: bold;
}

./app.component-ext.css

.links a {
    font-size: 14px;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""