The final fiddle seems to be working a little wonkily. I recommend checking
out the AngularUI project <https://github.com/angular-ui/angular-ui> a few
of us are working on. We have a Select2<http://ivaynberg.github.com/select2/> directive
that does pretty much the same thing (plus a WHOLE lot more), however we
are also working with Andy Joslin to move over his Twitter Bootstrap
directives <https://github.com/ajoslin/angular-bootstrap-ui> into AngularUI.
You should fork the project and contribute what you've been working on, as
you'd get a lot of support (and hopefully reuse) from the rest of us. We're
also always looking for new collaborators and will be happy to add more
core team members if they contribute!
On Wednesday, May 23, 2012 3:05:12 AM UTC-7, Nicolas Clairon wrote:
> Hi,
> I'm trying to use Twitter Bootstrap's typeahead feature on top of
> AngularJS. Everything works well with a static array
> http://jsfiddle.net/eSmkF/1/ but I want my auto-complete be dynamic by
> fetching some data from the server.
> I try to emulate it with with $watch. I can see the console result but the
> widget is not updated : http://jsfiddle.net/ffTgc/1/
> What's wrong ?
> N.