Selecting a Specific Version of AngularJS
TIBCO Enterprise Administrator ordinarily uses the latest release of AngularJS. However, new releases of AngularJS do not always guarantee backward compatibility with earlier releases. To protect against incompatibilities in new AngularJS releases, you can select a specific version of AngularJS when you customize a GUI.
Procedure
In the static resources folder of the agent, edit the file
customization.json. Within the
app definition, set the attribute
angular_version.
For example, the Tomcat sample could request most recent release of AngularJS version 1.2:
{ "tomcat": { "app": { "name": "tomcat-app", "modules": { "$strap.directives": "/tea/vendor/angularstrap/angular-strap.min.js", "tomcat": "scripts/tomcat.js" }, "angular_version": "1.2" }, } }TIBCO Enterprise Administrator supports a set of AngularJS versions from which a GUI developer can choose.
TIBCO Enterprise Administrator Release | AngularJS Support |
---|---|
1.2 | 1.2.14
1.0.8 |
1.1 and earlier | 1.0.8 |
Specify | Behavior |
---|---|
Two digits; for example, m.n | Requests the most recent supported release of that version of AngularJS. For example, "1.2" or "1.0". |
Three digits; for example, m.n.p | Requests a specific supported release of AngularJS. For example, "1.2.14". |
No customization | Automatically uses the most recent version of AngularJS that the TEA server supports. |
Customization, no version specified | Uses AngularJS 1.0.8. This behavior preserves backward compatibility of GUIs developed before this feature became available. For new GUIs, we recommend you explicitly specify an AngularJS version. |
Copyright © Cloud Software Group, Inc. All Rights Reserved.