Clear canvas + canvas initially empty angular 2

Hi.i am using the bpmn lib in angular 2 code.i want to have a function,by calling which i can clear the canvas .Currently i am using the function
this.eventBus.fire('diagram.clear'); After firing the function,currently the canvas gets clear but it gets locked.No new shape is not being appearing on the canvas.Moreover i am using classCustomModeler in my angular code .Following is the code of initialization

this.modeler = new CustomModeler({
      container: '#canvas',
       keyboard: {
        bindTo: document
      },
      width: '100%',
      height: '600px',
      additionalModules: 
      [
        //comments,
        CustomPalette,
        {[InjectionNames.bpmnPropertiesProvider]: ['type', OriginalPropertiesProvider.propertiesProvider[1]]},
        {[InjectionNames.propertiesProvider]: ['type', CustomPropsProvider]}
      ],
      propertiesPanel: {
        parent: '#properties'
      },
      moddleExtension: {
        custom: customModdle
      }
    });
     

I want when my app is loaded,canvas on my application should be clear/empty.User can load their previous work by importing files and everything.Kindly help me in this regard
thanks

Hi @abdur91
I’m pretty sure you don’t have to fire the event via the eventBus for cleaning the canvas. See this for more information.

However can you give more code or a detailed test case so that we can help you in detail?