Angular Formatter

Format common code, data, markup, and document languages locally in your browser.

About Angular Formatter

Angular Formatter indents Angular component templates: it puts each tag on its own line and indents nested elements by two spaces, so a one-line <div *ngIf="user"><span>{{ user.name }}</span></div> becomes readable. It does not reformat TypeScript; use the TypeScript formatter for component classes.