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
Post a Comment