title: Pass data to custom pipe from component in angular 2
body: <p>How can I pass data to custom pipe from the component?<br>
  I am trying to bind the form data to the component and pass to the pipe.</p>
  
  <p><code>&lt;input [(ngModel)]="phone" placeholder="Phone Number"&gt;</code></p>
  
  <p>want to pass 'this.phone' to 'PhoneNum' pipe from the component.</p>
  
  <p>This is done in template.<br>
  <code>{{phoneNumber | PhoneNum}} // PhoneNum is the pipe</code></p>
  
  <p>My question is done in AngularJS in this way from the controller</p>
  
  <p><code>&lt;input ng-model="phone placeholder="Phone Number"&gt;</code><br>
  <code>$filter(‘PhoneNum’)($scope.phone); // something like this.</code><br>
  Appreciate the Time!</p>