I ny view I have: <a ui-sref="app.file({path: file.path})">{{ file.path }}</a>
file.path
is html/hero-sidebar.html
My state is defined as:
.state('app.file', {
url: '/file/*path'
views:
repositoryView:
templateUrl: '/templates/app/_file.html'
})
But when I click the link, it goes to http://localhost:9001/app/file/html%252Fhero-sidebar.html
What I want is for it to go to http://localhost:9001/app/file/html/hero-sidebar.html
Is this possible using ui-router with AngularJS?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…