-1
I’m trying to break line inside an object in Ionic 3, I’ve tried with n, n with
and nothing works the text always comes out in a single line, someone knows a solution thanks, follow the code
export const listaCafe = [
ingredientes:
"2 copos de farinha de grão-de-bico\n"+
"2 copos de leite\n"+
"4 colheres (chá) de fermento químico em pó\n"+
"3 unidades de ovo\n"+
"1 colher (chá) de sal\n"+
"3 colheres (sopa) de manteiga sem sal\n"+
"• tempero sugestão: salsinha, cebolinha, coentro e alecrim."
]
in my file ts i do a for and recover the data and make the connection with an Interpolation string in the view
<div>
<p>{{ingredientes}}
</div>
Have you tried <br>?
– André Vicente