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

Removing From ArrayList, In Loop Based On It's Size, But Breaking After Remove Still Gives OutOfBounds -

c# - Reactive Extensions ControlScheduler -

java - Add color code support to a Bukkit plugin -