ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

Not able to run autocomplete on a search box #282

Closed nikhil5467 closed 6 years ago

nikhil5467 commented 6 years ago

IMPORTANT Please be specific with an example. An issue with no example may be closed.

Steps to reproduce and a minimal demo

Current behavior When I am trying to enter some text in the input text box i am getting error

Other information

allenhwkim commented 6 years ago

plunker not working. Please resubmit the issue with clear instruction to reproduce your error.

nikhil5467 commented 6 years ago

I am implementing the same ng2 auto complete example present at this link https://github.com/ng2-ui/auto-complete. But when i am implementing it I am getting error on console showing constructor is not defined from the line this.source.constructor === array at line number 138 in auto-complete.component.ts , and when i comment that line the page loads and as I click on the text box to type something I get an error saying Invalid type of source, must be a string inside getRemoteData() at line number 55 in auto-complete.ts. I don't know from where that source is coming as well. I don't know why Plunker is not working ,I have added the same code which I have in my system working.