What is regular InterceptedExpression in angular?

While debugging my ng application, I found that most of the time $ digest accepts regularInterceptedExpression. The question is, what are the reasons for its launch?

+12
performance angularjs angular-digest
source share
1 answer

Found this on AngularJs Docs, hope this helps.

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

The following scripts may cause this error.

  1. When you declare a local scope property using = in the directive. This will create an intercepted expression.

  2. method calls in view

Angular tip: We should avoid calling methods in the view whenever possible, as they execute in every $ digest loop.

Thanks,

0
source share

All Articles