Angularjs 角度js数据绑定未显示

Angularjs 角度js数据绑定未显示,angularjs,codeigniter,Angularjs,Codeigniter,这是我的控制器: $scope.openReview = function(recipe_id){ console.log(recipe_id); CommentList.getRecipeDetails(recipe_id); $scope.newComment.recipeID = recipe_id; CommentList.all($scope.newComment.recipeID).then(function(payload) { $sco

这是我的控制器:

  $scope.openReview = function(recipe_id){
  console.log(recipe_id);
  CommentList.getRecipeDetails(recipe_id);

     $scope.newComment.recipeID = recipe_id;
     CommentList.all($scope.newComment.recipeID).then(function(payload) {
     $scope.feedbackdata = payload;
     console.log(payload);
 });

}
我的看法是:

<ion-view view-title="Reviews" enable-menu-with-back-views="true">
<ion-content>
<div class="items item item-avatar" ng-repeat="comment in feedbackdata">
  <h2>{{comment.firstname}} {{comment.lastname}}</h2>
  <p>{{comment.comment}}</p>
</div>
</ion-content>
</ion-view>

这是我的附加代码

模型

主要

服务

        all: function(recipe_id) {
      return $http.post("http://localhost/admin-recipick/api/Main/get_feedback_data", recipe_id).then(function(result){
        return result.data;
      })
    },
请帮帮我。。请帮助我

{{comment.firstname}{{comment.lastname}}
 <h2>{{comment.firstname}} {{comment.lastname}}</h2>
 <p>{{comment.comment}}</p>
{{comment.comment}

把这条线拆下来 {{comment.feedback_id}


因为我认为反馈id不在绑定数组中

您必须在对象形式的数组中获取数据,比如
[{id:1,ima:gh.jpg},{id=2,ima:jh.jpg}]
在这个表单中

控制台中显示任何错误吗?没有错误。。“我的视图”中没有显示任何内容,您需要查看更多代码。您的设置是否正确-html
ng app
/
ng controller
app.js
等?由于您的控制台显示正确的数据,我认为视图有问题。你能显示你的index.html吗?index.html或数据显示的视图吗?我声明ng repeat的做法正确吗?ng repeat语法正确吗?你是否提醒$scope.feedbackdata但我需要显示该图像上面还包括html代码。。第二个完整的html代码只是尝试检查它是否在没有html的情况下工作
public function get_feedback_data()
{
    $postdata = json_decode(file_get_contents("php://input"));
    $feedback = $this->User_model->feedback_data($postdata);
    echo json_encode($feedback);
}
        all: function(recipe_id) {
      return $http.post("http://localhost/admin-recipick/api/Main/get_feedback_data", recipe_id).then(function(result){
        return result.data;
      })
    },
 <h2>{{comment.firstname}} {{comment.lastname}}</h2>
 <p>{{comment.comment}}</p>