Dmn-js Moduler with Angular 5


i have followed this link

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
here is the attached screens



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