Dynamically charge with angular 6

Asked

Viewed 362 times

1

I need to load components dynamically, I am using jsPanel to create a window and I would like to pass which module will be created within 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 click on the contents of the panel that will open.

openWindow(event) {
  jsPanel.create({
    theme: 'gainsboro',
    headerTitle: 'my panel #1',
    position: 'center-top 0 58',
    contentSize: '450 250',
    content: '<meu-component></meu-component>',
  });}
  • Is there a reason you have to use jspanel specifically? There are other modal libraries that support the angular.

  • Thanks for the answer Eduardo, it could be any other library, but I do not want a modal window, I would like to open several windows at the same time, with different components in each window. Thanks for the help

  • Any progress on this problem @Ronaldoalberton?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.