Closed fakeheal closed 7 years ago
I set the external-model
to selectedTags
. In my $scope.doneClicked = function()
I populate that array. As well as when clicking in the most popular tags link, mentioned above.
However in this library this:
scope.$watch("viewModel.externalModel", function (newModel, oldModel, scope) {}
is not called unless a third argument is passed - true
. I'm not expert in AngularJS, so tell me if I'm doing something wrong or this parameter should be included in the library.
Thanks in advance.
Hi
I am sorry for the late response but I could not reply earlier.
Well did you do it the following way with the model-to-item-method
method? https://github.com/guylabs/ion-autocomplete#the-model-to-item-method
Regards,
Guy
Hi
any news on this? I will close the issue now due to inactivity. If you still have some comments or other inquiries, then please comment and reopen the issue.
Thanks and regards,
Guy
I have an ion-autocomplete input.
And it works as expected, but below this input I have a "tag cloud" with most popular tags and I want when an user clicks on those tags to set the tag as chosen in the input. I've read about pre-populating ion-autocomplete, but I have no idea how to do it after the autocomplete is initialized.
This is an element from my "tag cloud":
<a href="#" class="tag" ng-click="setInSearch(tag)" ng-class="{selected: tag.isSelected}">{{tag.name}}</a>
PS: I believe I cannot label this issue as a question myself.