Angular ui-router reloading entire App in ui-view Angular ui-router reloading entire App in ui-view express express

Angular ui-router reloading entire App in ui-view


I had created a loop with the templates. When I changed them to this, it worked:

$locationProvider.html5Mode(true);$stateProvider.state('frontPage', {    url: '/',    templateUrl:  'app/frontPage/frontPage.html'})    .state('institution', {        url: '/institution',        templateUrl:  'app/institution/institution.html',        controller: 'institutionCtrl'    });


I had this problem for about an hour. For me, the issue was that I had set the html5mode requireBase option to false.

$locationProvider.html5Mode({    enabled: true,    requireBase: false});

To fix this, I changed html5mode to this:

$locationProvider.html5Mode(true);

Then set a base in my HTML, like this:

<base href="/"></base>