How to restrict the character type sent per parameter in angularjs routes?
In the case below, the person could only enter numbers:
$routeProvider
.when('/atividade/:atividade/:secao/:edicao', {
templateUrl: PATH_DIR_PRO + "partials/angularjs_templates/quiz.html?v="+VERSION,
controller : 'QuizController'
})
It would look something like this:
/atividade/:atividade:\d+/:secao:\d+/:edicao:\d+