1.life TS
import {
AfterContentChecked,
AfterContentInit,
AfterViewChecked,
AfterViewInit,
Component,
DoCheck, Input,
OnChanges,
OnDestroy,
OnInit, SimpleChanges
} from '@angular/core';
let logIndex = 1;
// tslint:disable-next-line:no-conflicting-lifecycle
@Component({
selector: 'app-life',
templateUrl: './life.component.html',
styleUrls: ['./life.component.css']
})
// tslint:disable-next-line:max-line-length
export class LifeComponent implements OnInit, OnChanges, DoCheck, AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, OnDestroy {
@Input()
name: string;
// tslint:disable-next-line:ty