Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <template>
  2. ...
  3. <span v-if="total > 0" class="badge">{{ total }}</span>
  4. ...
  5. </template>
  6. <script>
  7. import { mapGetters } from 'vuex'
  8. export default {
  9. mounted() {
  10. this.initialMount()
  11. },
  12. computed: {
  13. ...mapGetters(['total'])
  14. },
  15. methods: {
  16. initialMount() {
  17. Echo.private('App.User.' + window.Laravel.authUser.id).notification((notification) => {
  18. ...
  19. })
  20. },
  21. }
  22. }
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement