FastComments.com

FastComments Vue 2 Library

This is the official Vue 2 Library for FastComments.

FastComments commenting widgets for Vue 2

Repository

View on GitHub

Installation Internal Link

NPM

npm install --save fastcomments-vue

Yarn

yarn add fastcomments-vue

Updating The Current Page (SPA Example) Internal Link

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. Define the URL ID in the following manner. The component watches for changes in config object, and will reload, so you can just 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 Internal Link

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.

See the spinner example for how to do this.

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.