Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic-modal-select

$
0
0

Hey!
This is cool!
but i am having really a lot of trouble with setting dynamic options( which i get in the response of http request)

i have something like this
$scope.options = [{name:'First Option}]

and when i receive the http response im pushing each item to that scope.
something like this:

function(response) {
response.array.each(function(){
var a = {
name: $(this).name
}
$scope.options.push(a)
});

i am consol logging the each push and it works fine, however the view doesnt update.
i also tried to use $watch and $watchCollection on scope variable but that aint helped too
Please reply if u have an idea what do to ?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>