Nuxt.js
Installation
Installation with yarn
Installation with npm
GitHub Repo
The Nuxt.js Project
Setup
nuxt.config.js
Usage
The comfortable-nuxt module is a wrapper for the comfortable-javasctipt SDK. The documentation with methods and examples for the JavaScript SDK can be found here: https://docs.comfortable.io/sdk/javascript
The nuxt module initializes the SDK automatically and exposes API methods as $cmft
as a Promise.
SDK Methods like filters and sorting are exposed as $Comfortable
.
Examples
For the following examples we'll use the await
operator and fetch content for a page, but you can use $cmft
like a regular promise with any component.
Fetching documents for a page
Fetching a collection
Fetching a single document
Fetching a document with alias
Last updated