UI-Router inheriting views
问题 i'm beginning to have some serious repetitions in my code. Is there any way to declare a father view that outer views will inherit from ? my code is as below : var header = { templateUrl: "partials/header/header.html"}; var footer = { templateUrl: "partials/footer/footer.html"}; $stateProvider .state('main', { url: "/", views: { "header": header, "mainContent": { templateUrl: "partials/mainContent.html"}, "footer": footer } }) .state('lesson', { url: "/lesson", views: { "header": header,