angular.module('MovnThereUI').factory('UserFactory', function($http, ServerUrl) {
    'use strict';
    var users = [];

    var fetch = function() {
        $http.get(ServerUrl + 'users.json').success(function(response) {
            // use angular.copy() to retain the original array which the controllers are bound to
            // tasks = response will overwrite the array with a new one and the controllers loose the reference
            // could also do tasks.length = 0, then push in the new items
            angular.copy(response, users);
        });
    };

    return {
        users: users,
        fetch: fetch
    };
});

angular.module('MovnThereUI')
    .factory('UserFactory', [
        '$http',
        'ServerUrl',
        function($http, ServerUrl) {
            'use strict';
            var users = [];

            var fetch = function() {
                $http.get(ServerUrl + 'users.json').success(function(response) {
                    // use angular.copy() to retain the original array which the controllers are bound to
                    // tasks = response will overwrite the array with a new one and the controllers loose the reference
                    // could also do tasks.length = 0, then push in the new items
                    angular.copy(response, users);
                });
            };

            return {
                users: users,
                fetch: fetch
            };
        }
    ]
);

Modify user factory for inline annotation needed for grunt build minification.