We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 368039b commit 4dfb80dCopy full SHA for 4dfb80d
src/ng/location.js
@@ -412,15 +412,15 @@ var locationPrototype = {
412
* This method is getter only.
413
*
414
* Return host of current url.
415
- *
+ *
416
* Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.
417
418
419
* ```js
420
* // given url http://example.com/#/some/path?foo=bar&baz=xoxo
421
* var host = $location.host();
422
* // => "example.com"
423
424
* // given url http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
425
* host = $location.host();
426
0 commit comments