Created
March 28, 2017 19:27
-
-
Save odirleiborgert/88eb2937362e87a245b038c2d2aab8e9 to your computer and use it in GitHub Desktop.
List.vue
This file contains hidden or 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
<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