Last active
March 9, 2017 22:00
-
-
Save colinf/70f84e48b6f748ea89fcecfbb1cb905d to your computer and use it in GitHub Desktop.
Links and route content with vue-router ( see http://j.mp/2m7IauQ )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-xs-2 menu-pane"> <!-- Section 1 --> | |
<ul class="nav nav-stacked"> | |
<li><router-link :to="teamLink">Teams</router-link></li> | |
<li><router-link to="/about">About</router-link></li> | |
</ul> | |
</div> | |
<div class="col-xs-10"> | |
<div class="row"> | |
<div class="col-xs-4"> <!-- Section 2 --> | |
<router-view></router-view> | |
</div> | |
<div class="col-xs-8"> <!-- Section 3 --> | |
<router-view name="detail"></router-view> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment