Using Angular please look at the following Plunkr:
When you click the checkbox the first time the model doesn't update? Anyone know why this happens?
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..";
});
});
Thanks Regards Johan
Aucun commentaire:
Enregistrer un commentaire