[Vuejs]-Javascript (VueJS) Object with Array

0👍

Since I don’t see whole code, I can assume.
First you have match data with

this.currentUser = data //data that you retrieve

and then access it:

this.currentUser.roles[0].access['role1']

0👍

Within the VueComponent context, data attributes are spread into its this context. Therefore:

 this.roles[0].access['role1']

Leave a comment