Skip to content

Competence grid for part 3

Use this grid to judge whether you are ready for part 4. Read each row and solve the check task next to it without looking anything up. If it feels easy, you have reached the goal. If not, the link in the last column takes you to the right place.

I can …Check taskLook it up
compare Vue, React and Angular by criteriaExplain in three sentences what speaks for Vue and what for React when an association with changing volunteers builds an app.Frameworks compared
read survey numbers together with their sourceExplain why the downloads of a package don't show the number of people who use it.Frameworks compared
create a project with create-vue and explain its filesCreate a project and explain what index.html, src/main.js and src/App.vue do.The first project
write a single file component with a style of its ownWrite a component whose heading is red without coloring the other headings of the app.The first project
use the Vue DevToolsFind the state of a component in the DevTools and change a value in it.The first project
show values with interpolation and v-bindShow a link for a thing whose address contains its id.Template syntax
render lists and conditionsShow only the things on loan without putting v-if and v-for on the same element.Template syntax
react to events and use modifiersWrite a link that counts a number up without the browser following it.Template syntax
hold state with ref and reactiveExplain why const { query } = filters breaks the search.Reactive state
derive values with computedCalculate the number of tools that are in right now.Reactive state
bind fields with v-model and modifiersBind a text field for the number of days so that a number arrives in the ref.Forms
check input and show messages accessiblyConnect an error message to its field so that a screen reader reads it out.Forms

For part 4 you mainly need single file components, the template syntax and ref with computed.

What Martina Hostettler's assignments in this part added up to is in the course repo in the folder case/03-vue/en. The app shows the catalog with a search, a filter by category and the number of things that are in. Every thing has a page of its own with the form for the reservation request. The rules of the request are in src/reservation.js, everything else in src/App.vue. The tests in the folder tests check the wishes from this part.

Terminal window
npm install
npm test

For the app, start the small server in one terminal and Vite in a second one, as in part 2.

Terminal window
npm run server
npm run dev

If you didn't finish everything in part 3, start part 4 from this state.

Text and figures are licensed under CC BY-SA 4.0, the code under the MIT License and the course data under CC0 1.0. The figures use the font Kalam under the SIL Open Font License 1.1. The sources are on GitHub.