What is regularInterceptedExpression in angular?
Asked Answered
C

1

16

During debugging of my ng-app I've find out that most time of $digest takes regularInterceptedExpression. The question is, what is causes of triggering it?

Chamonix answered 28/4, 2016 at 19:31 Comment(4)
There is another Stack Overflow question for this: #26363786 or more in depth: groups.google.com/forum/#!topic/angular/607sICcxqsMSiriasis
Possible duplicate of AngularJS Batarang - What are interceptedExpressions?Tav
Possible duplicate of #26363786Tav
Not a duplicate as others mentioned. The other question is about interceptedExpression and does not clarify what is a regularInterceptedExpression and how it differs from the former.Macaluso
P
0

Found this on AngularJs Docs, hope this can help.

https://docs.angularjs.org/error/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22:%22fn:%20regularInterceptedExpression%22

Following scenarios could cause this error.

  1. When you declare a local scope property using = in a directive. This will create a interceptedExpression.

  2. method calls in the view

Angular Tip: We should avoid method calls in the view whenever possible, since they run on every $digest loop.

Thanks,

Portable answered 1/5, 2019 at 5:25 Comment(1)
Why did you quoted that link? Did you read it? It doesn't explain anything about regularInterceptedExpression, it just happen to mention when there is an Infinite $digest Loop.Macaluso

© 2022 - 2024 — McMap. All rights reserved.