Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date filter is ignored
Message
From
28/05/2015 01:54:25
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01620266
Message ID:
01620275
Views:
45
If the date appears in the form in the unformatted state that would seem to imply that the data binding is actually working.
Are you sure that the .transactionDate is in a format acceptable as input to the filter (i.e. a Date object) ?

>So just a bit of update after speaking with my colleague. It looks like angular is not doing some sort of the refresh here to actually apply the date filter. This form is several levels deep and I show it by flipping some variable (so the view became visible).
>
>I am wondering if some sort of a refresh can be done (in angular sense).
>
>
>>Hi everybody,
>>
>>I could not figure out why in this simple expression the date filter is ignored. I tried different formats and the date is always shown the same way:
>>
>>Invoice: 16000001 Transaction Details: 2015-05-27 14:55:47.448 Amount: $677.00
>>
>>
>><div class="widget-head col-md-offset-0">
>>                @Labels.invoice:  {{invoiceTransactionsObject.newTransact.invoiceNo}}  @Labels.transaction @Labels.details: {{invoiceTransactionsObject.newTransact.transactionDate |date: 'MMMM/d/yyyy hh:mm:ss'}}  @Labels.amount: <span ng-class="{'negative-amount': invoiceTransactionsObject.totalAmt < 0}"> {{invoiceTransactionsObject.totalAmt|currency}}</span>
>>            </div>
>>
>>Do you see what I may be missing here?
>>
>>Thanks a lot in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform