src/app/home/home.component.ts
The home component
| changeDetection | ChangeDetectionStrategy.OnPush |
| encapsulation | ViewEncapsulation.Emulated |
| selector | home |
| template | |
| templateUrl | ./home.component.html |
Methods |
|
| Public showTab |
showTab()
|
|
Defined in src/app/home/home.component.ts:25
|
|
Returns :
void
|
import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
const selector = 'home';
const template = `
<div class="todoapp">
<header class="header"></header>
<list class="main"></list>
<footer></footer>
</div>
`;
const templateUrl = './home.component.html';
const changeDetection = ChangeDetectionStrategy.OnPush;
const encapsulation = ViewEncapsulation.Emulated;
/**
* The home component
*/
@Component({
selector,
template,
templateUrl,
changeDetection,
encapsulation
})
export class HomeComponent {
public showTab() {}
}
<div class="todoapp">
<header class="header"></header>
<list class="main"></list>
<footer></footer>
</div>