I have some code that I am trying to print out values from an object.
But there are nested objects that are not printing out correctly and actually displays the entire object as { propName: value } to the UI.
The code: HTML
<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>
In 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
}
}
}
}
Help will be great.Thanks