typeahead.demo

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

Angular Core Dependency: ^1.3.7

Added by: Sam Deering

GitHub

Repository

anvaka/typeahead.demo

Stats

Stars: 2

Watchers: 2

Forks: 1

Module Description

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

Module stats last updated: 2015-06-08 00:25:51

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!