Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created December 16, 2014 20:22
Show Gist options
  • Select an option

  • Save cmcdevitt/4ccba6c3a26dbcd9d90c to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/4ccba6c3a26dbcd9d90c to your computer and use it in GitHub Desktop.
ServiceNow Angular Demo Page
<?xml version="1.0" encoding="utf-8" ?>
<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.mini.1.3.5.jsdbx" params="cache=$[jvar_stamp]" />
<div id='container' ng-app='myApp2'>
<label>Name:</label>
<input ng-model='yourName' type="text" placeholder="Enter a name here"/>
<hr/>
<h1>Hello {{yourName}}!</h1>
</div>
<script>
var app = angular.module('myApp2', []);
</script>
</j:jelly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment