25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 5.16. Model as a JSON string in the console If we change the log comm<strong>and</strong> to<br />

console.log(JSON.parse(model));, we see our model not as a string, but as a JavaScript object:<br />

Figure 5.17. Model as an object in the console We've now successfully gotten our model from the backend<br />

into the frontend app!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!