joebrinkman-earnin / ng2-typeahead

Autocomplete component for Angular 2
MIT License
32 stars 21 forks source link

Unexpected token < #1

Open casserlyprogramming opened 8 years ago

casserlyprogramming commented 8 years ago

This might be due to the fact that being new to Angular I don't know how to implement this control. The steps I took are as follows:

npm install ng2-typeahead --save

import { Typeahead } from 'ng2-typeahead';

directives: [ Typeahead]

in the html <typeahead> (also tried <typeahead [list]="areas></typeahead> as well as <input type="text" typeahead>

It may be helpful if you have full instruction on how to use this for the numpties like myself that are new to ng2.

Thanks

casserlyprogramming commented 8 years ago

Just further, even just doing up to directives: [Typeahead] will throw the same error on loading the page.

ghost commented 8 years ago

I updated the package. Would you mind trying again when you get a chance? This is the first package I've created and I've probably made some mistakes. I am now using it within an Angular2 RC2 app with no issues.

I also updated the README with an example. If you have any suggestions please submit a pull request.

Thanks

Ajeey commented 8 years ago

I still get the same error and I am using RC4