Skip to content

question: using bindonce and still being able to orderBy #114

@itsgoofer

Description

@itsgoofer

I have a question, I have been playing around with bindonce and I realized it let's me orderBy within ngRepeat based tables. I'm not sure if this is supposed to happen since the data passed to the ngRepeat should be displayed once and unbound.

<tr bindonce ng-repeat="invoice in invoices.all() | orderBy :order:reverse">
   <td class="data-cell" bo-text="invoice.invoice_date | date : 'MMM d, y'"></td>
   <td class="data-cell" bo-text="invoice.invoice_hash"></td>
   <td class="data-cell right" bo-text="invoice.amount_due / 100 | currency"></td>
   <td class="data-cell right" bo-text="invoice.paid ? 'Paid' : 'Unpaid'"></td>
</tr>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions