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

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -