November 2017
Beginner to intermediate
398 pages
8h 42m
English
Now, it is time to put all of these into our overlay component and use the activeOverlay property we defined earlier.
<overlay v-if="activeOverlay"> <overlay-content-player-turn v-if="activeOverlay === 'player-turn'" /> <overlay-content-last-play v-else-if="activeOverlay === 'last-play'" /> <overlay-content-game-over v-else-if="activeOverlay === 'game-over'" /> </overlay>
Before adding the props, we will need to modify the app state in the state.js file with a few getters.
Read now
Unlock full access