var dashboard = angular.module('dashboard', []); // Define the `PhoneListController` controller on the `phonecatApp` module dashboard.controller('AdminListController', function AdminListController($http, $scope) { $http.get('dashAdmin').then(function(response) { $scope.tasks = response.data.tasks; $scope.titulo = response.data.titulo; console.log(response.data); }); }); dashboard.controller('OtroListController', function OtroListController($http, $scope) { $http.get('otroData.php').then(function(response) { $scope.tasks = response.data.tasks; $scope.titulo = response.data.titulo; console.log(response.data); }); });