a8m / a8m/angular-filter

Range filter infinite digest

Aperta
#228 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.9k
Fork
319
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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/

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.