javascript - Angucomplete-alt using ng-scope on the autocomplete tag -
i have form input tag want use auto-complete, user allowed enter name , auto-complete suggestions appear user enters name characters.
my problem if user doesn't want use auto-complete names , wish use custom name how access in controller.
i not able set ng-model on input tag managed internally angucomlete-alt.
i have autocomlete-alt tag in ng-repeat.
<div ng-repeat="resident in vm.residents"> <div class="form-group"> <label class="col-lg-2 col-sm-2 control-label">name</label> <div class="col-lg-6"> <angucomplete-alt placeholder="name" pause="100" selected-object="residentselected" search-fields="name" title-field="name" minlength="1" remote-api-handler="searchapi" remote-url-response-formatter="searchresponseformatter" input-class="form-control form-control-small" match-class="highlight" clear-selected="true"> </div> </div> </div>
further requirement set fields of selected object on other input tags below name field how can set fields on resident(iterator)
via model binding.
i not able set ng-model on augucomplete-alt reflects on resident(iterator)
of ng-repeat.
my aim able assign/bind values resident
angucomplete tag itself.
can me in advance.
well need ....
<angucomplete-alt placeholder="name" pause="100" selected-object="residentselected" search-fields="name" title-field="name" minlength="1" remote-api-handler="searchapi" remote-url-response-formatter="searchresponseformatter" input-class="form-control form-control-small" match-class="highlight" clear-selected="true" override-suggestions="true"/>
override-suggestions="true" : attribute overrides selection , set selected-object attribute custom input type in field.
here's documentation link
Comments
Post a Comment