The exception here comes from the fact that the GUID is in fact a string
. So we cannot handle it as a number, i.e. without apostrophe:'
so, because your current could look like this:
// the one of the $scope.signals
current {
_id: '016ab73979797971605013efc42942e8',
...
}
we must change the parameter passing similar way, instead of this:
// GUID is not a number
var href = $interpolate('blog_details({id:{{_id}},slug:{{slug}}})')(current);
we must use: '{{_id}}'
// GUID is a string here
var href = $interpolate('blog_details({id:\'{{_id}}\',slug:{{slug}}})')(current);