angular-auto-complete plugin

Live Demo and source code on Github.

npm install angular-auto-complete

bower install angular-auto-complete


Design decisions I had in mind when I started to create my plugin:

  • Do not use $scope inside controllers.
  • Do not convolute $scope with properties. Use bindToController with controllerAs instead.
  • Do not in anyway modify position of the input element in the DOM. This meant no transclusion.
  • Keep usage of $scope.$watch to the minimal.

This is my third iteration of the auto-complete plugin. The first was written in core JavaScript and the second as a jQueryUI plugin. It never gets boring!