Created
December 3, 2014 17:56
-
-
Save cmcdevitt/ff40633e3f0514c294d3 to your computer and use it in GitHub Desktop.
Add Angularjs to a ServiceNow Jelly Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> | |
| <g2:evaluate var="jvar_stamp"> | |
| var gr = new GlideRecord('sys_ui_script'); | |
| gr.orderByDesc('sys_updated_on'); | |
| gr.query(); | |
| gr.next(); | |
| gr.getValue('sys_updated_on'); | |
| </g2:evaluate> | |
| <g:requires name="angularjs.min.1.3.2.jsdbx" params="cache=$[jvar_stamp]" /> | |
| </j:jelly> | |
| <!-- | |
| 1. angularjs.min.1.3.2.jsdbx referenced a UI Script called angularjs.min.1.3.2 | |
| 2. jvar_stamp appends a time stamp to the URL to cause the cache to reload if the script changes | |
| 3. http://www.john-james-andersen.com/blog/service-now/adding-angularjs-servicenow-instance.html | |
| --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment