Hi Guys,

I am trying to do following in my application.

I have Parent component  "Parent 1" in which I have referenced a child 
component "child 1". "Parent 1" sends a count to Child 1, where Child 1 
needs to load another child component 2  (which is a form) dynamically, 
based on the count sent from Parent 1.

In Parent 1 component
<parent1>
<child1 [count] = "2"></child1>
</parent>

in child 1 component

<ul>
<li *ngFor = need count here">
 <child 2> </child2>
</li>
</ul>

How can I accomplish this? Also, how to bind ng-model to child 1 component 
and save that data on child 2 component level? 

Thanks,
Sonal

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/b224fb87-152d-4eb4-9165-c429e8aba100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to