Message is not coming on setting condition oj-bind-if.
Content
I have given oj-bind-if condition in my HTML page , but that condition is not working.
PFB the HTML page code.
<oj-bind-if test="[[flag === 'on']] ">
<oj-bind-text value="[[ res.Validfile ]]"></oj-bind-text>
</oj-bind-if>
PFB the JS code.
self.flag=ko.observable("off");
condition() // I am able to enter in this condition and able to print "on" in console.
{
self.flag="on";
}
Please let me know how I can display res.Validfile on my page.
Thanks,
Himanshu Sethi
0