
Language 🇺🇸 English (US)
Documentation
Getting Started
Usage
Add Comments to Your Vue 2 App
This is the official Vue 2 library for FastComments.
FastComments commenting widgets for Vue 2
Repository
Live Showcase 
To see every widget and flow running locally against the public demo tenant, clone the repo and run:
npm install
npm run serve
Individual demos also have their own entry points (npm run serve-collab-chat, serve-live-chat, serve-image-chat, serve-pagination, serve-toggle-dark-mode) under dev/.
Usage 
The Comment Widget
The FastCommentsVue component contains the live FastComments comment widget.
Replace "demo" below with your "tenantId" - available here in the FastComments admin area.
The widget supports a lot of options - see FastCommentsConfig here.
<script lang="ts">
import Vue from 'vue';
import FastCommentsVue from 'fastcomments-vue';
export default Vue.extend({
name: 'ServeDev',
components: {
FastCommentsVue
}
});
</script>
<template>
<div id="app">
<fast-comments-vue v-bind:config="{tenantId: 'demo'}" />
</div>
</template>
Updating The Current Page (SPA Example) 
In FastComments, we call the article ID, or the page the comments are tied to, the URL ID, since it can be a URL or an ID. Define the URL ID as follows. The component watches for changes in the config object and will reload, so you can simply update the "url" and "urlId" settings.
See a full working example here.
Run the pagination example via:
npm run serve-pagination<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id'}" />
Account Region (ATTENTION: EU Customers)
If your account is located in the EU, set region = 'eu' in the widget configuration, for example:
<fast-comments-vue v-bind:config="{tenantId: 'demo', url: 'https://example.com', urlId: 'some-page-id', region: 'eu'}" />
Otherwise, you do not have to define region.
In Production 
You probably don't want to define the config inline if you're passing callbacks etc. Instead, you'll want to define
the config in a computed block, otherwise each time your callback etc is invoked the entire widget will re-render.
Maintenance Status 
These components are wrappers around our core VanillaJS components. We can automatically update these components (fix bugs, add features) without publishing this library, so while it may not be published for a while that does not mean FastComments is not under active development! Feel free to check our blog for updates. Breaking API changes or features will never be shipped to the underlying core library without a version bump in this library.
Need Help?
If you encounter any issues or have questions about the Vue 2 Library, please:
Contributing
Contributions are welcome! Please visit the GitHub repository for contribution guidelines.