@lahautesociete/data-store
v1.0.0
Published
Libraire utilitaire permettant de parcourir des objets littéraux à la manière de object-path.
Downloads
4
Readme
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');