Yeah, I'm not sure where the breakpoint is between easy and hard from the
framework perspective, but in a generic ng-repeat / tree directive kind of
situation, I'd approach D&D by moving attributes around on a model object
(reorder in the array, moving from foo.tubers to foo.vegetables and so on),
and then let angular render the DOM appropriately.

OTOH, that may be over-engineering a simple enough use pattern for jQuery.

e


On Sun, Sep 7, 2014 at 3:33 AM, Jens Melgaard <[email protected]> wrote:

> You can still do complex drag and drop and much other using Angular, what
> you need is a model to describe your structure, and then just let Angular
> render that, it's now about making "all possible" permutations in html...
>
>
> On Saturday, September 6, 2014 4:58:42 AM UTC+2, Kevin W wrote:
>>
>> Eric - I realize I can use jQuery.  I was just trying to avoid it on
>> principle (while I'm still learning angularjs).
>>
>> I know for many things, having content already in the page with ng*
>> attributes is the way to go.  However, I really am doing dynamic work here
>> based on drag & drop so it wouldn't make sense to have all the possible
>> permutations baked into the HTML.
>>
>> I think I have decided, however, that for this complex UI manipulation,
>> it'll make sense to just stick with jQuery within my directives.
>>
>> Thanks!
>> Kevin
>>
>>
>> On Friday, September 5, 2014 11:40:30 AM UTC-6, Kevin W wrote:
>>
>>> The jqlite has append but it doesn't have before and after.
>>>
>>> Does anyone know of the appropriate way to perform these actions
>>> (before/after)?
>>>
>>> Thanks!
>>> Kevin
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to