Last active
March 30, 2017 09:51
-
-
Save pascalwhoop/337b497df2a2dcdf45a9796bc8b65aba to your computer and use it in GitHub Desktop.
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
<td-data-table | |
[data]="data" | |
[columns]="columns"> | |
<!--template for date --> | |
<template tdDataTableTemplate="date" let-value="value"> | |
<div layout="row"> | |
<span flex>{{value | date: 'dd-MM-yyyy'}}</span> | |
</div> | |
</template> | |
<!--template for price--> | |
<template tdDataTableTemplate="amount" let-value="value"> | |
<div layout="row"> | |
<span flex>{{value}} €</span> | |
</div> | |
</template> | |
<!--template for vegetarian--> | |
<template tdDataTableTemplate="vegetarian" let-value="value"> | |
<div layout="row"> | |
<span flex>{{value? 'yes' : 'no'}}</span> | |
</div> | |
</template> | |
<!--template for paid--> | |
<template tdDataTableTemplate="paid" let-value="value"> | |
<div layout="row"> | |
<span flex>{{value? 'yes' : 'no'}}</span> | |
</div> | |
</template> | |
</td-data-table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment