1

I am using angularjs in my web application.I have a text box in which locations are selected with autocomplete.This is done with ngAutocomplete.js(Refering this example http://plnkr.co/edit/il2J8qOI2Dr7Ik1KHRm8?p=preview) .I need to load location from database when page is initially loaded .it is not working now.How can I solve it?

Vishnupriya
  • 111
  • 3
  • 10

1 Answers1

2

Both website and examples are obsolete, and are made after a previous version of the library.

Refer to the documentation included in the source file instead, you will find out you now need to use ng-model attribute.

<input type="text" ng-autocomplete ng-model="search.result" details="search.details" options="search.options"/>
Antwan
  • 2,091
  • 2
  • 21
  • 25