# Vue Native basics
# Information
Unless you're 100% confident with Vue Native already, complete the tasks at the bottom of this page before moving on to the labs. Ask the teacher if you need help!
Note
If you get an error likerunning scripts is disabled on this system
, you need to set your machines excecution policy by opening PowerShell as an administrator and run this command:Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
. Press A forYes to all
when it asks you to.
# Course Prerequisities
This course will rely on basic knowledge about
- HTML
- Javascript
- CSS
- Node / npm
Make sure you're up to date on these by watching the previous lectures
# Todays lecture
- How to install Vue (as shown here)
- Basic Components (as shown here)
- Conditionals & Loops (as shown here)
- Composing with components (as shown here)
# Misc links
# Introduction courses
Watch these lectures if you need a refresher on HTML, CSS and Javascript
# Excercise
Unless you're 100% confident with Vue Native already, complete these tasks before moving on to the labs
- Install
Node.js
,npm
,expo
andvue CLI
- Create a new project called
Excercise 1
- Add the following components
- A text view containing your name
- An empty text input
- An image of yourself
- A button with the title
Update name
- A button with the title
Hide your face
- Add a press-event on the
Update name
button that updates the contents of thename
component to show the contents of the text input - Add a press-event on the
Hide your face
button that toggles (hides/shows) the image of you - Add a custom component that contains a button with a red border (use a
touchable-opacity
for this) calledCustomButton.vue
- Add an array of 3 texts and use
v-for
to show all 3 texts as buttons using theCustomButton.vue
component