Currently as far as I can tell this is not possible.
I would imagine it would be something like:
<p>Hello World</p>
<script>
export const meta = 'my meta data'
export default {...}
</script>
Then you could consume this programatically like so:
import MyComponent, { meta } from './my-component.html'
console.log(meta)
I think this would be handy to have and am curious what others think and if there are other ways to achieve this effect (perhaps using methods as getters).
Currently as far as I can tell this is not possible.
I would imagine it would be something like:
Then you could consume this programatically like so:
I think this would be handy to have and am curious what others think and if there are other ways to achieve this effect (perhaps using methods as getters).