Currently, I am utilizing the following URL in my state setup:
.state('forum.spesific', {
url: '/:articleId',
templateUrl: 'modules/forum/client/views/forum.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})
.state('forum.spesific2', {
url: '/:articleId',
templateUrl: 'modules/forum/client/views/forum2.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})
Is there a way to configure one of these states to only accept numeric values for the :articleId parameter, while the other can accept a mix of numbers and characters?
For example:
.state('forum.spesific', {
url: '/:articleId NUMERIC VALUES ONLY',
templateUrl: 'modules/forum/client/views/forum.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})
.state('forum.spesific', {
url: '/:articleId MIXED (must contain both)',
templateUrl: 'modules/forum/client/views/forum2.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})