In my current project, I am utilizing Ionic@3 searchbar and we are looking to implement input validation on it. Specifically, we need to set a minimum length restriction and apply some pattern matching. I am aware that Angular offers input validators for validation purposes, but these seem to be limited to input types and do not directly apply to the Ionic searchbar (even though the searchbar contains an input element).
What is the best way to perform input validation on an Ionic searchbar?