Skip to content

Instantly share code, notes, and snippets.

@odirleiborgert
Created March 28, 2017 19:27
Show Gist options
  • Save odirleiborgert/88eb2937362e87a245b038c2d2aab8e9 to your computer and use it in GitHub Desktop.
Save odirleiborgert/88eb2937362e87a245b038c2d2aab8e9 to your computer and use it in GitHub Desktop.
List.vue
<script>
import Painel from '@/components/Painel'
import { Clients } from './../../resources/clients'
export default {
name: 'painel',
head: {
title: {
inner: 'Clientes'
}
},
components: {
'ui-painel': Painel
},
mounted () {
Clients.get().then(response => {
this.data = response.data.clients
this.loading = false
}).catch(response => {
this.loading = false
})
},
data () {
return {
data: [],
loading: true
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment