Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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');
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #detect #html #binded #property #angular
ADD COMMENT
Topic
Name
5+9 =