$http.get("/vote/list", {params: {id: id}})
.success(function (data) { $scope.Vote = data; }).error(function () { }); myapp.directive('onFinishRenderFilters', function ($timeout) { return { restrict: "A", link: function (scope, elment) { /**这里如何拿到控制器中$scope.Vote**/ } } });
相关分类