Angular 17 — Simplifying style(s)

Nhan Nguyen - Nov 20 '23 - - Dev Community

Do you need one style URL or CSS style? — Angular 17 introduced an styleUrl attribute (singular) for a single style file:

Image description

And the other styles attribute has more flexibility as well as it now supports a single string or an array of strings, which means all options are available now:

Image description

Image description

A simple change that makes everything easier!


Let’s get connected! You can find me on:

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .