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

preview-component appears to not exist / there is no way to render only with JS #115

Open
NullVoxPopuli opened this issue Nov 15, 2021 · 1 comment

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Nov 15, 2021

for example, I wanted this:

```js preview-component
import Title from 'my-library';
import Component from '@glimmer/component';
import { hbs } from 'ember-cli-htmlbars';
import { setComponentTemplate } from '@ember/component';

export default setComponentTemplate(
  hbs`<this.Title />`,
  class extends Component {
    Title = Title;
  },
);
```

But it only renders the code, and doesn't actually invoke <Title />

@NullVoxPopuli
Copy link
Contributor Author

a reason I want/need this behavior, is because I'd like to be able to have addons provide example components that hack at internal data structures for documentation / demonstration purposes (esp w/r/t design) -- rendering parts of a component is not an option, because those parts are not public API)

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

No branches or pull requests

1 participant