Skip to content

Commit

Permalink
wire it up
Browse files Browse the repository at this point in the history
  • Loading branch information
sdras committed Mar 24, 2018
1 parent b4dbe09 commit 8654d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ jspm_packages

# Nuxt build
.nuxt
# but not this file
!.nuxt/nuxt.js

# Nuxt generate
dist
16 changes: 2 additions & 14 deletions components/AppNavigation.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<template>
<nav>
<h2>Simple Transition Group For Layout {{ page }}</h2>
<p>{{ $store.state.page }}</p>
<h2>Simple Transition Group For Layout: {{ page }}</h2>
<ul>
<nuxt-link exact to="/"><li>index</li></nuxt-link>
<nuxt-link to="/about"><li>about</li></nuxt-link>
<nuxt-link to="/users"><li>users</li></nuxt-link>
</ul>
<button @click="changeIt">Change</button>
<br>
<svg :class="{ active: changed }" xmlns="http://www.w3.org/2000/svg" width="350" height="350" viewBox="0 0 447 442">
<svg :class="{ 'active' : (page === 'about') }" xmlns="http://www.w3.org/2000/svg" width="350" height="350" viewBox="0 0 447 442">
<transition-group name="list" tag="g">
<rect class="items rect" ref="rect" key="rect" width="171" height="171"/>
<circle class="items circ" key="circ" id="profile" cx="382" cy="203" r="65"/>
Expand All @@ -28,16 +26,6 @@
import { mapState } from 'vuex'
export default {
data() {
return {
changed: false
}
},
methods: {
changeIt() {
this.changed = !this.changed
}
},
computed: mapState(['page'])
}
</script>
Expand Down

0 comments on commit 8654d06

Please sign in to comment.