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

How can i import to angular 5 component? #258

Open
oalkandev opened this issue Jan 10, 2018 · 1 comment
Open

How can i import to angular 5 component? #258

oalkandev opened this issue Jan 10, 2018 · 1 comment

Comments

@oalkandev
Copy link

oalkandev commented Jan 10, 2018

i can do install with npm and set script angular-cli.json but i dont know how to initialize in angular5 component .ts file? Would you like help me please?

@bravik
Copy link

bravik commented Mar 16, 2018

Install typescript types for slideout: npm install --save @types/slideout
then import it in your component:
import * as Slideout from 'slideout';

 ngOnInit() {
        this.slideout = new Slideout({
            'panel': document.getElementById('panel'),
            'menu': document.getElementById('menu'),
            'padding': 256,
            'tolerance': 70
        });
    }

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