If I were to write it in JavaScript version:
export default {
data() {
return {
users: {}
}
}
}
However, when using a class style component with vue-property-decorator
:
@Component
export default class Login extends Vue {
public title: string = 'something'
}
I am able to set strings/numbers easily, but how can I set an object?
To set the users
object, it should look like this:
{
response: {
users: [
{
user_email: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0e3f4e6b766f637e626b">[email protected]</a>',
user_password: 'password'
},
{
user_email: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="784a381d00191508141d">[email protected]</a>',
user_password: 'password'
}
]
}
}