/mahal-store

Store module for mahal framework

Primary LanguageTypeScriptApache License 2.0Apache-2.0

OSNFT npm version TEST

mahal-store

Store module for mahal framework

Install

npm i @mahaljs/store

Setup

import { Mahal } from "mahal";
import Main from "@/components/main.mahal";
import MahalStore from "@mahaljs/store";
import store from "@/store";

export const app = new Mahal(Main, '#app');

// add mahal store as plugin
app.extend.plugin(MahalStore, store);

app.create();

Docs

https://mahaljs.com/docs/store/