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:661

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

NameTypeDescriptionDefined in
compile()<M>(pattern, options?) => CompiledMatcher<M>Compiles one pattern into a CompiledMatcher, with per-pattern UrlMatcherCompileOptions.url-matcher.ts:663