AngularJs $scope doesn't update after a GET request on a factory

前端 未结 5 999
广开言路
广开言路 2020-12-31 14:10

I have been trying AngularJS for a experimental project and I came along with this problem. In my html I want to display a list of items

Index.html<

5条回答
  •  长发绾君心
    2020-12-31 14:40

    try to initialize $scope.items = []; at controller, before call $http

    I hope it helps you.

提交回复
热议问题