title: How to clear filtered data using pipe in Angular2?
body: <p>I am using this pipe to filter items in the dropdown. Now i want to reset dropdown to default data after item is selected from the filter.</p>
  
  <pre><code>@Pipe({name: 'filterdropdownpipe'})
      export class FilterDropdownPipe implements PipeTransform {
        transform(value: any[], filter: string): Object[] {
          filter = filter ? filter.toLocaleLowerCase() : null;
          return filter ? value.filter((item: any) =&gt;
            (item.name.toLocaleLowerCase().includes(filter)) || filter === '') : value;
        }
      }
  
  
  &lt;div class="filter-div" *ngFor="let institution of institutions | filterdropdownpipe: searchInstitute"&gt;
                      &lt;ul class="drop-list drop-list-2"&gt;
                        &lt;li [ngClass]="institution.highlighted ? 'highlighted-filter-item' : 'normal-filter-item'"
                            (click)="onInstitutionSelection(institution)"&gt;{{institution.name}}
                        &lt;/li&gt;
                      &lt;/ul&gt;
                    &lt;/div&gt;
  </code></pre>