MCPcopy Index your code
hub / github.com/angular/angular / host

Method host

packages/common/upgrade/src/location_shim.ts:570–572  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

568 * ```
569 */
570 host(): string {
571 return this.$$host;
572 }
573
574 /**
575 * Retrieves the port of the current URL.

Callers 1

upgrade.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected