Answers for "detect changes in html binded property angular 8"

0

detect changes in html binded property angular 8

export class Person {
  public name = 'Initial Name';
}

export class PersonComponent implements OnInit, OnChanges {
  @Input() public person: Person;

  ngOnChanges(changes: SimpleChanges): void {
    console.log('changed');
  }
}
Posted by: Guest on November-10-2020

Code answers related to "detect changes in html binded property angular 8"

Browse Popular Code Answers by Language