我有一个工作的角度模块。当我更改URL(相同的JSON文件)时,它将无法正常工作。我错了什么?
工作模块:
angular.module('destinationsApp', []).controller('destinationsCtrl', function($scope, $http){
$http
.get('https://raw.githubusercontent.com/MAHUKI-Webdesign/suntrips.github.io/master/main_sub_themes-light.json')
.then(function(itemsResponse) {
$scope.items = itemsResponse.data.main_themes;
不工作:
angular.module('destinationsApp', []).controller('destinationsCtrl', function($scope, $http){
$http
.get('https://www.suntrips.de/import/main_sub_themes-light.json')
.then(function(itemsResponse) {
$scope.items = itemsResponse.data.main_themes;