JustGoscha / allmighty-autocomplete

Simple to use autocomplete directive in a module for AngularJs!
MIT License
392 stars 232 forks source link

what modification required for using within ng-repeat #141

Open matt212 opened 7 years ago

matt212 commented 7 years ago

I wanted to use autocomplete within ng repeats for all fields Since my case scenario is of generated dynamic column filter for my reports. now i wanted to apply autocompleted feature on top of existing dynamically created column filters My codebase looks likes this

  <div class="col-lg-16" ng-repeat="field in allFields">
                            <div class="col-lg-2">
                                <md-input-container flex>
                                    <label>[{field.position}]</label>
                                  <!--   <input type="text"  ng-model="field.positionval"> -->
                                       <autocomplete ng-model="field.positionval" data="field.positionval" on-type="updateMovies"></autocomplete>
                                    <!-- <input ng-model="field.position" name="field.position" > -->
                                </md-input-container>

any recommendation, suggestion, pointers on how to achieve the objective