Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update routing.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Apr 1, 2020
1 parent 2491bb7 commit 2ff1913
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ If you visit ``http://localhost:16097/`` the URL will immediately update to ``ht
without a page refresh, and you'll see a hyperlink with text ``Number 1``. If you click on this link
you'll see that the number increments (both in the URL and in the link text), also without a page refresh.

The line ``num.value++`` is worthy of additional attention. ``num`` is a ``KVar<Int>``, and so it can be
incremented via its ``value`` property. This will cause the page URL to update, which will in-turn cause
the DOM to update to reflect the new URL. All of this is handled for you by Kweb.
The line ``num.value++`` is worthy of additional attention as there is more going on here than meets the eye.
``num`` is a ``KVar<Int>``, and so it can be incremented via its ``value`` property. This will cause the page
URL to update, which will in-turn cause the DOM to update to reflect the new URL. All of this is handled for you
automatically by Kweb.

0 comments on commit 2ff1913

Please sign in to comment.