David W. answered 01/12/21
Senior Software Engineer specializing in web development
You can add a style attribute to the elements in your Angular template, though it is strongly recommended that you separate your style code into a separate file (SCSS or LESS) that is associated with your component. If your component is named "foo", then in the component's TypeScript definition, you could add the following in the @Component section:
And then you can write whatever style code you want in that .scss file.