MCPcopy Create free account
hub / github.com/angular/angular / host

Method host

packages/common/upgrade/src/location_shim.ts:568–570  ·  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

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

Callers 1

upgrade.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected