This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
template: `<div>
|
||||
<h1>Welcome, traveler.</h1>
|
||||
<nav>
|
||||
<a routerLink = "">Главная </a>
|
||||
<a routerLink = "about">О нас </a>
|
||||
<a routerLink = "board">Тред </a>
|
||||
<a routerLink = "threads">Борда </a>
|
||||
</nav>
|
||||
<router-outlet></router-outlet>
|
||||
</div>`
|
||||
templateUrl: `app.component.html`,
|
||||
styleUrls:['app.component.css']
|
||||
})
|
||||
|
||||
export class AppComponent {
|
||||
title = 'Nedvach Angular';
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user