2
請看看下面的Plunkr:http://plnkr.co/edit/hwVL3xtnD9hGJLpULDjI?p=preview複選框只更新模型後,第二次點擊
當你點擊複選框首次模型不更新。 這是爲什麼發生?
var app = angular.module('main', ['ngMaterial'])
.controller('DemoCtrl', function($scope, $filter, $http) {
$scope.propdata = [];
$scope.success ="loading..";
var url = "api.json";
$http({url:url,
method:"GET"
}).then(function (rs){
$scope.propdata = rs.data[0];
$scope.success ="done..";
});
});
偉大的感謝名單!沒有意識到雙引號內的單引號。 – johan