Configuring Global Type Ahead Java Script Component Processing

To define the Global Type Ahead Java Script Component processing for your use, follow these steps:

  1. Edit the index.html file in the your root folder.
  2. Line 6 defines the AngularJS version being used for the Global Type Ahead Java Script Component. To replace the default AngularJS version, enter the version to use.
  3. Line 7 makes the source code available to the web page.
  4. Line 9 identifies the customization file. For more information, see Customizing the Global Type Ahead Java Script Component.
  5. Lines 11, 12, and 13 define the Cascading Style Sheets (CSS) that drive the index.html web page. To replace the default CSS, enter the CSS to use with the Global Type Ahead Java Script Component.
  6. Line 34 calls the Global Type Ahead Java Script Component.
    The web server and the Spectrum Technology Platform server do not need to be on the same physical machine or platform. For example, you could have the web server running on Linux accessing a Spectrum Technology Platform server running on Windows.
  7. The module name (for example, ng-app) and the controller (for example, ng-controller) need to match in both WebWidget/autoCompleteDemoApp.js and the index.html file.
  8. \WebWidget\pb-address-complete\address-complete.js, the location of the template.html file, needs to be accurate based on your setup.