Skip to content

docs: how to render an entire application as custom element in another apps #16

@billyjov

Description

@billyjov

Hi, thanks for this addon. I want to how i can build my app in other to render this in another react app.
I did following like described in the README

app.js:

import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'ember-app/config/environment';
import { customElement } from 'ember-custom-elements';

@customElement('ember-app')
export default class App extends Application {
  modulePrefix = config.modulePrefix;
  podModulePrefix = config.podModulePrefix;
  Resolver = Resolver;

  // needed for custom elements
  autoboot = false;
}

loadInitializers(App, config.modulePrefix);

Then i ran ember build.

Import dist/vendor.js and dist/ember-app.js in my react app does not work to render <ember-app></ember-app>.

Is there a way to archieve this using the addon?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions