$stateProvider .state('host', { abstract: true, template: '<header /><ui-view/> <footer/>' }) .state('sub', { parent: 'host' templateUrl: 'xxxxx' }) 用abstract和parent
用abstract和parent