The CreatorCon Call for Content is officially open! Get started here.

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

greg54
Tera Expert

Thank you guys for your responses!



I was able to use Ben's recommendation by defining the directive as an element rather than an attribute:



I.e,



<dhx-scheduler data="events" style="height:600px; width:800px"> </dhx-scheduler>




My custom directive was also restricted to be used as an attribute only, so I changed the restriction to allow both:


restrict: 'AE',




Thanks guys!


Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

I just noticed this post about getting started with AngularJS in ServiceNow and throwing in two posts I wrote about this. Mainly showing how to can Angular to get data from ServiceNow and present it in a UI Page och in your CMS.



It's Now or Never - A hitchhikers guide to ServiceNow and it's universe: Part 1: AngularJS, JSON & p...



It's Now or Never - A hitchhikers guide to ServiceNow and it's universe: Part 2: Making UI Page "Ser...