Recursive ng-include

ยอดดู 8,973 ครั้ง
ข้ามไปที่ข้อความที่ยังไม่อ่านรายการแรก

Brendan Owen

ยังไม่อ่าน,
10 พ.ค. 2555 03:20:0310/5/55
ถึง AngularJS
I am working on a presentation comparing Flex and AngularJS tried
recursive ng-include. It might be of interest to someone.

http://jsfiddle.net/brendanowen/uXbn6/8/

Bretto

ยังไม่อ่าน,
10 พ.ค. 2555 03:33:1110/5/55
ถึง ang...@googlegroups.com
Awesome, it shouldn't to hard to implement a show/hide function on the node....

Charlie

ยังไม่อ่าน,
10 พ.ค. 2555 06:11:0010/5/55
ถึง AngularJS
Nice!

ganaraj p r

ยังไม่อ่าน,
10 พ.ค. 2555 06:54:5310/5/55
ถึง ang...@googlegroups.com
Awesome love it :)

Nice!
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.




--
Regards,
Ganaraj P R

Adam Bradley

ยังไม่อ่าน,
18 พ.ค. 2555 12:24:5118/5/55
ถึง AngularJS
thanks for posting that, exactly what I was looking for!

Alain Duchesneau

ยังไม่อ่าน,
20 มิ.ย. 2555 09:19:2020/6/55
ถึง AngularJS
That's cool, and what I was looking for. But when I try to adapt it to
my problem, nothing is displayed.

See at: http://jsfiddle.net/zzal/qdvuN/6/

Is it because we can't use ng-switch inside ng-includes?!


On 10 mai, 03:20, Brendan Owen <brendan.o...@gmail.com> wrote:
> I am working on a presentation comparing Flex and AngularJS triedrecursiveng-include. It might be of interest to someone.
>
> http://jsfiddle.net/brendanowen/uXbn6/8/

Alain Duchesneau

ยังไม่อ่าน,
20 มิ.ย. 2555 09:31:1420/6/55
ถึง AngularJS
Got it!!

http://jsfiddle.net/zzal/qdvuN/9/

the template had to be inside the ng-app AND those single quotes in ng-
include directive... Why! Oh! Why!

thanks a lot anyhow!!

Alain Duchesneau

ยังไม่อ่าน,
20 มิ.ย. 2555 09:38:5720/6/55
ถึง AngularJS

lulzim...@gmail.com

ยังไม่อ่าน,
12 พ.ย. 2555 08:43:2212/11/55
ถึง ang...@googlegroups.com
Nice.

I made a small change to add expand/collapse functionality :)

http://jsfiddle.net/uXbn6/91/

Benny Bottema

ยังไม่อ่าน,
22 ม.ค. 2556 04:44:5922/1/56
ถึง ang...@googlegroups.com
Two questions I have for this solution:

1. Is it possible to parameterize the controllers when they are bound to iElement? I would like to configure a child's content by some selection criteria in its parent
2. Is it possible to enhance this solution so that the controllers get access to their parents/children? Each element and it bound controller are now completely isolated

Bill Simons

ยังไม่อ่าน,
6 มี.ค. 2556 11:00:036/3/56
ถึง ang...@googlegroups.com, lulzim...@gmail.com
This has been great!  I'm learning a lot about Angular JS just from working through this thread.

How would you implement something like this using directives?

Thanks,
Bill

Vitaly Vasilevsky

ยังไม่อ่าน,
11 มี.ค. 2556 10:34:3611/3/56
ถึง ang...@googlegroups.com

Thank you so much, Brendan!
I have searched for recursive rendering several days for this moment. 
You really helped me!
ข้อความถูกลบแล้ว

Maarten Berkenbosch

ยังไม่อ่าน,
4 ต.ค. 2556 16:29:354/10/56
ถึง ang...@googlegroups.com
Beautiful code!


On Thursday, May 10, 2012 9:20:03 AM UTC+2, Brendan Owen wrote:

Robert Retzbach

ยังไม่อ่าน,
18 ก.ค. 2557 02:01:2418/7/57
ถึง ang...@googlegroups.com
With this I can probably avoid writing an own directive to render a tree, thank you!

Jens Melgaard

ยังไม่อ่าน,
18 ก.ค. 2557 07:10:4118/7/57
ถึง ang...@googlegroups.com
Have a look at: https://github.com/dotJEM/angular-tree

Makes it feel less "icky" to do this.

Alex Szilagyi

ยังไม่อ่าน,
31 ธ.ค. 2557 10:51:1031/12/57
ถึง ang...@googlegroups.com
Maybe its getting old this topic and best approaches are already know but I'm wondering if any of you had similar scenario like this one. How should I handle recursively a JSON object if the child has a different key value name in JSON rather than his parent.

Jehanzeb Qayyum

ยังไม่อ่าน,
4 ส.ค. 2558 07:44:404/8/58
ถึง AngularJS
After 10 levels nesting i start getting 
10 $digest() iterations reached. Aborting!
ตอบทุกคน
ตอบกลับผู้สร้าง
ส่งต่อ
ข้อความถูกลบแล้ว
ข้อความใหม่ 0 รายการ