import { Component } from '@angular/core';
@Component({
selector: 'prefix-app',
template: `
<router-outlet></router-outlet>
`
})
export class AppComponent { }
Create Root Component
This code defines a prefix-app component that will be used to display an <router-outlet/> element. The <router-outlet/> element will be used to display the home page of the application.
Shortcut: angular.component.root
0 Comments
Add Comment
Log in to add a comment