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

View file

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