Andrii Tsarenko
Andrii Tsarenko

Reputation: 705

What is regularInterceptedExpression in angular?

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?

Upvotes: 16

Views: 3996

Answers (1)

Tek choudhary
Tek choudhary

Reputation: 178

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,

Upvotes: 0

Related Questions