AngularJS Scope not updating in view after async call

前端 未结 3 981
离开以前
离开以前 2020-12-18 21:23

I am having trouble updating my scope on the front-end while making a request to an API. On the backend I can see that the value of my $scope variable is changing but this i

3条回答
  •  醉酒成梦
    2020-12-18 21:36

    Hey guys I solved the issue but I'm not sure exactly why this changed anything. Rearranging my code on JS Fiddle I just put all my partials into the index.html file like so and the requests and scope variables updated smoothly. Is was there perhaps a controller conflict with my html above?

    
    
    
    
    
    

    Title

    Loading results...

    {{beer.name}}

    {{beer.style.name}}

    AbvMin: {{beer.abv}}

    AbvMax: {{beer.ibu}}

    {{beer.style.description}}


    No results found.

提交回复
热议问题