Just us an attibute selector for your component then you can have a custom 
component that looks like

<li my-component>
  <p>xxxx</p>
</li>


On Wednesday, November 11, 2015 at 10:43:00 PM UTC+1, Ben McFerren wrote:
>
> Thnx for your response Sander
>
> I am sad to hear that it is deprecated and can supply a use case to 
> demonstrate its value:
>
> <ul>
>     <my-component *ng-for="#item of items"
>             *ng-if="item.display"
>              my-component-title={{item.name}}>
>     </my-component>
> </ul>
>
> my-component's template:
>
> <li>
>    ...
> </li>
>
> If I instead nest <my-component> inside of a <li>, then I get an empty 
> bullet
>
> ng-for is meant to cycle through an array of component (elements) and <ul> 
> is meant to cycle through an array of <li>
>

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to