Skip to content

In multiple lists, does not remove the previous "pull" item from data model #37

@ericjames

Description

@ericjames

Your examples show moving between pre-existing DOM elements in multiple lists, but in Angular all DOM elements are generated via the data model.

When moving from one list to another, it succeeds moving the DOM item and the data item, BUT it does not remove it from the previous data list. The previous list reappears as if cloned. It doesn't appear to know to remove from the data model which would certainly be an Angular specific thing.

I had to plug into onRemove: and do a dirty check of the removed evt.model attribute (ie: id) from the actual scope variable.

$scope.manyLists = [[{id:1}],[{id:2}],[{id:3}]];

<my-dir items="manyLists[0]"></my-div>
<my-dir items="manyLists[1]"></my-div>
<my-dir items="manyLists[2]"></my-div>

Will this be solved by #36?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions