I'm currently working on integrating jQuery-UI into an application to utilize some sliders. I've successfully installed the typings for jQuery by running:
npm install @types/jquery --save
And it seems I've also installed the jQuery-UI typings with:
npm install @types/jqueryui --save
In addition, I have included the necessary jQuery and jQuery-UI CDN references in the index.html file:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SimutronApp</title>
<base href="/">
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
crossorigin="anonymous">
</script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous">
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
However, when testing in Firefox, I encounter the error:
t.fx is undefined jquery-ui.min.js:6
While Chrome throws the error:
cannot read property 'step' of undefined at <String>.anonymous
Has anyone encountered this issue before or can provide guidance on properly adding jQuery-UI to an Angular 4 project?