File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/examples/src/flight-booker/App Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ export default {
16
16
17
17
function book ( ) {
18
18
alert (
19
- `You have booked a ${ flightType . value } leaving on ${
20
- departureDate . value
21
- } ${ isReturn . value ? ` and returning on ${ returnDate . value } ` : `` } `
19
+ isReturn . value
20
+ ? `You have booked a return flight leaving on ${ departureDate . value } and returning on ${ returnDate . value } .`
21
+ : `You have booked a one-way flight leaving on ${ departureDate . value } . `
22
22
)
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ export default {
39
39
methods : {
40
40
book ( ) {
41
41
alert (
42
- `You have booked a ${ this . flightType } leaving on ${ this . departureDate } ${
43
- this . isReturn ? ` and returning on ${ this . returnDate } ` : ` `
44
- } `
42
+ this . isReturn
43
+ ? `You have booked a return flight leaving on ${ this . departureDate } and returning on ${ this . returnDate } . `
44
+ : `You have booked a one-way flight leaving on ${ this . departureDate } . `
45
45
)
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments