- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 09:25 AM
I am trying to do simple Rest Calls using angularjs posted here , it works fine if i select direct check box on the UI Page.
below is the error i am getting on console
i copied this angular version https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js
any thoughts? I am trying it on Helsinki.
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 03:22 PM
If you are going to use John's example, I think you will need to back up your angular version to closer to what he has. I think 1.5 will have problems with this. I logged onto to your developer instance to run this and if you click the link in that error, you get the below. It looks like some kind of incompatibility between Angular and Prototype.
Using angular this way is definitely the hard way. You have a Helsinki instance, I'd suggest you put your energy into Service Portal widgets rather than this style. This is how you had to do it pre Helsinki but your life is much easier if you let the system handle all the boiler plate for you.
Failed to instantiate module ng due to:
TypeError: Cannot set property 'aHrefSanitizationWhitelist' of null
at new <anonymous> (https://dev22202.service-now.com/scripts/doctype/js_includes_doctype.jsx?v=04-21-2016_1541&lp=Sun_Ju...)
at Object.instantiate (https://dev22202.service-now.com/scripts/js_includes_customer.jsx?v=04-21-2016_1541&lp=Sun_Jul_10_06...)
at Object.provider (https://dev22202.service-now.com/scripts/js_includes_customer.jsx?v=04-21-2016_1541&lp=Sun_Jul_10_06...)
at Object.invoke (https://dev22202.service-now.com/scripts/js_includes_customer.jsx?v=04-21-2016_1541&lp=Sun_Jul_10_06...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 10:03 AM
When you expand the error, what is contained in it? It would be helpful to see the stack trace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 10:06 AM
and showing your code as well will help. Minus that, it's somewhere between difficult and impossible to help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 11:00 AM
Can you load ang_lesson_3_lib.jsdbx? If you try it in a different tab do you actually get your UI script? Seems like it is not loading that.