Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Minor fixes in $location #9520

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ng/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ function $LocationProvider(){
* whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are
* true, and a base tag is not present, an error will be thrown when `$location` is injected.
* See the {@link guide/$location $location guide for more information}
* - **rewriteLinks** - `{boolean}` - (default: `false`) When html5Mode is enabled, disables
* url rewriting for relative linksTurns off url rewriting for relative links.
* - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled,
* enables/disables url rewriting for relative links.
*
* @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter
*/
Expand All @@ -671,15 +671,15 @@ function $LocationProvider(){
} else if (isObject(mode)) {

if (isBoolean(mode.enabled)) {
html5Mode.enabled = mode.enabled;
html5Mode.enabled = mode.enabled;
}

if (isBoolean(mode.requireBase)) {
html5Mode.requireBase = mode.requireBase;
}

if (isBoolean(mode.rewriteLinks)) {
html5Mode.rewriteLinks = mode.rewriteLinks;
html5Mode.rewriteLinks = mode.rewriteLinks;
}

return this;
Expand Down