I'm trying to constrain a route so only '/route1'
or '/route2'
resolve to the following rule:
$stateProvider.state("promotional", {
url: "/{contentType}",
templateUrl: coreConfig.path() + "/modules/content/content.tmpl.html",
controller: "promotionalController",
controllerAs: "contentCtrl",
data: { requiresLogin: true }
});
for url
I've tried
url: "/{contentType: (route1|route2)}"
url: "/{contentType: [(route1|route2)]}"
url: "/{contentType: [route1|route2]}"
and none of these seemed to work. Any solutions?