2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 11:10:34 +03:00

example: add falsy attr vlaue to ssr example

This commit is contained in:
pimlie
2020-04-05 12:19:08 +02:00
parent 1ef41080e7
commit f0eeacaa02
+8 -1
View File
@@ -69,7 +69,7 @@ export default function createApp () {
return { return {
title: 'Boring Title', title: 'Boring Title',
htmlAttrs: { amp: true }, htmlAttrs: { amp: true },
bodyAttrs: { class: 'main-app' }, bodyAttrs: { class: 'main-app', tabIndex: 0 },
meta: [ meta: [
{ {
skip: this.count < 1, skip: this.count < 1,
@@ -106,7 +106,14 @@ export default function createApp () {
callback: this.loadCallback callback: this.loadCallback
} }
], ],
noscript: [{
innerHTML: "<strong>This website requires JavaScript.</strong>",
body: true,
hid: 'test'
}],
__dangerouslyDisableSanitizersByTagID: { __dangerouslyDisableSanitizersByTagID: {
test: ['innerHTML'],
'ldjson-schema': ['innerHTML'] 'ldjson-schema': ['innerHTML']
} }
} }