My following code snippet is not working and I am continuously getting error. I am dynamically generating this content. But When it renders, I get errors.
I have tried escape(), but still it's not working.
$scope.teamInvites[index].teamInviteId has a value like 12334
tname has a value like Test Team 1
email has a value like [email protected]
+ "<a ng-click='deleteRow(" + rowID + "," + $scope.teamInvites[index].teamInviteId+")'>Delete</a> | "
+ "<a ng-click='reInvite(" + rowID + "," + tname + ","+ email+")'>ReInvite</a>"
Error:
Error: [$parse:syntax] Syntax Error
Whenever there is @ or space in a variable, I get this error. don't know what's the work around here. Otherwise it's working fine.