mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-19 18:00:34 +03:00
docs: update docs with new features (#416)
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
# How to prevent update on page load
|
||||
|
||||
Add the `data-vue-meta-server-rendered` attribute to the `<html>` tag on the server-side:
|
||||
In your template call the text method of `htmlAttrs` with `true` as first argument:
|
||||
```
|
||||
<html {{ htmlAttrs.text(true) }}>
|
||||
...
|
||||
```
|
||||
|
||||
```html
|
||||
<html data-vue-meta-server-rendered>
|
||||
Or manually add the [`data-vue-meta-server-rendered`](/api/#ssrattribute) attribute to the `<html>` tag on the server-side:
|
||||
|
||||
```
|
||||
<html data-vue-meta-server-rendered <%= meta.htmlAttrs.text() %>>
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user