Ngonchanges example angular 6 stackoverflow. The ngOnChanges method accepts one SimpleChanges argument.