Component inline styles
You can add a styles
array property to the @Component
decorator.
Each string in the array defines some CSS for this component.
@Component({
selector: 'app-demo',
template: `
<p>Demo component</p>
`,
styles: ['p { font-weight: bold; }']
})
export class DemoComponent {
/* . . . */
}