a8m / a8m/angular-filter

Range filter infinite digest

Open
#228 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

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/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.