ExpRick
ExpRick

Reputation: 3

Angular: dynamically create componet from route url

I am using Angular 6 in my application. After calling a Web Api I compose an Angular route Url, for example /module-name/component-name/par1Value/par2Value/par3Value.

I now want to show the component from the read route in a Material Dialog.

How can I accomplish it? Can I create the component from the Url, so that I can pass it to open method?

this.dialog.open(myCreatedComponent,
          {
            width: '900px',
            height: '600px'
          });

Or is there another way?

Thanks in advance.

Upvotes: 0

Views: 60

Answers (0)

Related Questions