I have some controller with requests for filter, In database my table is sale/rent (it is not my idea, it is too late change name ow table). I am trying to show some objects by this line:
$scope.sale/rent = 'Sale';
Without escape slash i got an error: Uncaught ReferenceError: Invalid left-hand side in assignment.
Ok, just escape this slash like this right?
$scope.sale/\/rent = 'Sale';
But no luck, still got error: Uncaught SyntaxError: Invalid or unexpected token Uncaught SyntaxError: Invalid or unexpected token.
I don't understand how to escape slash here and make an request. Help please, thank you!