Skip to content

html5Mode on AngularJS 1.3.0 #1458

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

Closed
metrophos opened this issue Oct 16, 2014 · 1 comment
Closed

html5Mode on AngularJS 1.3.0 #1458

metrophos opened this issue Oct 16, 2014 · 1 comment

Comments

@metrophos
Copy link

On AngularJS 1.3.0-rc.3 and above the html5Mode() response are changed.
This are used in $state.href function.

$location: due to dc3de7fb, The $location.html5Mode API has changed to allow enabling html5Mode by passing an object (as well as still supporting passing a boolean). Symmetrically, the method now returns an object instead of a boolean value.

To migrate, follow the code example below:

Before:
var mode = $locationProvider.html5Mode();

After:
var mode = $locationProvider.html5Mode().enabled;

@nateabele
Copy link
Contributor

Already fixed on master. Thanks.

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