Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 884 Bytes

File metadata and controls

38 lines (28 loc) · 884 Bytes

angular-autocomplete

#Demo

[http://vladb95.github.io/angular-autocomplete/]

Installation

$ bower install angular-materialize-autocomplete

Dependencies

Using

###script.js

angular.module('demoApp', ['auto-complete'])
       .controller('demoCtrl', demoController);

demoController.$inject=['$scope'];
function demoController($scope){
  $scope.input = '';
	$scope.data = ["john", "bill", "charlie", "robert", "alban",
  "oscar", "marie", "celine", "brad", "drew", "rebecca",
   "michel", "francis", "jean", "paul", "pierre", "nicolas", "alfred"];
  $scope.color = '#00BCD4';
}

###index.html

<auto-complete-input auto-data="data" ac-title="'Choose employee'" color="color" ng-model="input"></auto-complete-input>