I am new to AngularJS, and I am facing the following issue.
I am unable to bind a JSON key starting with @ symbol.
Example:
var sampledata =
{
"DataModel": {
"Fields": [
{
"Format": null,
"DisplayOrder": 0,
"@defURI": "reporting.dashboard.TDataSetField",
"DisplayName": "Firstname",
"DefURI": "String",
"Name": "firstname",
"@nodeKey": 346316115241271300
}
]
}
}
and my code is:
<tr ng-repeat="fdata in fieldData.DataModel.Fields">
<td>{{fdata.Name}}</td>
<td>{{fdata.@defURI}}</td> <!-- this line is throwing an AngularJs error -->
</tr>