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

enter image description here

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.

share|improve this question
1  
Can your provide fiddle and plunker link apart from the repo ?? – Sameer K 17 hours ago
    
You are expecting the CSS rules applied on the parent view to get applied to the child view, am I right? – Sohan Shirodkar 17 hours ago
    
@SohanShirodkar correct. – Maria Jane 17 hours ago
    
@SameerK plunker doesn't support nagivate – Maria Jane 17 hours ago
1  
plunker does support. Here is the link plnkr.co/edit/SDOcGS?p=preview – Sameer K 17 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.