'Jquery.timeline in Angular 2+ project
i must use jquery.timeline in angular project, i know that not good idea, but i must.
https://www.npmjs.com/package/@vsilva472/jquery-timeline
I try this:
package.json
"jquery": "^3.6.0",
index.html
<link href="https://cdn.jsdelivr.net/gh/ka215/jquery.timeline@main/dist/jquery.timeline.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/ka215/jquery.timeline@main/dist/jquery.timeline.min.js"></script>
angular.json
"scripts": [
"node_modules/jquery/dist/jquery.min.js"
]
app.component.ts
$(() => {
$("#myTimeline").timeline();
});
ERROR:
**.timeline is not a function**
Does anyone know how I could use this in an angular project?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
