Akhil Soman
Akhil Soman

Reputation: 25

Not able to display numeric key value in interpolation using Angular

data = [ { "1": 1, "2": 2, "test1": "test1", "test2": "test2", "test3": "test3", "test4": "test4" } ]

Not able to display value for numeric keys

Upvotes: 1

Views: 39

Answers (1)

Jasdeep Singh
Jasdeep Singh

Reputation: 8321

you need to use {{ item["1"] }} as property is not a valid identifier.

Upvotes: 1

Related Questions