UNPKG

adonisjs-livewire

Version:

A front-end framework for AdonisJS

18 lines (17 loc) 454 B
import { store } from '../../store.js'; import { Decorator } from '../support_decorators/decorator.js'; export default class Layout extends Decorator { name; props; constructor(name = 'components/layouts/main', props = {}) { super(); this.name = name; this.props = props; } boot() { store(this.component).push('layout', { name: this.name, props: this.props, }); } }