Is there any conflict known between angularjs and jquery-ui (issue with draggable!)?
How can we make working properly our second plunk!?
Thanks for your help
Christophe
dlo...@googlemail.com
unread,
Dec 7, 2012, 12:23:44 PM12/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com, bull.christo...@gmail.com
Don't think thats a good idea to put $("#myModal").draggable(); directly in a js-file loaded in head. For illustration, if you put this into the controller, your second plunk works as aspected. But it isn't clean to leave it there. Try using a directive with a directive for example: http://plnkr.co/edit/jHS4SJ?p=preview
dlo...@googlemail.com
unread,
Dec 7, 2012, 12:29:31 PM12/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com, bull.christo...@gmail.com, dlo...@googlemail.com
I forgot to say why. Your head-loaded scripts starts before your DOM is ready, so '#myModal' isn't available in the moment. With these directives, you can attach 'dragable' to a HTML-element and it's feature 'dragable' is added when it gets rendered with angular. At this moment, your DOM was already ready.
PS: excuse my poor english :)
bull.christo...@gmail.com
unread,
Dec 10, 2012, 3:33:49 AM12/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com, bull.christo...@gmail.com, dlo...@googlemail.com