Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Widget HTML template

Log in to subscribe to topics and get notified when content changes.

Widget HTML template

Use the HTML template in the Widget Editor to leverage Angular JS's two-way binding to bind your controller variables to your markup. It uses the controllerAs c syntax for basic binding.

This information is for pro code users. Only make changes to HTML templates if you have a firm understanding of AngularJS.

For example, the Stock widget uses the following HTML:
  ${Symbol Lookup}: 
  <input ng-model="" ng-model-options="{debounce: 750}" ng-change="c.update()" placeholder="{{::data.typeSymbolMsg}}" />
  <div ng-show="" style="font-size: 2em;">        
    <p>${Stock Price}: 
      <span ng-if="!">${Requesting stock price}</span><span>{{ | currency:"$"}}</span>
    <img ng-src="{{}}&t=1d&z=l" />