Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Usage ? #610

Open
Vbboi24 opened this issue Mar 6, 2019 · 1 comment
Open

Angular Usage ? #610

Vbboi24 opened this issue Mar 6, 2019 · 1 comment

Comments

@Vbboi24
Copy link

Vbboi24 commented Mar 6, 2019

Can anyone pls help me use this awesome library in Angular 6 ?

@Blucbo
Copy link

Blucbo commented Sep 16, 2019

@Vbboi24 As you may have noticed, TimelineJS3 doesn't have npm package. You can use like extra script. You should download js file and add in your project. In angular.json set path to file in scripts.
"scripts": [ "./src/app/libs/timeline.js" ]

In .ts files you have error with TL(cannot find name) therefore use AS
(window as any).timeline = new (window as any).TL.Timeline('timeline-embed', yourConfig);

It works, but it doesn't look good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants