title: PrimeNg - unable to filter p-table with a parameter
body: <p>Im using Angular 7 and PrimeNg library.</p>
  
  <p>I have my p-table  delaration:</p>
  
  <pre><code>&lt;p-table #tasktable [columns]="displayedColumns" [value]="Tasks" [globalFilterFields]="['name']" [paginator]="true" paginatorPosition="both"
       rows="20" [autoLayout]="true" selectionMode="single" [(selection)]="selectedTask"
       [reorderableColumns]="true" &gt;
  </code></pre>
  
  <p>Then I have the text input for the global filter:</p>
  
  <pre><code>&lt;input type="text" pInputText size="50" placeholder="Search by Task name" [(ngModel)]="filterFromUrl" (input)="tasktable.filterGlobal($event.target.value, 'contains')" style="width:auto"&gt;
  </code></pre>
  
  <p>So far so good.
  sometimes i get a parameter inside my URL, to get it 
  I used in my component.ts:</p>
  
  <pre><code> this.activatedRoute.queryParams.subscribe(params =&gt; {
   this.filterFromUrl = params['task'];
  });
  </code></pre>
  
  <p>And now I have the parameter from the URL in my <em>filterFromUrl</em>  parameter.
  My problem:</p>
  
  <p>I cant get the table filter the data by the parameter.</p>
  
  <p>I used [(ngModel)] bind in the   ,it doesn't work, 
  I can see the parameter on the search control:
  <a href="https://i.stack.imgur.com/aJcQ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aJcQ9.png" alt="enter image description here"></a></p>
  
  <p>But it just doesn't fire the event and the data not filtered.</p>