Skip to content

Angular templates self closing tagsΒ #14168

@SebastianPodgajny

Description

@SebastianPodgajny

Prettier 2.8.2
Playground link

Input:

<app-test/>

Output:

SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
    | ^^^^^^^^^
  2 |

Expected behavior:
In Angular 15.1.0 developers are allowed to use self closed tags for custom elements angular/angular#48535
Prettier should support this feature

Metadata

Metadata

Assignees

Labels

lang:angularIssues affecting Angular template (not general JS/TS issues used for Angular)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions