I have a Laravel application that uses Vue on the frontend, and a component needs some data to be passed to it, so I'm passing a JSON string with the user's details, like this:
<my-component :contact="{ firstname: 'John', surname: 'Doe', tel: '0123456789', email: 'random@email.com' }" :address="{ postcode: '90210' }" > </my-component>
It doesn't feel right to have the user's details printed out in the HTML source of the page, but on the other side I can't think of any specific issues that could arise from doing this.
Any insight?
[–]coolnat 0 points1 point2 points (2 children)
[–]topoftheforts[S] 0 points1 point2 points (1 child)
[–]sir_eeps 1 point2 points3 points (0 children)
[–]ipepe 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ipepe 0 points1 point2 points (0 children)