Skip to content

Commit bccba50

Browse files
committed
spa example
1 parent 1d5e42d commit bccba50

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ export default Vue.extend({
5050
</template>
5151
```
5252

53+
## Updating The Current Page (SPA Example)
54+
55+
In FastComments we call the article id, or page the comments get tied to, the URL ID as it can be a url or an ID.
56+
Define the URL ID in the following manner. The component watches for changes in config object, and will reload, so you can update the URL ID.
57+
58+
```vue
59+
<fast-comments-vue v-bind:config="{tenantId: 'demo', urlId: 'some-page-id'}" />
60+
```
61+
62+
5363
## Contributing
5464
Please checkout our [contribution guidelines](CONTRIBUTING.md) before starting on a change. Remember to communicate first!
5565

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastcomments-vue",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"author": "winrid",
55
"license": "MIT",
66
"repository": "fastcomments/fastcomments-vue",

0 commit comments

Comments
 (0)