I am building an AngularJS page using UI router for routing. My problem is that when I reload a page with a parameter the css stylesheet is lost :(
The css file is referenced in my index.html like:
<link href="Content/css/style.css" rel="stylesheet" />
And my route config looks like:
.state('member', {
url: '/member/:userId',
views: {
'content': {
templateUrl: 'app/views/member.html',
controller: 'memberController'
}
},
data: {
access: 'access.user'
}
})
I also have html5mode(true) if thats make a difference. I have googled a lot without finding anyone else having this problem which leads me to the conclusion that I have completely misunderstood something :) Anyone who can point me in the right direction here?