a8m / a8m/angular-filter

Range filter infinite digest

オープン
#228 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.9k
フォーク
319
PR マージ指標
30日以内にマージされた PR はありません

説明

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/

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。