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

Commit 6269d39

Browse files
committed
docs($location): fix tag in nobase description
1 parent 4e94864 commit 6269d39

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

docs/content/error/$location/nobase.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@ngdoc error
22
@name $location:nobase
3-
@fullName $location in HTML5 mode requires a `<base>` tag to be present!
3+
@fullName $location in HTML5 mode requires a &lt;base&gt; tag to be present!
44
@description
55

66
If you configure {@link ng.$location `$location`} to use

src/ng/location.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ function $LocationProvider() {
817817
if (html5Mode.enabled) {
818818
if (!baseHref && html5Mode.requireBase) {
819819
throw $locationMinErr('nobase',
820-
"$location in HTML5 mode requires a <base> tag to be present!");
820+
"$location in HTML5 mode requires a &lt;base&gt; tag to be present!");
821821
}
822822
appBase = serverBase(initialUrl) + (baseHref || '/');
823823
LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url;

test/ng/locationSpec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2419,8 +2419,7 @@ describe('$location', function() {
24192419
$browser.$$baseHref = undefined;
24202420
expect(function() {
24212421
$injector.get('$location');
2422-
}).toThrowMinErr('$location', 'nobase',
2423-
"$location in HTML5 mode requires a <base> tag to be present!");
2422+
}).toThrowMinErr('$location', 'nobase');
24242423
});
24252424
});
24262425

@@ -2437,8 +2436,7 @@ describe('$location', function() {
24372436
$browser.$$baseHref = undefined;
24382437
expect(function() {
24392438
$injector.get('$location');
2440-
}).not.toThrowMinErr('$location', 'nobase',
2441-
"$location in HTML5 mode requires a <base> tag to be present!");
2439+
}).not.toThrowMinErr('$location', 'nobase');
24422440
});
24432441
});
24442442

0 commit comments

Comments
 (0)