Skip to content

ui-router-server / matcher / urlMatcherFactory

Function: urlMatcherFactory()

ts
function urlMatcherFactory(config?): {
  compile: <M>(pattern, options?) => CompiledMatcher<M>;
};

Defined in: url-matcher.ts:648

Creates a matcher compiler — named for core's UrlMatcherFactory, whose defaults it keeps: strict trailing-slash matching, case-sensitive, percent-decoding on, and a default squash policy of false.

Parameters

ParameterType
configUrlMatcherCompilerConfig

Returns

ts
{
  compile: <M>(pattern, options?) => CompiledMatcher<M>;
}
NameTypeDefined in
compile()<M>(pattern, options?) => CompiledMatcher<M>url-matcher.ts:649