Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Component / Custom Element #3

Open
schirrel opened this issue Jul 17, 2020 · 2 comments
Open

Web Component / Custom Element #3

schirrel opened this issue Jul 17, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@schirrel
Copy link
Contributor

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 =)

@soc221b
Copy link
Owner

soc221b commented Jul 18, 2020

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.

@soc221b soc221b changed the title Web Componente / Custom Element Web Component / Custom Element Jul 18, 2020
@soc221b soc221b added the enhancement New feature or request label Jul 18, 2020
@tbarkai
Copy link

tbarkai commented May 23, 2022

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants