App.vue File

From rbachwiki
Revision as of 19:02, 17 October 2018 by Bacchas (talk | contribs) (Created page with "<pre> <template> <div id="app"> <Navigation></Navigation> <h1>Routing</h1> <hr> <transition> <router-view></router-view> </transition> </div> </template> <sc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<template>
  <div id="app">
    <Navigation></Navigation>
 <h1>Routing</h1>
 <hr>
 <transition>
    <router-view></router-view>
 </transition>

  </div>
</template>

<script>
import nav from './components/Header.vue'
export default {
  name: 'app',

  components:{
    Navigation: nav
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

h1, h2 {
  font-weight: normal;
}


</style>


VueJs Routing