To define the Global Type Ahead Java Script Component processing for your use, follow these steps:
- Edit the index.html file in the your root folder.
- 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.
- Line 7 makes the source code available to the web page.
- Line 9 identifies the customization file. For more information, see Customizing the Global Type Ahead Java Script Component.
- 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.
-
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.
- 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.
- \WebWidget\pb-address-complete\address-complete.js, the location of the template.html file, needs to be accurate based on your setup.