Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- methods() {
- read() {
- window.axios.get('/api/cruds').then(({ data }) => {
- // console.log(data)
- });
- },
- ...
- }
- /*
- Sample response:
- [
- {
- "id": 0,
- "name": "ijjpfodc",
- "color": "green",
- "created_at": "2018-02-02 09:15:24",
- "updated_at": "2018-02-02 09:24:12"
- },
- {
- "id": 1,
- "name": "wjwxecrf",
- "color": "red",
- "created_at": "2018-02-03 09:26:31",
- "updated_at": "2018-02-03 09:26:31"
- }
- ]
- */
Add Comment
Please, Sign In to add comment