issue collector for angularjs

Matt Fiocca June 17, 2016

We were given this issue collector snippet to embed on our app:

<script>
jQuery.ajax({
	url: "[jira_collection_url]",
	type: "get",
	cache: true,
	dataType: "script"
});
</script>

The problem, is that we are using AngularJS, and do not make use of jQuery. We've added jQuery for the sole purpose of rendering the issue collector into our pages, but once the feedback button is clicked, jQuery is reporting  the error: `Uncaught TypeError: a.indexOf is not a function`. I suspect its because we have angular and jquery running side by side, and something is goofed.

Does anyone know if there is an angular implementation of the issue collector?

4 answers

1 accepted

0 votes
Answer accepted
Matt Fiocca August 30, 2016

The problem was jQuery 3.x. Dropping our version to 1.12 fixed the problem.

0 votes
Matt Fiocca August 30, 2016

I just posted our fix as the answer to this. it was our version of jQuery. $(window).on('load', function(){}); was producing the same issue for us.

 

0 votes
Vana Bharathi Raja T August 29, 2016

I fixed the issue by placing the given script inside the $(window).on('load', function(){});

0 votes
Vana Bharathi Raja T August 29, 2016

Hi Matt,

Even I'm getting the same error, Can you share the fix If you found the solution for it.

--

Vana

Suggest an answer

Log in or Sign up to answer