Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

381
Vistas
When adding 'ngRoute' in my Module it send different URL

I have npm installed properly ngRoute with its version and added in my index.html file.

The problem here is that it adds the parameters #! at the end of my localhost URL like this:

http://127.0.0.1:5500/#!/

Instead of having something like this:

http://127.0.0.1:5500

I added the ngRoute in my module like this:

angular.module('todoApp', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {

$routeProvider

.when("/", {
  templateUrl: 'views/home.html',
  //controller: 'homeController'
})

As soon as I added this code in my app.js file that control the front-end with Angularjs my whole app collapses due to the fact that my URL changes completely.

In fact, in my index.html I have to add to go to my home page the next:

<a href="#!/"

Otherwise it won't send the right URL router for ngRoute.

I don't know what else to do.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda