• Overview
@angular/common/upgrade

AngularJSUrlCodec

Class

A UrlCodec that uses logic from AngularJS to serialize and parse URLs and URL parameters.

  
    class AngularJSUrlCodec implements UrlCodec {
}

encodePath

string
@parampathstring
@returnsstring

encodeSearch

string
@paramsearchstring | { [k: string]: unknown; }
@returnsstring

encodeHash

string
@paramhashstring
@returnsstring

decodePath

string
@parampathstring
@paramhtml5Modeboolean
@returnsstring

decodeSearch

{ [k: string]: unknown; }
@paramsearchstring
@returns{ [k: string]: unknown; }

decodeHash

string
@paramhashstring
@returnsstring

normalize

2 overloads
@paramhrefstring
@returnsstring
@parampathstring
@paramsearch{ [k: string]: unknown; }
@paramhashstring
@parambaseUrlstring | undefined
@returnsstring

areEqual

boolean
@paramvalAstring
@paramvalBstring
@returnsboolean

parse

{ href: string; protocol: string; host: string; search: string; hash: string; hostname: string; port: string; pathname: string; }
@paramurlstring
@parambasestring | undefined
@returns{ href: string; protocol: string; host: string; search: string; hash: string; hostname: string; port: string; pathname: string; }
Jump to details