vue-stars-rating
vue-stars-rating copied to clipboard
Bind config Object directoly to v-bind - better performance & default values
When binding it directly to v-bind, performance would be better, And I would be able to declarre default values in the props rather than have to set them during mount/created.
To sum up this refactor will grant:
- Better Performance - a more flatten mapping of the binded props compared to a Watch Deep mapping that is more resource consumable for vue virtual DOM
- Easyness of Usage - Access to default values, types and more on each binded prop without need to declare and use setters
- Readability & Cleanness of code - Less code in the template & more readible.
Example: Instead of this: <selector v-bind:configData=configData">
Write this
- Need to add support for Nested Object binding within the parent object to be binded.