You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a component and use template literals for the styles/styleUrl proeprty:
@Component({standalone: true,selector: 'bar',templateUrl: `./bar.component.html`,styleUrl: `./bar.component.scss`,// we have to setup styles this way, since simple styles/styleUrs properties will be removed (jest does not unit test styles)styles: ` p { color: red; } `,})exportclassStringStylesBarComponent{constructor(@Inject(DATA_TOKEN)publicdata: ServerError){}}
Expected behavior
Should work just like when using strings.
Actual behavior
Component 'StringStylesBarComponent' is not resolved:
- styleUrl: ./bar.component.scss
Did you run and wait for 'resolveComponentResources()'?
Version
14.2.2
Steps to reproduce
Define a component and use template literals for the styles/styleUrl proeprty:
Expected behavior
Should work just like when using strings.
Actual behavior
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: