This is a very simple demo to compare Options API with the newer Compositions API. Practice for one of my courses at IT-Högskolan, Gothenburg.
- Change between the
Options API
and theCompositions API
router views with the buttons on top of the page - The input for new To-do have a
watcher
tocheck for swearwords
("fart", "butt hair", "willy") and will give an alert if these are entered - The
h1 title
on to of the input willupdate using a computed call
to calculate the todo array's length
- Clone this repository and open with your favorite IDE
- Go to
/to-do-app
root directory- First run this command:
npm install
- Then run this command:
npm run dev
- CTRL click the localhost address generated
- First run this command:
Add new
To-do byentering a name
in the input field andpress Enter
Remove
a To-do byclicking the X button
next to it