My router looks like that:
.state('project', {
'url': '/project/*path',
'controller': 'ProjectController',
'templateUrl': '/pages/project.html',
});
but when I use
ui-sref="project({path: mypath})"
with mypath=part1/part2
I expect the it to turn into /project/part1/part2
but instead i get /project/part1%252Fpart2
.
How can I make it pass parameter without encoding it ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…