0👍
Because pessoa.sexo isn’t a valid object key, the dot is not allowed, if you type in your console
var a = {name:"tom",user.friends:3}
you’ll get
Uncaught SyntaxError: Unexpected token .
now..you can change this to just pessoa or use a nested object and you can access to it as pessoa.sexo
pessoa : {sexo : "M"}
I hope I helped you..
- [Vuejs]-MVC form submission need query string with %20 not with '+'
- [Vuejs]-'template or render function not defined' error
Source:stackexchange.com