Skip to content

This is a demo repository for angular.js directive, shared on npm

License

Notifications You must be signed in to change notification settings

anvaka/typeahead.demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typeahead.demo

This demo shows how to use angular.js typeahead directive from npm. Interactive version is available here.

Steps to make this work

Install directive from npm:

npm i typeahead.an

Require npm direcives, before bootstraping your main angular app:

require('typeahead.an');

var ngApp = angular.module('MyModule', []);
require('an').flush(ngApp);

// Finally bootstrap it:
angular.bootstrap(document, [ngApp.name]);

Now your directive is ready to be used inside html:

<input type="text"
      ng-model="addressModel"
      typeahead="address for address in getLocation($viewValue) | filter:$viewValue"
      typeahead-loading="loadingLocations">

Please read more here: anvaka/an

About

This is a demo repository for angular.js directive, shared on npm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published