Angularjs $http.get().then and binding to a list

前端 未结 4 1713
借酒劲吻你
借酒劲吻你 2020-12-03 00:26

I have a list that looks like this:

  • 4条回答
    •  广开言路
      2020-12-03 01:12

      Try using the success() call back

      $http.get('/Documents/DocumentsList/' + caseId).success(function (result) {
          $scope.Documents = result;
      });
      

      But now since Documents is an array and not a promise, remove the ()

    • {{document.Name}}
    提交回复
    热议问题