0

This may be an easy one but I can't get the below to work;

<span class="meta-content" ng-bind="data.weekdayot + ' - ' + data.weekdayct | limitTo: 5"></span>

However the below works as expected;

<span class="meta-content" ng-bind="data.weekdayot | limitTo: 5"></span>

For both lines of code I get 12:00. I want to get 12:00 - 21:00.

Thanks

4

1 回答 1

1

试试这个

<span class="meta-content" ng-bind="(data.weekdayot | limitTo:5) + ' - ' + (data.weekdayct | limitTo: 5)"></span>
于 2015-11-05T01:02:12.820 回答