Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active January 24, 2019 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/074f98c7c134a596a01268622b2bcd7d to your computer and use it in GitHub Desktop.
Save uno-de-piera/074f98c7c134a596a01268622b2bcd7d to your computer and use it in GitHub Desktop.
<template>
<div>
{{ $store.state.todosModule.todos.length}}
</div>
</template>
<script>
import todosModule from '../modules/todos'
export default {
name: 'TodosPage',
created () {
this.$store.registerModule("todosModule", todosModule);
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment