You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Message is not coming on setting condition oj-bind-if.

edited Jul 5, 2019 9:10AM in Visual Builder 6 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!