Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 14, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/ff1aa734faa7b243cbef384eca379bc9 to your computer and use it in GitHub Desktop.
Save ljmotta/ff1aa734faa7b243cbef384eca379bc9 to your computer and use it in GitHub Desktop.
TodoListEnvelope Start
import { EnvelopeBus } from "@kogito-tooling/envelope-bus/dist/api";
import { TodoListEnvelopeApiImpl } from "./TodoListEnvelopeApiImpl";
import { TodoListEnvelopeContext } from "./TodoListEnvelopeContext";
export function init(args: { container: HTMLElement; bus: EnvelopeBus }) {
// ...
const context: TodoListEnvelopeContext = {};
return envelope.start(envelopeViewDelegate, context, {
create: (apiFactoryArgs) => new TodoListEnvelopeApiImpl(apiFactoryArgs),
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment