you simply need to do
import * as Timeline from '../assets/js/timeline.js';
You can also do (at the top of your file) :
declare var Timeline: any;
Check also below for good practices.
More Related Contents:
- typescript anonymous object with variable based label value
- How to read form post data in angular4?As we can read posted params in .net using Request.Form[“key”] ,how to do it in Angular 4?
- Angular 2+ and debounce
- Angular 2: Two backend service calls on success of first service
- How to check whether is empty? (in Angular 2+ till now)
- How to use Local storage in Angular [duplicate]
- Angular 2 router event listener
- Subject vs BehaviorSubject vs ReplaySubject in Angular
- Module not found: Error: Can’t resolve ‘crypto’
- Angular 2: TypeError: l_thing0 is undefined in [{{thing.title}} in AppComponent@4:44]
- updating variable changes in components from a service with angular2
- Load existing components dynamically Angular 2 Final Release
- Angular 6: HTML table create dynamic columns and rows
- How to make a disabled reactive form Editable in Angular2
- Firestore Timestamp.fromDate not UTC
- Angular 5 Scroll to top on every Route click
- Angular 2 – How to pass URL parameters?
- Angular: In which lifecycle hook is input data available to the Component
- How to debug timed out waiting for asynchronous Angular tasks? Failure to find elements on angular page occurring
- Angular 4 Filter Search Custom Pipe
- Angular 2 typescript invoke javascript function
- Whats the difference between using a class and interface?
- How to handle query parameters in angular 2
- What does Angular 2 hashtags in template mean?
- How to loop over object properties with ngFor in Angular
- Angular 6: ERROR TypeError: “… is not a function” – but it is
- Angular2 – Expression has changed after it was checked – Binding to div width with resize events
- How to prevent angular material mat-menu from closing?
- Google Sign-In for Websites and Angular 2 using Typescript
- How to import socket.io-client in a angular 2 application?