I have the following a computed property to check wether a user is more active of on social media or on social professional network
mediaOrSocial() {
if (this.socialMedia) {
const postLikes = this.socialMedia.postLikes;
return postLikes === 30 || this.postLikes !== 30;
} else if (this.socialPro) {
const postLikes = this.socialPro.postLikes;
return postLikes === 30 || this.postLikes !== 30;
}
},
my question is can I borrow the variable postLikes in template to make a condition on string interporlation in template {{ }} ?
exp {{ postLikes > 100 ? 'influencer' : 'not enough visibility' }}