I am currently working with vuejs2 and have a select
tag where a person
is selected, with their address properties directly bound to the element. I need to display the address of the selected person
. I attempted to use an array in order to print out the elements with line breaks between them.
{{
[
person.address_1,
person.address_2,
person.zip_code + ' ' + person.station_city,
person.country_name
].join('<br>')
}}
For example, this should be displayed:
5 Place Charles Béraudier
Gare de Lyon Part dieu
69003 LYON
France
However, I am facing issues with the formatting of the code. It is displaying the actual code instead of the values.