Created
March 9, 2018 15:44
-
-
Save jsanta/f6cf68d19bd2f537bdc30bd09c338da7 to your computer and use it in GitHub Desktop.
DataGridComponent template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row mt-3"> | |
<div class="col-2 p-1 text-center align-self-center" | |
[ngClass]="{ | |
'bg-info': item.color === 'blue', | |
'bg-success': item.color === 'green', | |
'bg-warning': item.color === 'yellow', | |
'bg-danger': item.color === 'red' | |
}" | |
*ngFor="let item of filteredData"> | |
<strong>{{item.company}}</strong><br> | |
{{item.country}} | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment