I want to redirect multiple url for $routeProvider. How can I apply this? For example, I am trying like this,
.when('/laptop' || '/mobile', {
templateUrl: '/Selection_Routing/Selection_Product/ProductDetails.html',
controller: 'ProductDetailsController'
})
Please note that I want to redirect either /laptop or /mobile url, but it is not working. Any suggestion?
I do something similar with UI Router.
You should be able to adapt this easily.