Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a space in a angular expression

i need to add another space between my word and my angular bind. Here my code:

<button class="button button-clear comp back" href="#">
     Comparto {{titolo}}
</button>

I tried with Comparto {{titolo}}, {{ titolo}}, {{ " " + titolo}}, {{ "\s" + titolo}} but all this method don't work :( how can i add this space?

like image 626
Steph8 Avatar asked Mar 22 '26 21:03

Steph8


1 Answers

Use &nbsp;

Like this:

<button class="button button-clear comp back" href="#">
     Comparto&nbsp;{{titolo}}
</button>

Read HTML Entities for more information.

like image 143
MBN Avatar answered Mar 26 '26 09:03

MBN