WhileTrue condition

Back to How-to Discussions
  //page.ux

 <WhileTrue Value="{Show}">
        <Text/>
  </WhileTrue>

//page.js
var Show = Observable(false);
function clicked(){
  Show.value = true;
  console.log("page.js function clicked");
};

 module.exports = {
 clicked:clicked,
 Show:Show
}
 Called clicked() function on button, But 'Show' still is false. It never changed to true.

Hi Tom, we'll need to see a complete reproduction. The code you're showing does not seem to do anything wrong, so the cause of the problem is likely something else.

Post Stats
  • 1
    replies
  • 116
    views
  • 2
    users