var table = angular.module('table',['ngSanitize']); // var table = angular.module('table',[]); table.controller('tableController', function tableController($http, $scope, pagina){ var url = '/enfermeria/datos/'+pagina+'/' console.log(',datos,admin,'+pagina); $http.get(url).then(function(response) { $scope.headers = response.data.headers; $scope.tabla = response.data.tabla; $scope.info = response.data.info; $scope.modal = response.data.modal; $scope.modal_content = response.data.modal_content; console.log(response.data); // document.write(response.data.headers); // document.write(response.data.tabla); // document.write(response.data.info); // document.write(response.data.modal); }); });