I am using the following url in my state:
.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',
})
how can i make one of them rely on that the :articleId is only number, and the other mix of numbers and characters?
like:
.state('forum.spesific', {
url: '/:articleId ONLY BY NUMBER',
templateUrl: 'modules/forum/client/views/forum.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})
.state('forum.spesific', {
url: '/:articleId BOTH ( have to be both)',
templateUrl: 'modules/forum/client/views/forum2.client.view.html',
controller: 'forumController',
controllerAs: 'vm',
})