Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AngularJS + autocomplete ($watch problem?)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nicolas Clairon  
View profile  
 More options May 23 2012, 6:05 am
From: Nicolas Clairon <clai...@gmail.com>
Date: Wed, 23 May 2012 03:05:12 -0700 (PDT)
Local: Wed, May 23 2012 6:05 am
Subject: AngularJS + autocomplete ($watch problem?)

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Clairon  
View profile  
 More options May 23 2012, 8:09 am
From: Nicolas Clairon <clai...@gmail.com>
Date: Wed, 23 May 2012 05:09:59 -0700 (PDT)
Local: Wed, May 23 2012 8:09 am
Subject: Re: AngularJS + autocomplete ($watch problem?)

I made another example of dynamic data (maybe much easier to understand the
issue) : http://jsfiddle.net/DNjSM/3/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Clairon  
View profile  
 More options May 24 2012, 5:25 am
From: Nicolas Clairon <clai...@gmail.com>
Date: Thu, 24 May 2012 02:25:25 -0700 (PDT)
Local: Thurs, May 24 2012 5:25 am
Subject: Re: AngularJS + autocomplete ($watch problem?)

I finally found a solution (it wasn't an angular issue but a typeahead one)
http://jsfiddle.net/DNjSM/17/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ProLoser  
View profile  
 More options Jul 6 2012, 6:10 pm
From: ProLoser <deanso...@gmail.com>
Date: Fri, 6 Jul 2012 15:10:35 -0700 (PDT)
Local: Fri, Jul 6 2012 6:10 pm
Subject: Re: AngularJS + autocomplete ($watch problem?)

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!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »