javascript - Escaping characters in attributes in angular? -


i'm using angular post webform. using ng-model need build array values have dots in them.

i

<input type="text" ng-model="quiz.entry.958924423" name="entry.958924423" required /> 

would correspond object this:

$scope.quiz= {'entry.958924423': '1f9trpeu9da4w0cjadn4a1fl3jh682zpf8remwb21rhi'}; 

now makes

$scope.quiz.entry = 1f9trpeu9da4w0cjadn4a1fl3jh682zpf8remwb21rhi 

try method, if understand correctly:

<input type="text" ng-model="quiz['entry.958924423']" required /> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -