Skip to content

Variable: default ​

ts
const default: VueReActiveRecordPlugin;

The singleton instance of the VueReActiveRecordPlugin used as the default export.

Remarks ​

This instance is used internally by the plugin and is the recommended way to install the Vue ReActiveRecord plugin in your Vue application.

Example ​

typescript
import { createApp } from "vue";
import VueReActiveRecord from "@nhtio/vue-re-active-record";

const app = createApp({});
app.use(VueReActiveRecord, {
  models: {
    user: {
      schema: "++id, name, email",
      primaryKey: "id",
    },
  },
});

See ​

VueReActiveRecordPlugin