nested view doesn't work using angularjs
问题 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