Last active
October 14, 2020 13:46
-
-
Save ljmotta/ff1aa734faa7b243cbef384eca379bc9 to your computer and use it in GitHub Desktop.
TodoListEnvelope Start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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