Is it possible to pass multiple values into a '.when' call during routing? For example,
$routeProvider
.when('/page1' || '/page2',
{
});
Or would I have to call them individually like:
$routeProvider
.when('/page1',
{
})
.when('/page2',
{
});
I'm able to call them individually, but I want only a specific set of top-level pages. I'm wanting to know if I can bundle to save ~15 lines of extra code, or if I will have to call them individually.