Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$locationProvider.html5Mode is now an object. #1413

Closed
tolysz opened this issue Sep 29, 2014 · 2 comments
Closed

$locationProvider.html5Mode is now an object. #1413

tolysz opened this issue Sep 29, 2014 · 2 comments

Comments

@tolysz
Copy link

tolysz commented Sep 29, 2014

Hi,
with the latest AngularJS ( https://docs.angularjs.org/api/ng/provider/$locationProvider )
html5Mode() is an Object!

Something like:

var tmpHtml5 = $locationProvider.html5Mode();
var isHtml5 = isObject(tmpHtml5) ? tmpHtml5.enabled : tmpHtml5;

would do, or whatever nicer way you prefer.

@nateabele
Copy link
Contributor

Fixed in 7fea1e9.

@tolysz
Copy link
Author

tolysz commented Sep 30, 2014

Nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants