How to compile/code the customized Angular Controls correctly?

I have customized a Control by Ejs-textbox. It doesn't show the value if I manually assign value to it. I know there are two ways to handle this case. 
And what I want to know is how to compile/code the customized Angular Controls correctly.
1. To remove the code from changeDetection: ChangeDetectionStrategy.OnPush 
2. Or to add detectChanges for WriteValue.

https://stackblitz.com/edit/angular-scatwj



1 Reply 1 reply marked as answer

BC Berly Christopher Syncfusion Team February 2, 2021 12:39 PM UTC

Hi Techlandandyzhang, 
  
Greetings from Syncfusion support. 
  
We have checked the provided sample. When using the parent and child component Angular will not detect these changes and react properly always. To get rid of the issue, we suggest to detect the changes explicitly as you mentioned in the update. Please find the common blog reference for this case below 
  
  
  
Regards, 
Berly B.C 


Marked as answer
Loader.
Up arrow icon