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
| Parameter | Type |
|---|---|
config | UrlMatcherCompilerConfig |
Returns
| Name | Type | Description | Defined in |
|---|---|---|---|
compile() | <M>(pattern, options?) => CompiledMatcher<M> | Compiles one pattern into a CompiledMatcher, with per-pattern UrlMatcherCompileOptions. | url-matcher.ts:663 |