object-visualizer
object-visualizer copied to clipboard
Web Component / Custom Element
Wouldn't it be nice to create a component to just use data as a prop? And there no need to use it in the js. If you agree i could do that =)
Thanks. To add custom element would be a key feature, but there should remain the mount method, due to somebody would want to mount to existing node or do something dynamically.
In the meantime, maybe add to the README.md file a directive workaround. Something like:
import {mount} from 'object-visualizer'
...
app.directive('json-tree', (el, bind) => {
mount(bind.value, el)
})
And to use:
<div v-json-tree="OBJECT"></div>