Externalize app component html template.

This commit is contained in:
Alexis Lahouze 2018-06-05 08:10:35 +02:00
parent c71c015616
commit 994604ddbf
2 changed files with 9 additions and 10 deletions

8
src/app.component.html Normal file
View File

@ -0,0 +1,8 @@
<!-- Navbar -->
<nav class="navbar fixed-top navbar-dark bg-dark">
<a class="navbar-brand" routerLink="/accounts">&nbsp;Accountant</a>
</nav>
<div class="container-fluid">
<router-outlet></router-outlet>
</div>

View File

@ -4,15 +4,6 @@ import { Component } from '@angular/core';
@Component({
selector: 'accountant',
template: `
<!-- Navbar -->
<nav class="navbar fixed-top navbar-dark bg-dark">
<a class="navbar-brand" routerLink="/accounts">&nbsp;Accountant</a>
</nav>
<div class="container-fluid">
<router-outlet></router-outlet>
</div>
`
templateUrl: './app.component.html'
})
export class AppComponent { }