Closed devcer closed 6 years ago
Imported the js in my angular-cli.json using
angular-cli.json
"scripts": [ "../path" ];
added declare var SpacialNavigation:any; in typings.d.ts and imported in my app.component.ts as import * as SpacialNavigation from 'SpacialNavigation'; but the navigation doesn't work. any help?
declare var SpacialNavigation:any;
typings.d.ts
app.component.ts
import * as SpacialNavigation from 'SpacialNavigation';
It works for me now. No need to import SpacialNavigation and I should initialize after the content is loaded in ngAfterViewInit method!
ngAfterViewInit
Imported the js in my
angular-cli.json
usingadded
declare var SpacialNavigation:any;
intypings.d.ts
and imported in myapp.component.ts
asimport * as SpacialNavigation from 'SpacialNavigation';
but the navigation doesn't work. any help?