We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have following code, to get data from api and then set in list.
` $http.get(sharedProperties.getURLOfLanguagesWebAPI()).then(function (data) {
allData = sharedProperties.convertXml2JSon(data.data); for (var i = 0; i < allData.OVRLookupData.Languages.length; i++) { $scope.languages.push({ "id": parseInt(allData.OVRLookupData.Languages[i].LanguageCode), "name": allData.OVRLookupData.Languages[i].Language }); } $scope.loadingLangues = false; }, function (data) { console.log(data); });`
HTML is like: <label name="Language" class="item item-selectbox"> <span class="input-label" style="float:left">Select Language</span> <button class="button button-dark button-outline icon-right ion-arrow-down-b" modal-select ng-model="selectedValue" options="languages" on-select="languageChange(newValue)" modal-title="Select Language"> {{ selectedValue.name || 'Select Language'}} <div class="option">{{option.name}}</div> </button> </label>
<label name="Language" class="item item-selectbox"> <span class="input-label" style="float:left">Select Language</span> <button class="button button-dark button-outline icon-right ion-arrow-down-b" modal-select ng-model="selectedValue" options="languages" on-select="languageChange(newValue)" modal-title="Select Language"> {{ selectedValue.name || 'Select Language'}} <div class="option">{{option.name}}</div> </button> </label>
If I print in html like {{languages}} then I can see the values. However, the select box shows empty list.
Is it possible to populate values via api call?
The text was updated successfully, but these errors were encountered:
It's a bug: http://stackoverflow.com/questions/38125589/unable-to-update-scope-after-executing-get-call-from-http/38126400#38126400
Sorry, something went wrong.
hi @RupenAnjaria , does this work after #49 ?
Yes, it is working now.
ok, closing this, thanks!
No branches or pull requests
Hi, I have following code, to get data from api and then set in list.
` $http.get(sharedProperties.getURLOfLanguagesWebAPI()).then(function (data) {
HTML is like:
<label name="Language" class="item item-selectbox"> <span class="input-label" style="float:left">Select Language</span> <button class="button button-dark button-outline icon-right ion-arrow-down-b" modal-select ng-model="selectedValue" options="languages" on-select="languageChange(newValue)" modal-title="Select Language"> {{ selectedValue.name || 'Select Language'}} <div class="option">{{option.name}}</div> </button> </label>
If I print in html like {{languages}} then I can see the values. However, the select box shows empty list.
Is it possible to populate values via api call?
The text was updated successfully, but these errors were encountered: