I am attempting to pass a variable from a controller to an attribute value in a directive. The specific directive I am utilizing can be found at this link. Below is an excerpt of my code:
<div ng-controller="transactionsController">
<table class="table" data-row-style="rowStyle">
<thead>
<tr>
<th>Link to Transaction</th>
<th>Amount Invested</th>
<th>Payout Amount</th>
<th>Transaction Status</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="transaction in transactions">
<td><a href='https://blockchain.info/tx/{{transaction.input_transaction_hash}}'> {{transaction.input_transaction_hash}} </a></td>
<td> {{transaction.value/100000000}} </td>
<td> {{(transaction.value/100000000) * 1.2}} </td> <!--TODO: Investment % shouldn't be hardcoded -->
<td class='red' ng-if="transaction.confirmations < 6 || transaction.confirmations == null">unconfirmed</td>
<td class='green' ng-if="transaction.confirmations >= 6">confirmed</td>
<!-- <td>{{transaction.date}}</td> -->
<td><timer end-time="{{transaction.date}}">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.</timer><td>
</tr>
</tbody>
</table>
</div>
</div>
The "transaction.date" variable originates from a separate controller and represents a date formatted as a String in milliseconds. For more examples of the directive, you can visit this page.
I seem to encounter an error when using "transaction.date" within the timer directive.