Defines whether URL matching should be case sensitive (the default behavior), or not.
Defines whether URL matching should be case sensitive (the default behavior), or not.
// Allow case insensitive url matches
urlService.config.caseInsensitive(true);
the current value of caseInsensitive
Creates a UrlMatcher for the specified pattern.
Creates a UrlMatcher for the specified pattern.
The URL pattern.
The config object hash.
The UrlMatcher.
Sets the default behavior when generating or matching URLs with default parameter values.
Sets the default behavior when generating or matching URLs with default parameter values.
// Remove default parameter values from the url
urlService.config.defaultSquashPolicy(true);
the current value of defaultSquashPolicy
Returns true if the specified object is a UrlMatcher, or false otherwise.
Returns true if the specified object is a UrlMatcher, or false otherwise.
The object to perform the type check against.
true
if the object matches the UrlMatcher
interface, by
implementing all the same methods.
Defines whether URLs should match trailing slashes, or not (the default behavior).
Defines whether URLs should match trailing slashes, or not (the default behavior).
// Allow optional trailing slashes
urlService.config.strictMode(false);
the current value of strictMode
Creates and registers a custom ParamType object
Creates and registers a custom ParamType object
A ParamType can be used to generate URLs with typed parameters.
The type name.
The type definition. See ParamTypeDefinition for information on the values accepted.
A function that is injected before the app runtime starts.
The result of this function should be a ParamTypeDefinition.
The result is merged into the existing definition
.
See ParamType for information on the values accepted.
name
parameter was specified: the currently registered ParamType object, or undefinedNote: Register custom types before using them in a state definition.
See ParamTypeDefinition for examples
Creates a new Param from a CONFIG block
Creates a new Param from a url PATH
Creates a new Param from a url SEARCH
Generated using TypeDoc
Factory for UrlMatcher instances.
The factory is available to ng1 services as
$urlMatcherFactor
or ng1 providers as$urlMatcherFactoryProvider
.