(function(){ angular.module('bingo', ['ngRoute', 'servicios','controladores', 'componentes', 'directivas']) .config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider){ $routeProvider.when('/',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/inicio.html', controller: 'InicioController' }).when('/inicio',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/inicio.html', controller: 'InicioController' }).when('/bingo',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/bingo.html', controller: 'BingoController' }).when('/confirmado',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/confirmado.html', controller: 'ConfirmadoController' }).when('/reconfirmado',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/reconfirmado.html', controller: 'ConfirmadoController' }).when('/inscripcion',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/inscripcion.html', controller: 'InscripcionController' }).when('/generador',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/generador.html', controller: 'GeneradorController' }).when('/votaciones',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/votaciones.html', controller: 'VotacionesController' }).when('/resultados_votacion',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/resultados_votacion.html', controller: 'ResultadosController' }).when('/voto_finalizado',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/voto_finalizado.html', controller: 'VotoFinalizadoController' }).when('/inscripcion_votacion',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/inscripcion_votacion.html', controller: 'InscripcionVotacionController' }).when('/enlaces_copeinca',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/enlaces_copeinca.html', controller: 'EnlacesCopeincaController' }).when('/inscripcion_copeinca',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/inscripcion_copeinca.html', controller: 'InscripcionCopeincaController' }).when('/votaciones_consejo',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/votaciones_consejo.html', controller: 'VotacionesConsejoController' }).when('/votaciones_junta',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/votaciones_junta.html', controller: 'VotacionesJuntaController' }).when('/resultados_consejo',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/resultados_consejo.html', controller: 'ResultadosConsejoController' }).when('/resultados_junta',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/resultados_junta.html', controller: 'ResultadosJuntaController' }).when('/mociones',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/mociones.html', controller: 'MocionesController' }).when('/votos_mociones',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/votos_mociones.html', controller: 'VotosMocionesController' }).when('/error',{ templateUrl: 'archivos/r/' + parseInt(Math.random() * 1000) + '/error.html', controller: 'ErrorController' }).otherwise({ redirectTo: '/error' }); $locationProvider.html5Mode(true).hashPrefix('!'); }]) })();