In the documentation of ui-router
there is a object named UrlMatcher which i need to access it in order to use some methods (such as exec
) but i cannot find any clear instructions on how to do it. However that object is described on the documentation page.
I want to be able to do something like:
new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {
x: '1', q: 'hello'
});
How can i access that object?