npm install
npm run serve
You will need to import this repository to you GitHub account, to do that please follow these steps:
- Go to Github import page
- Note: you have to be logged in to your GitHub account
- In the first field
"Your old repository’s clone URL"
enter URL of this repositoryhttps://github.com/tsotnekekelia/wad20-exam3-a
- In the next field give it a name
- Make it Private
- And begin to import, it should take few seconds
- Add me as a collaborator to your new repository, click here
to learn how
- My
email
andusername
on github is:cotne.kekelia@yahoo.com
andtsotnekekelia
- My
Modify FlightList.vue so that it displays all the flight objects that are passed to it from App.vue
- Display from, to, departure, arrival and price of each flight [5 points]
- Have a computed property called
sortedFlights
that sorts received list by departure (earliest to latest by default) [6 points] - Have a computed property called
total
that calculates total price of all flights and display it in thespan
element that has the idtotal
[6 points] - On click on the Departure label (element with id
departure-label
) toggle order of the list by departure time, from latest to earliest and vice versa [5 points] - have a filter
timeFormat
that formats departure and arrival times into this formatJan 30, 2021 3:15 PM
, Note: to make it easy, usemoment.js
library which is already installed. [3 points]