AngularJSUrlCodec
Class
A UrlCodec
that uses logic from AngularJS to serialize and parse URLs
and URL parameters.
API
class AngularJSUrlCodec implements UrlCodec {}
encodePath
string
@parampath
string
@returns
string
encodeSearch
string
@paramsearch
string | { [k: string]: unknown; }
@returns
string
encodeHash
string
@paramhash
string
@returns
string
decodePath
string
@parampath
string
@paramhtml5Mode
boolean
@returns
string
decodeSearch
{ [k: string]: unknown; }
@paramsearch
string
@returns
{ [k: string]: unknown; }
decodeHash
string
@paramhash
string
@returns
string
normalize
2 overloads
@paramhref
string
@returns
string
@parampath
string
@paramsearch
{ [k: string]: unknown; }
@paramhash
string
@parambaseUrl
string | undefined
@returns
string
areEqual
boolean
@paramvalA
string
@paramvalB
string
@returns
boolean
parse
{ href: string; protocol: string; host: string; search: string; hash: string; hostname: string; port: string; pathname: string; }
@paramurl
string
@parambase
string | undefined
@returns
{ href: string; protocol: string; host: string; search: string; hash: string; hostname: string; port: string; pathname: string; }
Jump to details