I'm using ui-router, but one strange thing happens, the style which i put in 'parent' doesn't get loaded.
Here's how my folder and files look like
my route.js look like this
.state("home", {
url: "/",
templateUrl: "index.html"
})
.state("dashboard", {
url: "/dashboard",
views:{
templateUrl: "layout.html"
}
})
.state("dashboard.index", {
views:{
templateUrl: "dashboard/index.html"
}
})
I expect layout.html can be the wrap of every module, like I have dashboard module, and module can have many sub-modules but still use the style which located in layout.html.
I've stuck for 6 hours, I need help, I posted my repo here.