While exploring the ui-router
documentation, I came across an object called UrlMatcher. This object contains useful methods like exec
, but I am struggling to find clear instructions on how to access it. Nevertheless, the documentation page provides a detailed description of this object.
I wish to implement something similar to the following:
new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {
x: '1', q: 'hello'
});
Could someone please guide me on accessing this object?