Considering an upgrade to the latest stable Angular branch 1.4.7 from version 1.2.13, there is a customized angular-leaflet-directive in the project that requires syntax changes in a specific function to avoid errors.
Error: [$parse:syntax] Syntax Error: Token '.50465' is an unexpected token at column 8 of the expression [markers.50465] starting at [.50465].
http://errors.angularjs.org/1.4.7/$parse/syntax?p0=.50465&p1=is%20an%20unexpected%20token&p2=8&p3=markers.50465&p4=.50465
at angular.js:68
...
The error is related to 'markers.'
// add new markers
for (var new_name in newMarkers) {
if (markers[new_name] === undefined) {
var newMarker = createMarker('markers.' + new_name, $scope.markers[new_name], map);
if (newMarker !== null) {
markers[new_name] = newMarker;
}
}
}
Line 1496 marks the beginning of this section.
var clearWatch = $scope.$watch(scope_watch_name, function(data, old_data) {
...
}, true);