import {Component, OnChanges, SimpleChanges, Input} from '@angular/core'; import { Employee } from './employee'; @Component({ selector: 'app-emp', templateUrl: './employee.component.html' }) export class EmployeeComponent implements OnChanges { @Input() employee: Employee; @Input() message: string; ngOnChanges(changes: SimpleChanges) { for (let propName in changes) { let change = changes[propName]; let curVal = JSON.stringify(change.currentValue); let prevVal = JSON.stringify(change.previousValue); console.log(curVal); console.log(prevVal); } } }
Đăng ký:
Đăng Nhận xét (Atom)
Cold Turkey Blocker
https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...
-
Basic usage | Documentation | Poetry - Python dependency management and packaging made easy (python-poetry.org) Activating the virtual env...
-
Modify File Permissions with chmod | Linode Modify File Permissions with chmod The chmod command allows users to change read and write per...
-
Basic usage | Documentation | Poetry - Python dependency management and packaging made easy (python-poetry.org) Python: poetry create poet...
Không có nhận xét nào:
Đăng nhận xét