Nessuna descrizione

dashboard.js 674B

1234567891011121314151617181920
  1. var dashboard = angular.module('dashboard', []);
  2. // Define the `PhoneListController` controller on the `phonecatApp` module
  3. dashboard.controller('AdminListController', function AdminListController($http, $scope) {
  4. $http.get('dashAdmin').then(function(response) {
  5. $scope.tasks = response.data.tasks;
  6. $scope.titulo = response.data.titulo;
  7. console.log(response.data);
  8. });
  9. });
  10. dashboard.controller('OtroListController', function OtroListController($http, $scope) {
  11. $http.get('otroData.php').then(function(response) {
  12. $scope.tasks = response.data.tasks;
  13. $scope.titulo = response.data.titulo;
  14. console.log(response.data);
  15. });
  16. });