.ts ファイル
import { Component, ViewEncapsulation } from '@angular/core';
encapsulation: ViewEncapsulation.None を使用します
.ts ファイル
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class HeaderComponent {
}
.scss ファイル
app-header {
// your styles here and any child component styles can go here
}