【AngularJS】データベースデータ呼び出しインスタンスの読み出し
1663 ワード
{{ x.sid }}
{{ x.sname }}
{{ x.sclick }}
{{ x.stime | date:'yyyy-MM-dd HH:mm:ss' }}
{{ x.sproject }}
var buffer = document.getElementById("buffer");
buffer.style.display = 'block';
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
// mysql , response.records response,
$http.get("Customers_MySQL.php")
.success(function(response) {
$scope.names = response;
buffer.style.display = 'none';
});
});