I am probably not groking how this is supposed to work. Let's consider 
I have a todo-list component that maintains a list of todo-items. I can 
iterate over that list like so:

<ul >
<li *ng-for="#todo of todoService.items">
My todo item is {{todo.textvalue}}  isDone {{todo.isDone}}
</li>
</ul>


Now what if "todo-item" is itself a component.

I want to render the component value of todo, Something like:

<ul >
<li *ng-for="#todo of todoService.items">
  <todo-item  #todo></todo-item>
</li>
</ul>

What I can't get to work is to reference the "todo" *component* value. It 
basically just instantiates a brand new todo-item and does not use the 
todo-item from my parent's todo-item list (hope that makes sense).

I have tried a bunch of different combinations but no luck. Am I doing it 
wrong? 

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