-1

I have a Vue application (2.6.0) which I've just started commenting the template for. I'm using this sort of comment syntax:

        <--! This component maps communities and allows you to add new ones -->

Unfortunately, it is showing up inside my components when rendered. How do I make this stop?

Boris K
  • 3,442
  • 9
  • 48
  • 87
  • Can you please provide more context to it? Can you paste the full code of the component. Those comments should work, if they are in ` – Ben Mar 16 '20 at 21:47
  • These comments are in the – Boris K Mar 16 '20 at 21:54
  • Take a look at this https://stackoverflow.com/questions/41228833/how-to-comment-code-in-a-vue-js-file – Ben Mar 16 '20 at 21:57
  • That's odd, comments are not rendered by default unless you specified [`comments: true`](https://vuejs.org/v2/api/#comments). Is it a single file component built with webpack? – Decade Moon Mar 16 '20 at 21:58
  • It is built with Vue CLI, and I'm running the dev version with npm run serve. – Boris K Mar 17 '20 at 14:37

1 Answers1

1

It looks like you have a syntax error:

<--! This component maps communities and allows you to add new ones -->
^^^^

It should be

<!--
Decade Moon
  • 32,968
  • 8
  • 81
  • 101