this is a job for ng-repeat isn't it ?

On Wednesday, February 11, 2015 at 11:25:38 AM UTC-5, Al J wrote:
>
> well, there are 3 kinds of icons
>
>   single-state - one icon one action
>   radio-state - two icons, one on & one off
>   cycle-state - multiple icons, rotating thru a set
>
> the cycle-state is the onerous one - the html would be dynamically created 
> and have to contain lists of tuples (icon name/title/event) which are in a 
> data structure already
>
> to be able to give the directive the array of tuples and a current index 
> would be a lot nicer than creating a big ugly element 
>
> did that make sense?
>
> On Wednesday, February 11, 2015 at 11:19:12 AM UTC-5, Sander Elias wrote:
>>
>> Hi Al,
>>
>> Most things are easily done with an (inline) template added to the 
>> directive. Can you explain me why you could not use that?
>>
>> Regards
>> Sander
>>
>

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