I'm currently using the AngularJS 1.3.0 stable build and the Batarang Chrome extension. In the watch tree I notice that under many of my scopes there's something called "interceptedExpression". What is that or what scenarios create an interceptedExpression?
Asked
Active
Viewed 1.0k times
1 Answers
32
What is
interceptedExpression
?interceptedExpression
is a function returned by $parse.Why its called
interceptedExpression
in Batarang?Because the function declared inside angular source code is a named function called
interceptedExpression
.What scenarios create an interceptedExpression?
One of the scenarios I know is when you declare a local scope property using
=
in a directive. This will create ainterceptedExpression
record in batarang. See angular src here.
-
18what about regularInterceptedExpression? – Giorgio Apr 13 '16 at 14:54
-
3is there a way to reduce this is the case of the directives using ```=```? – Zack Herbert May 23 '16 at 19:00
-
or a oneTimeInterceptedExpression – chrismarx May 23 '16 at 19:06
-
I think the only way to reduce it is by reducing the number of properties nested within $scope in your controller. – Elle Fie Oct 18 '18 at 00:31