Bag already exists
See original GitHub issueWhen creating multiple directives with the same bag, the following error is thrown…
<div class="wrapper">
<div class="container" v-dragula="colOne" bag="first-bag">
<div v-for="text in colOne" @click="onClick">{{text}} [click me]</div>
</div>
<div class="container" v-dragula="colTwo" bag="first-bag">
<div v-for="text in colTwo">{{text}}</div>
</div>
</div>
Uncaught Error: Bag named: “test” already exists.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:22 (7 by maintainers)
Top Results From Across the Web
Bag named: "section-bag" already exists · Issue #442
hi , I have a sectionComponent which has another component. section.component.html ` <*ngFor="let row of section.rows"> Loading.
Read more >Getting error second time getting to page with ng2-dragula
I am trying to prevent user to move first element of dragulaService , the code works first time without any errors, but when...
Read more >How to encrypt an already existing data bag? - Chef Questions
Hello,. While I believe it's possible to encrypt an existing data bag with 'knife data bag edit' by providing it an encryption key,...
Read more >Everything I need already exists in me by rupi kaur Tote Bag
Everything I need already exists in me by rupi kaur Tote Bag. Designed and sold by Freyyyaaa. Also available on. Classic T-Shirt. From...
Read more >Ets.Bag – ets v0.5.0 - HexDocs
Module for creating and interacting with :ets tables of the type :bag and ... doesn't add any records if any of the new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the bags concept is very confusing. What you are trying to achieve is a map of
name: dragula instance (drake)
so just use an Object, also much faster lookup that what you are using forfind
iterating through the list manually looking for object with matching name.“You can put filterContainer as a component global variable, update it on ready, or use id to match containers.” WTF!? Don’t understand this gibbidy-gack! @Astray-git Please show an example for Vue 2 😃