Skip to content

Commit c61b6fe

Browse files
committed
Update readme.
Add docs. Add k-not in the directives list.
1 parent 02a6454 commit c61b6fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Your HTML
2626
<b k-text="name"></b>
2727
</div>
2828

29-
<p k-if="canShowLastName">This node doesn't exists</p>
29+
<p k-if="canShowLastName">This node doesn't exists until the clause is true</p>
30+
<p k-not="canShowLastName">This node doesn't exists while the clause is false</p>
3031
<p k-hide="canShowLastName">This node is hidden</p>
3132
```
3233

@@ -38,6 +39,8 @@ The available ones are:
3839
Shows the value of the received reference in the element's text.
3940
* **k-if**:
4041
Removes the element if received reference is falsy. Add if truthy.
42+
* **k-not**:
43+
Oposite of ```k-if```. Removes when truthy. Add when falsy.
4144
* **k-hide**:
4245
Hides the element if received reference is falsy. Shows if truthy.
4346
* **k-bind**:

0 commit comments

Comments
 (0)