a8m / a8m/angular-filter

Range filter infinite digest

Đang mở
#228 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.9k
Fork
319
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello

I'm trying to use the `range` pipe with some controller variables like this:

```


{{time.hour}} {{time.minutes}}

```
The problem is this statement is giving me a infinite digest cycle. If I take the `$ctrl.transformer` function out the problem goes away, but I need that function to transform the input.

Please note that `$ctrl.transformer` is returning an Object like this:

```
$ctrl.transformer = function (time) {
return {
hour: ... (hour calculation),
minutes: ... (minutes calculation)
}
}
```

Is there something I don't see?

EDIT:

Fiddle to reproduce
https://jsfiddle.net/9coywzgt/5/

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.