title: How to show search result in angular 4
body: <p>I have a filter component where 2 fields are available to filter directory list and a search button.</p>
  
  <p>I want to show filtered result in main component where all the directory listing is showing.</p>
  
  <p>Actually all is working fine, when i click on search button, search function run in filter.component.ts file and get the results from api and show the result in console. but i unable to pass the result to main component where filtered listing have to be shown.</p>