I have the following ul list implementing dragula:
<ul [dragula]="parent + '-bag'" [dragulaOptions]="getDragOps(parent)" [dragulaModel]="_treeService.tree">
This is working well, and changes made through re-ordering the list are reflected back to the _treeService.tree
array. However, if I add an element to this array from another component, it doesn't appear in the list (even though it has definitely been added to the array).
I guess I'm missing something here, but I thought [dragulaOptions]
was supposed to sync changes automatically, including new items? I've read through the docs, both the ng2-dragula and the original but I can't find the relevant method. What do I need to do to get it to reflect the updated array in the list?