This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat($location): add ability to opt-out of <base/> tag requirement in…
… html5Mode This feature allows disabling Angular's requirement of using a <base/> tag when using location in html5Mode, for applications that do not require using $location in html5Mode in IE9. To accomplish this, the $locationProvider.html5Mode method has been changed to accept a definition object which can optionally set a requireBase property to false, removing the requirement of a <base> tag being present when html5Mode is enabled. BREAKING CHANGE: 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; Fixes #8934
- Loading branch information
1 parent
ace40d5
commit dc3de7f
Showing
4 changed files
with
155 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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