* Retrieves the protocol of the current URL. * * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this * returns the `hostname` portion only. * * * ```js * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo * let host = $locati
()
| 568 | * ``` |
| 569 | */ |
| 570 | host(): string { |
| 571 | return this.$$host; |
| 572 | } |
| 573 | |
| 574 | /** |
| 575 | * Retrieves the port of the current URL. |