Answer the question
In order to leave comments, you need to log in
Why does :host work inside component styles, but its (component) selector doesn't?
Angular 6.0
I'm creating internal styles for a component, but I can't use its (component) selector inside a .scss file.
Moreover, this selector is not selected, both inside the component styles and global styles.
Component declaration:
@Component({
selector: 'dashboard',
templateUrl: 'dashboard.html',
styleUrls: ['dashboard.scss'],
})
.dashboard {
color: red;
}
:host {
color: red;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question