Angular2 can bind css class as follows `[class.fa-train]="true"`, but can I 
bind them at runtime (something like `[class[key]]="true"`) ? For example, 
I have an array:
```javascript
['fa-train', 'fa-subway', 'fa-bed']
```
I would like to convert them as follows:
```javascript
<i class="fa fa-train"></i>
<i class="fa fa-subway"></i>
<i class="fa fa-bed"></i>
```

Thanks.

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