title: how to use angular pipe as a shared component or shared module
body: <p>I am using below function as a pipe, for get unique values to the drop down. i need to use this in multiple components. how i create reusable component to use this function.</p>
  
  <pre><code> @Pipe({
    name: 'unique',
    pure: false
  })
  
  export class UniquePipe implements PipeTransform {
    transform(value: any): any {
        if (value !== undefined &amp;&amp; value !== null) {
            return _.uniqBy(value, 'orgName');
        }
        return value;
    }
  }
  </code></pre>