I'm using AnglarJs and Angular UI Router for my project. I'm using parameters for my route such as:
url: '/content/:categoryId/:categoryType'
But I got problem when using url:
url: '/content/detail/:contentId'
It seem Angular UI Router can not recognize the difference of these 2. Then I decide to use regexp parameter for all of them
url: '/content/{categoryId:int}/{categoryType:int}'
url: '/content/detail/{contentId:int}'
The second url is ok but Angular UI Router can not recognize the first one when I using ui-sref:
<a ui-sref="firstUrl({categoryId: 1, categoryType: 2})">Anchor</a>
Was Angular UI router support just one regexp parameter?