You could just set a watch on the input. So that every time a character has been typed, it'll run the save(). This what you mean?
On Fri, Mar 21, 2014 at 3:39 AM, Alfred Nutile <[email protected]>wrote: > You ever figure this one out? > > > On Monday, May 27, 2013 2:07:40 AM UTC-4, Matt wrote: >> >> Thanks Raymond! Is there a way to do this without having a save button, >> ie, dynamically? >> >> I'm working with leaflet.js and angular. I'm filtering the imported json >> with angular and then want to have the map's markers built from that >> filtered json. >> >> On Wednesday, May 22, 2013 12:50:02 AM UTC+8, Raymond Z. wrote: >>> >>> You can achieve this with the >>> $filter<http://docs.angularjs.org/api/ng.filter:filter>service. Note that >>> you need to use angular.toJson() on the filtered data >>> because Angular adds $$hashKey key-value pairs to each JSON object. >>> >>> Syntax: >>> >>> $filter('filter')(array, expression) >>> >>> Example code: http://jsfiddle.net/razh/WQESz/ >>> >>> The code you want is on line 11, with $scope.save(). >>> >>> -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/a1cBVLxJYFk/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
