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

ionic2에서 설치한 plugin을 어떻게 import시켜 사용하는지 궁금합니다. #2

Open
jemoonjong opened this issue Mar 20, 2017 · 1 comment

Comments

@jemoonjong
Copy link

안녕하세요.
해당 플러그인을 ionic2에서 어떻게 import해서 사용해야 하는지 알려주시면 고맙겠습니다.

@dkd051
Copy link

dkd051 commented Mar 23, 2017

import { ... } ....;
...
declare var KakaoTalk:any; // 임폴트 구문 다음

...
kakaoShare(){
this.platform.ready().then(() => {
if(typeof(KakaoTalk) !== "undefined"){
KakaoTalk.share({...});
}
});
}

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