a8m / a8m/angular-filter

Range filter infinite digest

Abierto
#228 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
2.9k
Forks
319
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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/

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.