I am wrapping a angular material autocomplete component in angular 5. While wrapping that component, I am facing issue because I am exposing an input property of type observable to add a custom filter i.e., filtering which you can see in this link:stackblitz1. Here in the parent component,one can give any filter like 'startwith','endwith' or 'contain' etc.Here the filtering is not working. It is just behaving as Simple Autocomplete without filter. But if that custom filter is used in the child component only, without exposing an input property like hardcoding, it will work,I have given that link also:stackblitz2. I tried with ngOnChanges also, but it is not working.
Is there any other way to get the same behaviour as in the stackblitz2 wby exposing the input property i.e., hardcoding?