How to use {{ActiveUser}} inside `v-if` ? August 12, 2018, 12:15:56 AM Hello guys, basically what I'm trying to do is to match the current logged in user to an ID, if it matches, then render the div.. otherwise do nothing... but everytime I try to use VueJs `v-if` attribute It doesn't do anything.. also if I try to use {{ActiveUser.id}} inside a div as an id attribute field, or classname or whtever... it makes it a string... e.g. `div id={{ActiveUser.id}}` => `div id="{{ActiveUser.id}}"` Quote Selected Last Edit: August 12, 2018, 12:23:14 AM by 0x90
Re: How to use {{ActiveUser}} inside `v-if` ? Reply #1 – August 12, 2018, 11:43:28 AM Please use attribute databind for vuejs<div :id="ActiveUser.id">...</div>Regards Quote Selected
Re: How to use {{ActiveUser}} inside `v-if` ? Reply #2 – August 12, 2018, 10:01:57 PM Quote from: Emman – August 12, 2018, 11:43:28 AMPlease use attribute databind for vuejs<div :id="ActiveUser.id">...</div>RegardsAwesome! thanks for pointing me to the correct direction Now, how I would go around making the `v-if` attribute work with ActiveUser? Quote Selected Last Edit: August 12, 2018, 10:05:26 PM by 0x90