El martes, 23 de agosto de 2016, 12:51:15 (UTC+2), Alejo Ribes escribió:
>
> Hi, i found this problem:
> I get data for print from a json.
> Print in a table:
> Example:
>
> <tbody ng:repeat= "i in vm.dataResponse">
> <tr><td>{{i.date | date: fullDate 
> }}</td><td>{{i.user.user-name}}</td><td>{{i.user.description}}</td><td>{{i.user.location}}</td><td>{{i.user.lang}}</td></tr>
> </tbody>
>
> Works correctly except {{i.user.user-name}}, i test with other property 
> with '-' in key value and i found the same problem, in the view, prints 0.
>
>
> Thanks
>
>

I found the error, using:

{{i.user['user-name']}} 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to