Is there a way in angular, when given the following route
.when('/customer/:customerId', {
templateUrl: 'views/summary.tpl.html',
controller: 'SummaryController'
})
to be able to test if a string matches that route?
For example with the string
'/customer/3'
is there a function in angular that I can call to determine if the route matches a route or not?