We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of:
export default [ componentName ]
Would be great to be able to do:
export default { componentName }
The use case is that the component can then be much easier consumed from another component by name.
E.g.:
// component-two.ts import { componentOneService } from './component-one' // now can do something with component's data componentOneService.metadata.name
What do you think?
Can just maybe call Object.values() on the component default export, if it's not array.
Object.values()
The text was updated successfully, but these errors were encountered:
Instead of exporting all variables in default, you can use named exports.
default
// component-one.js export const componentOneService = new Service(); // component-two.js import { componentOneService } from './component-one';
Sorry, something went wrong.
Right, of course. But would kosko then pick them up? Or do I need to still have the default export with an array?
No branches or pull requests
Instead of:
Would be great to be able to do:
The use case is that the component can then be much easier consumed from another component by name.
E.g.:
What do you think?
Can just maybe call
Object.values()
on the component default export, if it's not array.The text was updated successfully, but these errors were encountered: