From fcde336e76c05494850b7822e814c1d0bebcbe3b Mon Sep 17 00:00:00 2001 From: nelsonic Date: Tue, 14 Jun 2022 11:14:40 +0100 Subject: [PATCH] add counter example https://github.com/dwyl/learn-alpine.js/issues/1#issuecomment-1154991061 --- README.md | 4 +++- index.html | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a72c40..e1c0d05 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,9 @@ Run the following command in your terminal: npm i ``` -> **Note**: assumes you have **`node.js`** installed. +> **Note**: assumes you have +> [**`node.js`**](https://nodejs.org/en) +> installed. That will install the `live-server` dependency, diff --git a/index.html b/index.html index f184d58..fb0d34d 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,8 @@

Alpine.js Demo

{title: 'Post Two'}, {title: 'Post Three'}, {title: 'Post Four'}, - ] + ], + count: 0 }" > @@ -50,6 +51,17 @@

Alpine.js Demo

+ +
+ + 0 + +
+
The value of name is