This is a migrated thread and some comments may be shown as answers.

sortable with component factory

0 Answers 32 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
manuela
Top achievements
Rank 1
manuela asked on 22 May 2020, 02:01 AM

I have been trying to make this work with the component factory and it does not work. Here is my example:

https://stackblitz.com/edit/angular-ist5kj-dgzkke?file=app%2Fapp.component.ts

 

this works though:

https://stackblitz.com/edit/angular-ist5kj-n263kq?file=app%2Fapp.component.ts

 

however, the right way to do it is the first one when you create the component and you need to pass in data to the component through the instance. is there a way to make the first option work? 

No answers yet. Maybe you can help?

Tags
Sortable
Asked by
manuela
Top achievements
Rank 1
Share this question
or