Load component dynamically with angle 6

1

I need to load components dynamically, I am using jsPanel to create a window and would like to pass which module will be created inside this window. It is possible to do this, below code snippet, openWindow is called from a button, my-component is any of the components of my application that I need to load into the contents of the panel that will be opened. p>

openWindow(event) {
  jsPanel.create({
    theme: 'gainsboro',
    headerTitle: 'my panel #1',
    position: 'center-top 0 58',
    contentSize: '450 250',
    content: '<meu-component></meu-component>',
  });}
    
asked by anonymous 20.05.2018 / 15:26

0 answers