-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Description
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
- I have run the project in my local machine and I could not reproduce the issue.
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
Labels
No labels