vue-inline-data

0.6.0 • Public • Published

vue-inline-data - experimental

Screenshopt

Install

<script src="https://unpkg.com/vue@2.6" defer></script>
<script src="https://unpkg.com/vue-inline-data" defer></script>

Usage

Simple

<div vi-data="{ open: false }">
  <button @click="open = true">Open Dropdown</button>

  <ul v-show="open" @click="open = false">
    Dropdown Body
  </ul>
</div>

Nested - Components

<div vi-data>
  <div vi-data="{ message : 'my-message'}">{{ message }}</div>
  <div vi-data="{ count : 10}" vi-name="ComponentNameCounter">{{ count }}</div>
</div>

Component Props

<div vi-data="{ count : 10}">
  <div vi-data vi-props="['value']" :value="count">
    {{ value }}
  </div>
</div>

Readme

Keywords

Package Sidebar

Install

npm i vue-inline-data

Weekly Downloads

13

Version

0.6.0

License

none

Unpacked Size

147 kB

Total Files

17

Last publish

Collaborators

  • kabbouchi