Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier does not support new angular template syntax #3550

Open
marekdon opened this issue Oct 17, 2024 · 1 comment
Open

Prettier does not support new angular template syntax #3550

marekdon opened this issue Oct 17, 2024 · 1 comment
Labels

Comments

@marekdon
Copy link

marekdon commented Oct 17, 2024

Summary

Since angular 17, we can use new template syntax. Prettier does not seem to format html document in a proper way, when new template syntax is present.

Github Repository to Reproduce Issue

Screenshot attached

Steps To Reproduce:

  1. Use new template syntax in angular project
  2. Save the document

Expected result

@if (true) {
  <div>
    @if (true) { 
      @if (true) {
        <div></div>
      }
    }
  </div>
}

Actual result

@if (true) {
<div>
  @if (true) { @if (true) {
  <div> </div>
  } }
</div>
}

Additional information

image

VS Code Version:

Version: 1.94.0 (Universal)

Prettier Extension Version:

v.11.0.0

OS and version:

iOS 15.0.1 (24A348)

Prettier Log Output

{
  "parser": "angular",
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "es5",
  "semi": true,
  "singleQuote": true,
  "arrowParens": "always"
}
Copy link

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.

@github-actions github-actions bot added the Stale label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant