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

Method parse

packages/router/src/url_tree.ts:474–477  ·  view source on GitHub ↗

Parses a url into a `UrlTree`

(url: string)

Source from the content-addressed store, hash-verified

472export class DefaultUrlSerializer implements UrlSerializer {
473 /** Parses a url into a `UrlTree` */
474 parse(url: string): UrlTree {
475 const p = new UrlParser(url);
476 return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());
477 }
478
479 /** Converts a `UrlTree` into a url */
480 serialize(tree: UrlTree): string {

Callers

nothing calls this directly

Calls 3

parseRootSegmentMethod · 0.95
parseQueryParamsMethod · 0.95
parseFragmentMethod · 0.95

Tested by

no test coverage detected