Multiple actions for the same list

4 views
Skip to first unread message

NO

unread,
Mar 15, 2017, 6:23:28 AM3/15/17
to transparency.js
Hi I have a list of names and links as following: 
mylist = [
    name: 'aaaa'
    link: 'bbbbb'
  ,
   name:'ccc'
   link: 'ddd'
.......]
I 'd like to display all in this format <a href="link">name</a> except elements #5,#9,#15 to be displayed with red color. 
My question is how can I do that using multiple directives & coffeescript (prefered) or JS ?

Reply all
Reply to author
Forward
0 new messages