{"action":"opened","issue":{"url":"https://api.github.com/repos/valor-software/ng2-dragula/issues/495","repository_url":"https://api.github.com/repos/valor-software/ng2-dragula","labels_url":"https://api.github.com/repos/valor-software/ng2-dragula/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ng2-dragula/issues/495/comments","events_url":"https://api.github.com/repos/valor-software/ng2-dragula/issues/495/events","html_url":"https://github.com/valor-software/ng2-dragula/issues/495","id":196038716,"number":495,"title":"Getting error second time getting to page with ng2-dragula","user":{"login":"vitaly87","id":12049731,"avatar_url":"https://avatars.githubusercontent.com/u/12049731?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaly87","html_url":"https://github.com/vitaly87","followers_url":"https://api.github.com/users/vitaly87/followers","following_url":"https://api.github.com/users/vitaly87/following{/other_user}","gists_url":"https://api.github.com/users/vitaly87/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaly87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaly87/subscriptions","organizations_url":"https://api.github.com/users/vitaly87/orgs","repos_url":"https://api.github.com/users/vitaly87/repos","events_url":"https://api.github.com/users/vitaly87/events{/privacy}","received_events_url":"https://api.github.com/users/vitaly87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T11:28:01Z","updated_at":"2016-12-16T11:28:01Z","closed_at":null,"body":"\r\nI am trying to prevent user to move first element of dragulaService, the code work first time ok without the errors. the second time that I came back to this page I see an errors,\r\n\r\nthe code that doing the error:\r\n\r\n```\r\nconstructor(public service:SmartTablesService, private dragulaService:DragulaService) {\r\n    dragulaService.setOptions('nested-bag', {\r\n      revertOnSpill: true,\r\n      moves: function (el:any, container:any, handle:any):any {\r\n        if (handle.className === 'sorting-table-title') {\r\n          return false;\r\n        } else {\r\n          return true;\r\n        }\r\n\r\n      }\r\n    });\r\n```\r\nthe error is:\r\n\r\n```\r\nerror_handler.js:48 EXCEPTION: Uncaught (in promise): Error: Error in ./SortTableComponent class SortTableComponent_Host - inline template:0:0 caused by: Bag named: \"nested-bag\" already exists.\r\nError: Bag named: \"nested-bag\" already exists.\r\n    at DragulaService.add (http://platform.local:8080/3.chunk.js:1070:19)\r\n    at DragulaService.setOptions (http://platform.local:8080/3.chunk.js:1099:24)\r\n    at new SortTableComponent (http://platform.local:8080/3.chunk.js:1311:24)\r\n```"}}
{"actor":{"display_login":"vitaly87"}}