Is it possible to bind to a property in angular using the square bracket notation of accessing properties. For example (using pseudo-code).
<script type="text/javascript">
var object = { };
object["my property"] = 3;
</script>
<input ng-model="object['my property']" />
I know square bracket notation is supported, but there doesn't seem to be a way to bind to a property that has a space in it.
While this is just pseudo code, the specific error we receive in angular is : "Uncaught Error: Syntax error, unrecognized expression: select[ng-model='ticket.Properties['assigned to']']".
Edit: Figured out the solution. Using single quotes on the outside and double quotes on the inside:
<input ng-mode='myObject["my property"]' />