Skip to content

Angular 19 #1645

@EliseoPlunker

Description

@EliseoPlunker

Describe the bug

No allow add styles in component, only use global styles is allowed.

Link to the blitz that caused the error

https://stackblitz.com/edit/stackblitz-starters-kgufne

Steps to reproduce

1.-Create a new Angular Project
2.-Add styles to your component so becames like

@Component({
  selector: 'app-root',
  styles:[`
       a{color:red}
  `],
  template: `
    <h1>Hello from {{ name }}!</h1>
    <a target="_blank" href="https://angular.dev/overview">
      Learn more about Angular
    </a>
  `,
})
export class App {
  name = 'Angular';
}

Expected behavior

Happens recently with Angular 19

Parity with Local

Screenshots

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions