Getting Started with AngularJS in ServiceNow

Rick Mann
Tera Expert

At the K14 conference I heard of a few customers starting to use AngularJS within ServiceNow, so I started doing some reading on Angular.   Are there any good articles, tips/tricks for getting started with AngularJS in ServiceNow?  

 

Thanks

 

Rick

41 REPLIES 41

Rick,



Yes, you would construct the query in the URL.



i.e. - ?JSONv2&sysparm_query=active=true


or to be more specific



?JSONv2&sysparm_getRecords&sysparm_query=active=true



In your example the request call will still work in the since that it will bring back the list of users. However it will bring all the users and not just the active ones. So you must include the "sysparm_query=" to filter.


ChrisBurks
Giga Sage

Rick,



How is the quest implementing AngularJS in ServiceNow? Were any of the articles that I suggested helpful?


I have a little more free time on my hands and was thinking about writing an article with a basic implementation of AngularJS in ServiceNow. Any interest?


I would definitely be interested in any guidance you may offer and assist with writing your article (QA and such…).   I've looked briefly at some of the links you provide, but we're slammed with trying to implement a lot of orchestration workflows.   Thanks for reaching out to me.


Okay. I'll get started writing it up.


ben_hollifield
Tera Guru

Hey all - I put together a utility that you may find useful as you dig into AngularJS in ServiceNow. Because an Angular app can hit a lot of places in ServiceNow (UI Scripts, Script Includes, UI Pages, etc), it can get a bit unwieldy to piece everything together and then to package it all up. The Share linked below helps out with that. It can be a bit finicky (particularly, you may need to check that the includes are added to your base UI page in the correct order), but it saves me loads of time. Hope you find it useful!



Accelerator for Web Apps on Share