Non working negated boolean in knockout.js -


The markup below fails, but I can not understand that as a positive version (without an exclamation point) Works. Very silly but I had to ask.):

  & lt; Div data-bind = "visible:! $ Root.showMe" & gt; Where (see in modal): self. ShowMe = Ko.Osabel (wrong);  

Ah, classic! $ Root.showMe is a function that refuses to deny a function, thus it does not work. However, de-referencing the work with its value functions.

Valid markup is:

  & lt; Div data-bind = "visible:! $ Root.showMe ()" & gt;  

Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

javascript - Enable/Disable form elements and changing the values of button at a time? -