I'm trying to wrap AngularUI's typeahead directive with my own directive so I can package up some shared data/behavior for easier reuse in my app: Plunker
In the onSelect
callback, why does the correct value only show up after the timeout?
For reference, this works correctly without the wrapping directive: Plunker
Use
=
inside an isolate scope directive so that the bound function is called only after the model is updated:Plunker