This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 3 files changed +4
-6
lines changed
docs/content/error/$location
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
@ngdoc error
2
2
@name $location:nobase
3
- @fullName $location in HTML5 mode requires a `< base>` tag to be present!
3
+ @fullName $location in HTML5 mode requires a < base> tag to be present!
4
4
@description
5
5
6
6
If you configure {@link ng.$location `$location`} to use
Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ function $LocationProvider() {
817
817
if ( html5Mode . enabled ) {
818
818
if ( ! baseHref && html5Mode . requireBase ) {
819
819
throw $locationMinErr ( 'nobase' ,
820
- "$location in HTML5 mode requires a < base> tag to be present!" ) ;
820
+ "$location in HTML5 mode requires a < base> tag to be present!" ) ;
821
821
}
822
822
appBase = serverBase ( initialUrl ) + ( baseHref || '/' ) ;
823
823
LocationMode = $sniffer . history ? LocationHtml5Url : LocationHashbangInHtml5Url ;
Original file line number Diff line number Diff line change @@ -2419,8 +2419,7 @@ describe('$location', function() {
2419
2419
$browser . $$baseHref = undefined ;
2420
2420
expect ( function ( ) {
2421
2421
$injector . get ( '$location' ) ;
2422
- } ) . toThrowMinErr ( '$location' , 'nobase' ,
2423
- "$location in HTML5 mode requires a <base> tag to be present!" ) ;
2422
+ } ) . toThrowMinErr ( '$location' , 'nobase' ) ;
2424
2423
} ) ;
2425
2424
} ) ;
2426
2425
@@ -2437,8 +2436,7 @@ describe('$location', function() {
2437
2436
$browser . $$baseHref = undefined ;
2438
2437
expect ( function ( ) {
2439
2438
$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' ) ;
2442
2440
} ) ;
2443
2441
} ) ;
2444
2442
You can’t perform that action at this time.
0 commit comments