I have seen the thread. Thanks Eric, I have found solution to use just 
ng-for and ng-if to build a tree structure, one of the proposition in the 
thread.


Zlatko

On Wednesday, September 2, 2015 at 4:52:23 PM UTC+2, Eric Martinez wrote:
>
> Zlatko,
>
> I think you should follow this thread
>
> https://groups.google.com/forum/#!topic/angular/i2VTGb1BqVo
>
> I'm pretty sure it will answer your question
>
> El miércoles, 2 de septiembre de 2015, 5:18:40 (UTC-3), Zlatko Josic 
> escribió:
>>
>> To clarify I will give an example.
>>
>>
>> This is part of may code:
>>
>> constructor(element: ElementRef){
>> console.log("kreiranje elemenata");
>> console.log(element);
>> var el = element.nativeElement;
>> var graph = d3.select(el);
>> var ne = graph.append('h1').text("Hello hello");
>>
>> As you can see I'am adding h1 html element. I would like to add my 
>> Angular 2 component instead of h1. Maybe this question is more suitable for 
>> d3.js mailing list. I will post it also there. 
>>
>> Is there any other solution to this problem ?
>>
>> Thanks
>>
>> Zlaja
>>
>> On Tuesday, September 1, 2015 at 1:10:46 AM UTC+2, Zlatko Josic wrote:
>>>
>>> Hi,
>>>
>>> I need to write Angular2 component which dynamically creates elements. 
>>> The elements are part of some tree so the content of components should 
>>> represent that tree. I have wrote small example which uses d3.js library 
>>> and dynamically creates ui elements using ElementRef from Angular2. 
>>>
>>> I have not success in using Angular2 components in d3.js, in other words 
>>> i can not add my components. 
>>>
>>> Is there other approach to this solution?
>>>
>>> Thanks for any suggestion.
>>>
>>> Zlaja
>>>
>>

-- 
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