nast

1.0.19 • Public • Published

nast

Installation

npm i -S nast

Basic usage

import NastCore from 'nast'

const settings = {
  routes: [
    { path: '', component: () => import('./App'), children: [
      { path: '/', name: 'index', component: () => import('./HelloWorld'), title: 'Главная', },
      { path: '/about', name: 'about', component: () => import('./About'), parent: 'index', title: 'О странице', },
    ], },
  ],
  stores: {
    app: {
      state: {
        user: {},
      },
      mutations: {
        user(state, value) {
          state.user = value
        },
      },
      namespaced: true,
    },
  },
}

NastCore.createApp(settings)

Readme

Keywords

Package Sidebar

Install

npm i nast

Weekly Downloads

62

Version

1.0.19

License

MIT

Unpacked Size

9.07 kB

Total Files

5

Last publish

Collaborators

  • alex-nova
  • alexey-renova