Keine Beschreibung

adminver.js 741B

123456789101112131415161718192021
  1. var table = angular.module('table',['ngSanitize']);
  2. // var table = angular.module('table',[]);
  3. table.controller('tableController', function tableController($http, $scope, pagina){
  4. var url = '/admin/datos/'+pagina+'/'
  5. console.log(',datos,admin,'+pagina);
  6. $http.get(url).then(function(response) {
  7. $scope.headers = response.data.headers;
  8. $scope.tabla = response.data.tabla;
  9. $scope.info = response.data.info;
  10. $scope.modal = response.data.modal;
  11. $scope.modal_content = response.data.modal_content;
  12. console.log(response.data);
  13. // document.write(response.data.headers);
  14. // document.write(response.data.tabla);
  15. // document.write(response.data.info);
  16. // document.write(response.data.modal);
  17. });
  18. });