79406091

Date: 2025-02-02 05:11:45
Score: 0.5
Natty:
Report link

Try to do it in NgOnChange lifecycle hook.

ngOnChanges(changes: SimpleChanges) {
if (changes['username']) {
  this.username = changes['username'].currentValue;
}
if (changes['image_url']) {
  this.image_url = changes['image_url'].currentValue;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Raihan Ridoy