Change from attaching directly to body tag for app

This commit is contained in:
Tom Bloor 2017-08-24 16:38:41 +01:00
parent 9934f618b5
commit d7bb20870e
3 changed files with 2 additions and 4 deletions

View file

@ -1,8 +1,7 @@
import { Component } from '@angular/core';
@Component({
// tslint:disable-next-line
selector: 'body',
selector: 'app-root',
template: '<router-outlet></router-outlet>'
})
export class AppComponent { }

View file

@ -21,8 +21,7 @@
<body class="app header-fixed sidebar-fixed">
<!-- Enable bootstrap 4 theme -->
<script>window.__theme = 'bs4';</script>
<!-- App Loading... -->
<app-root><i>Loading...</i></app-root>
</body>
</html>