Step1: Create a Pipe using below code.
Code Of Search Filter Pipe
Step2: write below code where you want to implement search like in drop down.
Code Snippet
In above code we use just
<input matInput placeholder="Search Company" #searchInput /><br>
based on referece variable we took input and pass to pipe | searchByFilter:searchInput.value:'organizationName'"
based on referece variable we took input and pass to pipe | searchByFilter:searchInput.value:'organizationName'"
No comments:
Post a Comment