Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2018 07:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Musinux/9ab57dc5fc5aa0b88a1fad048ce27fdb to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="fr">
<meta charset="utf-8">
<title>Titre de la page</title>
nav ul li {
display: inline-block;
border: 1px solid red;
width: 200px;
<main id="app">
<li v-on:click="currentPage = 'accueil'">Accueil</li>
<li v-on:click="currentPage = 'quisommesnous'">Qui sommes-nous ?</li>
<section v-if="currentPage === 'accueil'" id="accueil">
<h1>Ceci est la page d'accueil</h1>
<p>Ceci est un petit texte pour accueillir nos visiteurs</p>
<section v-else-if="currentPage === 'quisommesnous'" id="quisommesnous">
<h1>Ceci est la page qui sommes-nous ?</h1>
<p>Ceci est le texte qui décrit qui je suis</p>
<section v-else>
Perdu ? VOus êtes ici.
<script src=""></script>
const app = new Vue({
el: '#app',
data: {
currentPage: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment