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
Post a Comment