I am encountering an issue where my code is not printing out values from an object correctly. The nested objects are displaying the entire object as { propName: value } on the UI.
Below is the HTML code:
<ul class="o-pf-list">
<li v-for="(value, propName) in integrationSettings" v-if="integrationSettings.propName.active === false" class="o-pf-list__item o-pf-list__item--border o-pf-list__item--line-height">
<label> {{ propName }} </label>
<div class="pull-right"> {{ value }} </div>
<div v-if="integrationSettings.propName .active === false" class="pull-right">
{{ integrationSettings.propName .active ? 'Active' : 'Disabled' }}
</div>
</li>
</ul>
And here is the component vue instance:
data: function() {
return {
pageTitle: 'Integration settings',
objectName: {
propName: 'somevalue',
propName: 'somevalue',
propName: 'somevalue',
objectName: {
propName: false
},
propName: 'somevalue',
propName: 'somevalue',
propName: 'somevalue',
objectName: {
propName: true
},
objectName: {
propName: false
},
objectName: {
propName: false
}
}
}
}
Any help would be greatly appreciated. Thank you!