Skip to content

sn0opr/ionic-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ionic-autocomplete

Directive for text input autocomplete for Ionic framework

Usage

Add the attribute 'ionic-autocomplete' with passing an object that contains the items and a callback function for handling the select event to the input

<input type="text" ng-model="search" ionic-autocomplet="{item: myItems, onSelect: doSomthing}" />

the callback is called when the user selects an item from the autocomplete list

.controller('MyCtrl', function($scope){
  $scope.doSomthing = function(item) {
    console.log('The selected item is: '+item);
  }
});

About

Directive for text input autocomplete for Ionic framework

Resources

Stars

Watchers

Forks

Packages

No packages published