[英]add a space between two templated variables, angularjs
I have the following div. 我有以下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;' 你可以使用'&nbsp;' character ( non-breaking space )
人物( 不间断的空间 )
<b class="stylefont" ng-click="ctrl.display(1)">
{{ctrl.car}} {{ctrl.car2}}
</b>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.