Dmn-js Moduler with Angular 5

Hi,

i have followed this link https://github.com/HariDongli/dmn-js-angular-stack

to get working Modualr dmnjs ,

but ,when i have triyed to modifed same code to work with editor /Moduler i have not able to get always its giving Viewer option
i want to achieve something like https://rawgit.com/dmn-io/dmn-js-examples/master/starter/modeler.html
here is the attached screens

image

image
image

Due to the index.js you’ll always get the viewer when importing it like this.

Here’s how to import the modeler instead:

import Modeler from 'dmn-js/lib/Modeler';

Thanks a lot ,yes it works