Dollar sign followed by a curly bracket inside widget html

Alexander Kosak
Tera Expert

I am currently on the Helsinki Release

Cannot understand the purpose of dollar sign and curly braces inside label tag.

<label class="control-label" for="inputSuccess">${Location}</label>

The full HTML:

<form class="form-inline well">
 
<div class="form-group" ng-class="{'has-error': (c.errorMessage), 'has-success': (c.channel)}">
   
<label class="control-label" for="inputSuccess">${Location}</label>
   
<input type="text" class="form-control" id="weatherInput" placeholder="{{::data.enterLocMsg}}" ng-model="c.data.place">
   
<button type="submit" class="btn btn-default" ng-click="c.getWeather();">${Go}</button>
   
<span class="help-block" ng-bind="c.errorMessage" ng-if="c.errorMessage"></span>
 
</div>
</form>
<div class="panel panel-default" ng-if="c.channel">
 
<div class="panel-body">
   
<p>${Location}: {{c.channel.location.city}}, {{c.channel.location.region}} {{c.location.country}}</p>
   
<p>${Temperature}: {{c.channel.item.condition.temp}}</p>
   
<p>${Condition}: {{c.channel.item.condition.text}}</p>
   
<p>{{c.channel.item.condition.date}}</p>
 
</div>
</div>

1 ACCEPTED SOLUTION

Alexander Kosak
Tera Expert

https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/build/service-portal/concept/c_...



Use the HTML template to internationalize strings in a widget.


Type the following in an HTML template.


<div> <p>${This message will be internationalized.}</p> <p>However, this will NOT be.</p> </div>

Writing text as ${message} is the equivalent of writing ${gs.getMessage("message")} in other parts of the system, but written as a more legible shorthand.


View solution in original post

7 REPLIES 7

syedfarhan
Kilo Sage

Hi ,



I guess it is for Bootstrap .Calling an Class in the Label.




Thanks


what class has been called? where is this syntax should come from?


Alexander Kosak
Tera Expert

https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/build/service-portal/concept/c_...



Use the HTML template to internationalize strings in a widget.


Type the following in an HTML template.


<div> <p>${This message will be internationalized.}</p> <p>However, this will NOT be.</p> </div>

Writing text as ${message} is the equivalent of writing ${gs.getMessage("message")} in other parts of the system, but written as a more legible shorthand.