Practical week 10: Vue.js Part III

2. Install dependencies

Navigate to project root directory:

> cd wad20-lab10

And run command:

> npm install

Run application by:

> npm run serve

Tasks

1. Calculate Total price on each item added to or removed from cart

2. Create new Comment javascript class, with two properties, text and created date

3. Move comment logic from ItemPage.vue to new Comments.vue component and include it in ItemPage.vue

4. in Comment.vue component create data: where you store all comments and display them using v-for directive

5. On enter key pressed in comment box add display new comment with created date.