//1.3.13
var parts = interpolateFn.expressions;
//1.2.x
//var parts = interpolateFn.parts;
Per the docs:
$interpolate: due to 88c2193c, the function returned by $interpolate no longer has a .parts array set on it. Instead it has two arrays:
.expressions, -> an array of the expressions in the interpolated text. The expressions are parsed with $parse, with an extra layer converting them to strings when computed
.separators, -> an array of strings representing the separations between interpolations in the text. This array is always 1 item longer than the .expressions array for easy merging with it
Here are the changes I made to upgrade to 1.3.13:
I. Change the interpolateFn property:
Per the docs:
$interpolate: due to 88c2193c, the function returned by $interpolate no longer has a .parts array set on it. Instead it has two arrays:
.expressions, -> an array of the expressions in the interpolated text. The expressions are parsed with $parse, with an extra layer converting them to strings when computed
.separators, -> an array of strings representing the separations between interpolations in the text. This array is always 1 item longer than the .expressions array for easy merging with it
II. Change the $templateCache's ng-pattern:
Note: I have not upgraded the code to reflect the new $validator for 1.3 form validation.
Hope this helps.