1👍
You have to just put you html in quotes like:
export default class Page {
static createPage() {
return (
`<p>hey</p>
<p>hey</p>
<p>hey</p>
<p>hey</p>
`
)
}
}
v-html
will parse it as html.
- [Vuejs]-How do I Notify the Client when a Payment Systems sends a Request to my API callback URL?
- [Vuejs]-Vue js put all text into a json file and import it
0👍
export default class Page {
static createPage() {
return (
"<p>hey</p>"
)
}
}
This should work perfectly fine. It will append the HTML string in the desired place.
Source:stackexchange.com