Angular.js directives and npm

This is just a simple demo of how to create angular.js directives and share then on npm. In particular, this demo shows a typeahead directive.

The source code for this demo can be found here: typeahead.demo

Basic example

This is a very basic demo of typeahead directive:


Selected address: {{addressModel | json}}

Custom template

This demo shows how to render custom template:


Selected address: {{customAddressModel | json}}