I created an angularjs variable parsing example and it works perfectly in my environment. Below highlighting the code of my implementation
var model = $parse("ABC_DEF");
model.assign($scope, chart); //Works successfully
But here i just changed the variable name to "ABC-DEF". Then i implement the variable to the same code of above, but here it shows the exception like assign is not a function in $parse. Below showing the error throwing line of codes
var model = $parse("ABC-DEF");
model.assign($scope, chart); //Not Working- shows assign not a function
What is the reason of this issue?