angular-template-formatter icon indicating copy to clipboard operation
angular-template-formatter copied to clipboard

Support for Inline templates

Open sagar-ganatra opened this issue 6 years ago • 4 comments

Can you support the functionality for inline templates?

sagar-ganatra avatar May 14 '18 05:05 sagar-ganatra

I would like that feature too, i didn't find any way to do that currently.

quentinfau avatar May 16 '18 13:05 quentinfau

you mean the template in:

@Component({
    ...
    template: `<div>
    <p>This is my template</p>
</div>`,
    ...
})

I have no plans to implement this, but would be happy to accept a pull request.

One challenge with doing it in vscode is that many people have auto formatters for their typescript or javascript, and you can't currently run two separate formatters on the same file.

stringham avatar May 16 '18 15:05 stringham

Too bad, thanks anyway

quentinfau avatar May 17 '18 06:05 quentinfau

I also would love this.

michael-mcmasters avatar Sep 26 '20 18:09 michael-mcmasters