Level 60
Show your Vue code
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a 'region' object, and it is displayed normally, with all the attributes, but when I need to access some of its attributes, it says that it is 'undefined'.
const region = { "id": 7, "name": "Paraíba", "slug": "paraiba", "created_at": "2022-09-14T23:44:10.000000Z", "updated_at": "2022-09-14T23:44:10.000000Z" }
If I display {{ region }} it displays complete: { "id": 7, "name": "Paraíba", "slug": "paraiba", "created_at": "2022-09-14T23:44:10.000000Z ", "updated_at": "2022-09-14T23:44:10.000000Z" }
However, if I print {{ region.name }} it returns undefined.
Please or to participate in this conversation.