title: Angular 5 pass ngModel through components
body: <p>I've created a simple component that wraps bootstrap's typeahead controller so it's configured the way I want for the app.  The component has a public variable, <code>selectedWorker</code> that's the <code>ngModel</code> from the typeahead.</p>
  
  <p>So now, when I use this component elsewhere, I'd want to do something like so:</p>
  
  <pre><code>&lt;app-worker-lookup [(ngModel)]="foo"&gt;&lt;/app-worker-lookup&gt;
  </code></pre>
  
  <p>And then have the <code>foo</code> variable of the caller be tied to the public variable of the lookup component that has the selected value.  I'm not sure how to implement that.</p>