zaquas
zaquas

Reputation: 53

Bootstrap UI Typeahead doesn't support two-way data binding

Hello to all I read that this issue

https://github.com/angular-ui/bootstrap/issues/274 

is was closed... I've this jsfiddle

https://jsfiddle.net/qq4gqn6t/12/

but when I change the model the label not change... Can help me? Thanks

Upvotes: 2

Views: 755

Answers (1)

oKonyk
oKonyk

Reputation: 1476

Checkout if this jsfiffle, if that is your desired behavior?...

All I've done is:

<input ng-model="selected.descrizione" class="form-control">

replaced state.descrizione with selected.descrizione

Thing is, that state is not available outside uib-typeahead directive, but at the same time selected becomes handle that we can use.

Upvotes: 1

Related Questions