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

Greg, you're correct.   However, I change it to this:


Screen Shot 04-27-15 at 02.21 PM.JPG



... and I get the same result.



Odd. I used your exact code in my Dublin instance and everything works fine. Maybe Ben can chime in on if there is something different that needs to be done in Fuji.


Has anyone been able to use this Accelerator app with "Fuji"?   If so, any ideas what I'm doing wrong?


Hi David,



I was able to get your sample working in Fuji.



I had to "reload frame" because old versions were being cached. You can try doing the same:



1.png2.png3.png


greg54
Tera Expert

I had a question for you AngularJS gurus.



I have a custom directive and when using it in my UI Page, I get the following error upon save:




Error at line (2130) Attribute name "dhx-scheduler" associated with an element type "div" must be followed by the ' = ' character.




The directive works fine when running outside ServiceNow, but I am not sure how to get around this error. Here is how the directive is used:




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