Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to use angular js in native UI's like UI page or UI macro

AJAY BIRADAR
Tera Contributor

Step 1:  We need a external library of angular js that we can get from cdn source and store that whole code in ui script of servicenow

 

Link to get the library code: https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.11/angular.min.js

AJAYBIRADAR_0-1707156537381.png

Step 2: In UI page I can use angular js now by using <g:requires> tag

AJAYBIRADAR_1-1707156551813.png

Step 3: click on try it button you will be able to see

AJAYBIRADAR_2-1707156624571.png

 

0 REPLIES 0