You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if we wanted to render ember in ember via modifier (silly):
196
+
```gjs
197
+
import { modifier } from 'ember-modifier';
198
+
import { destroy } from '@ember/destroyable';
199
+
import { renderComponent from '@ember/renderer';
200
+
201
+
const Demo = <template>hi</template>;
202
+
const render = modifier((element) => {
203
+
let result = renderComponent(Demo, {
204
+
owner,
205
+
env: { document: document, isInteractive: true },
206
+
into: element,
207
+
});
208
+
209
+
return () => result.destroy();
210
+
});
211
+
212
+
213
+
<template>
214
+
<div {{render}}></div>
215
+
</template>
216
+
```
217
+
218
+
184
219
## How we teach this
185
220
186
221
`renderComponent` is meant as an integration-enabling API and would not be added to the guides, or need any documentation beyond what would live in source on the function itself.
0 commit comments