我試圖使用下面的代碼解析json,但它顯示一個空白頁。
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("http:krispypapad.herokuapp.com/fetch_article").success(function (response) {
$scope.myWelcome = data.response;
});
});
參見[爲什麼角$ HTTP成功/錯誤的方法已過時?從v1.6中刪除?](http://stackoverflow.com/a/35331339/5535245)。 – georgeawg