@lahautesociete/data-store

1.0.0 • Public • Published

LHS - Vue - DataStore

Libraire utilitaire permettant de parcourir des objets littéraux à la manière de object-path.

Install

yarn add vue-data-store

Usage

Dans un composant Vue :

this.dataStore.get('key');

Dans un template :

<h1 v-text="dataStore('key.tutu.coucou')"></h1>

En vanilla JS :

import DataStore from '@lahautesociete/dataStore/DataStore';
DataStore.getData('key.tutu.coucou');

Readme

Keywords

Package Sidebar

Install

npm i @lahautesociete/data-store

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • lahautesociete