I have the following div. I am trying to add a space between two templated variables, but the single quotes keep showing up on the screen:
<b class="stylefont" ng-click="ctrl.display(1)">
{{ctrl.car}} + ' ' + {{ctrl.car2}}
</b>
Simply do the following :
<b class="stylefont" ng-click="ctrl.display(1)">
{{ctrl.car + ' ' + ctrl.car2}}
</b>
You can use '& nbsp;' character ( non-breaking space )
<b class="stylefont" ng-click="ctrl.display(1)">
{{ctrl.car}} {{ctrl.car2}}
</b>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.