ngOnInit()called after it ngOnChanges()was called for the first time.
This ensures that the initial values associated with the inputs are available when called ngOnInit(). ngOnChanges()called after updating inputs.
ngOnChanges() ngOnInit(), , - .