Comments (9)
What does the html look like?
from angularjs-dragula.
<md-list
dragula="'rearrange'"
dragula-model="ctrl.items">
<content-list-item-component
ng-repeat="content in ctrl.items track by content.id"
content="content">
</content-list-item-component>
</md-list>
from angularjs-dragula.
Btw ctrl.items is undefined to begin with, and eventually the content will be loaded async, related to #13 ?
from angularjs-dragula.
@kennethlynne async is the problem, dragula expects model to be loaded on init. I can look at the code later if there is possible some simple solution. ;)
from angularjs-dragula.
I used ng-if on the wrapping element to work around it, but it is not optimal
from angularjs-dragula.
So that it is loaded only when the items are loaded
from angularjs-dragula.
I got the same error.
Here is a jsfiddle that reprocude the bug: http://jsfiddle.net/j0k/20bk7vqL/
from angularjs-dragula.
#17 solves this. The code got merged, but the new version has not yet been released. You can point to master from npm/bower for the time being.
from angularjs-dragula.
@bevacqua any chance to tag v1.0.13
with that fix ?
from angularjs-dragula.
Related Issues (20)
- Examples are hot steaming piles of shit HOT 1
- Demo page broken HOT 7
- Common Bag inside component HOT 1
- Vertical scroll if view port is less size than the folder bag size HOT 1
- Drag and drop across multiple containers is not working with ng-if
- How can i drop to any position in the lists ?
- Change Github demo link HOT 2
- drag event fired out of dragula scope HOT 1
- Save position HOT 2
- Copy function isn't working HOT 1
- Inserting dynamic content into a copied element HOT 1
- Copy element with ng-model , copied elements ng-model broke HOT 1
- Error: Bag named: "..." already exists in same angular scope... can't use dragulaService HOT 1
- Elements duplicated in an ng-repeat when being dragged and dropped HOT 1
- Concepts
- enable disable dragula on click
- Dragging and dropping on a page with scroll throws error inside dragula
- How to use under AngularJS 1.6+ with TypeScript
- angularjs-dragula not available via CDN
- Get reference to "dropModel"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-dragula.