angular-autocomplete

A minimalist Angular.js directive for adding auto-complete dropdowns to text inputs

Added by: Sam Deering

GitHub

Repository

bryanchow/angular-autocomplete

Stats

Stars: 4

Watchers: 4

Forks: 2

Author

Bryan Chow
Bryan Chow

Module Description

angular-autocomplete

angular-autocomplete is a minimalist Angular.js directive for adding auto-complete dropdowns to text inputs.

Usage

Markup:

<div ng-controller="MyController">
    <input autocomplete autocomplete-fn="getSuggestions" />
</div>

JS:

var module = angular.module('myApp', ['ff.autocomplete']);

module.controller('MyController', [
    '$scope', function($scope) {

        $scope.getSuggestions = function(query) {
            return [
                "Los Angeles, CA",
                "New York, NY",
                "Vancouver, BC"
            ]
        };

    }
]);

Module stats last updated: 2015-06-08 00:21:46

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!