我有这个:
@Component({
selector: 'host-element',
template: `<elementA></elementA>`,
styles:[''] //styles here
})
export class hostElement {}
如何从 host-element
定位 elementA
组件的样式?
提前致谢!
最佳答案
:host elementA {
// style here
}
关于angular - 如何从主机组件angular 2定位组件样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40383586/