Last active
January 13, 2016 19:42
-
-
Save bettysteger/714c93492ab4d535d105 to your computer and use it in GitHub Desktop.
Fix for $location:nobase for angular-1.3.0-rc.0 app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Uncaught Error: [$location:nobase] | |
https://docs.angularjs.org/error/$location/nobase | |
--> | |
<head> | |
<base href="/"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* It's also possible to solve this issue by changing the configuration | |
*/ | |
app.config(function($locationProvider) { | |
$locationProvider.html5Mode({ | |
enabled: true, | |
requireBase: false | |
}); | |
}); |
Works great! solved my migration issue from 1.2 to 1.3
Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Betty, nice post 😄 You have helped me too much.
Thanks ...