I'm using the $routeProvider
and I want the route to load a different view depending on what is passed:
when('/tx/:txid', {
templateUrl: '/views/tx/view.html'
}).
If txid
matches a certain pattern, it should load one view. If it matches a different pattern, it should load a different view. Is this possible?