I have a component that somewhere inside that component it has a code like this:
var getAttribute = $parse(attrs[key]);
when $parse service is passed a string like this2017-03-06 14:40:19 it fails and produce the following error:
Error: [$parse:syntax] Syntax Error: Token '14' is an unexpected token at column 12 of the expression [2017-03-06 14:40:19] starting at [14:40:19].
can anyone tell me what is wrong with this whole thing?
[2017-03-06 14:40:19]doesn't look like a string to me. Can you make sure?