0
<template  if: true= {isFlagValue}>

showing some content on page when isFlagValue true but after getting false value for isFlagValue I am able to see content

Heading

1 Answer 1

1

Do not use spaces after the : or =. It must be if:true={isFlagValue}. Note that if:true and if:false are deprecated. You should instead use lwc:if, as in lwc:if={isFlagValue}.

Not the answer you're looking for? Browse other questions tagged .