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, selectedWorker
that's the ngModel
from the typeahead.
So now, when I use this component elsewhere, I'd want to do something like so:
<app-worker-lookup [(ngModel)]="foo"></app-worker-lookup>
And then have the foo
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.