Skip to content

shashikant-wagh/props-to-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Props To Data

Props To Data

Table of Contents

Introduction

props-to-data is a MIT-licensed open source project, which help your Vue 2 components communicate effortlessly with each other via props without contaminating component data.

We are regulating components to follow law of demeter, which is most underrated but indeed one of the most important and integral part of clean code movement, which helps you to reach goal of better, cleaner architecture.

Installation

npm install props-to-data

Usage

  1. Import package.
import propsToData from 'props-to-data'
  1. Add following to mixins array.
mixins: [propsToData]
  1. Add following to your data object, within a component.
propsToData: {
    <prop-entity-name>: <data-entity-name>
}

References

About

migrating props data to component data without references

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published