styles property

List<String> styles
final

A list of inline CSS styles to apply to this component.

Styles are scoped to this component based on the encapsulation strategy.

Example

@Component(
  selector: 'my-comp',
  template: '<h1>Hello</h1>',
  styles: ['h1 { color: red; }'],
)
class MyComponent {}

Implementation

final List<String> styles;