AngularJS App: Load data from JSON once and use it in several controllers
I'm working on a mobile app using AngularJS as a framework, currently I have a structure similar to this: app.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/', { templateUrl : 'pages/home.html', controller : 'homeCtrl' }) .when('/one', { templateUrl : 'pages/one.html', controller : 'oneCtrl' }) .when('/two', { templateUrl : 'pages/two.html', controller : 'twoCtrl' }); }]); app.controller('homeCtrl', ['$scope', function($scope) { }]); app.controller('oneCtrl', ['$scope', function($scope) { }]); app.controller('twoCtrl', ['$scope', function($scope) { }]); And then I