src/app/app.component.ts
encapsulation | ViewEncapsulation.None |
selector | app |
styleUrls | app.component.css |
template | <main> |
constructor()
|
import {
Component,
OnInit,
ViewEncapsulation
} from '@angular/core';
import { AppState } from './app.service';
/*
* App Component
* Top Level Component
*/
@Component({
selector: 'app',
encapsulation: ViewEncapsulation.None,
styleUrls: [
'./app.component.css'
],
template: `
<main>
<router-outlet></router-outlet>
</main>
`
})
export class AppComponent implements OnInit {
constructor(
) {}
public ngOnInit() {
}
}
/*
* Please review the https://github.com/AngularClass/angular2-examples/ repo for
* more angular app examples that you may copy/paste
* (The examples may not be updated as quickly. Please open an issue on github for us to update it)
* For help or questions please contact us at @AngularClass on twitter
* or our chat on Slack at https://AngularClass.com/slack-join
*/