Skip to content

Commit c2f22c7

Browse files
committed
refactor(AppComponent): change component selector
1 parent a48c155 commit c2f22c7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: src/app/app.component.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { iconSubset } from './icons/icon-subset';
66
import { Title } from '@angular/platform-browser';
77

88
@Component({
9-
// tslint:disable-next-line:component-selector
10-
selector: 'body',
9+
selector: 'app-root',
1110
template: '<router-outlet></router-outlet>',
1211
})
1312
export class AppComponent implements OnInit {

Diff for: src/index.html

+7-6
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
<title>CoreUI Free Angular Admin Template</title>
2222
</head>
2323
<body>
24-
<noscript>You need to enable JavaScript to run this app.</noscript>
25-
26-
<div class="fade show" style="text-align: center; padding-top: calc(100vh / 2); height: 100vh">
27-
<i class="spinner-grow spinner-grow-sm"></i>
28-
<span class="m-1">Loading...</span>
29-
</div>
24+
<noscript>You need to enable JavaScript to run this app.</noscript>
25+
<app-root>
26+
<div class="fade show" style="text-align: center; padding-top: calc(100vh / 2); height: 100vh">
27+
<i class="spinner-grow spinner-grow-sm"></i>
28+
<span class="m-1">Loading...</span>
29+
</div>
30+
</app-root>
3031
</body>
3132
</html>

0 commit comments

Comments
 (0)