kipris
kipris

Reputation: 3039

Angular-route trouble

I don't know how exactly show my problem. I'm trying dynamically change content with address changing. If I don't use $locationProvider the '#' appears in address and I don't need it. So if I use $locationProvider the <base> is needed. But when I add <base> my project doesn't see all outer css and scripts. enter image description here

Here's plunker if it can help to understand :) Only first two sub menu contains href http://plnkr.co/edit/pggakYtKS9xgxeMuKPEC?p=preview

Upvotes: 1

Views: 45

Answers (1)

Hardik Patel
Hardik Patel

Reputation: 3949

You can disable requireBase property as below.

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

Upvotes: 1

Related Questions