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

ECMAScript 6 Angular #24

Open
anandpatel opened this issue Nov 3, 2015 · 2 comments
Open

ECMAScript 6 Angular #24

anandpatel opened this issue Nov 3, 2015 · 2 comments

Comments

@anandpatel
Copy link

Does anyone know how I can use this as a Cordova plugin inside a angular project which is using ES6?

Just trying to figure out how to construct the controller or service to get it to run correctly.

@davidmarcbrown
Copy link

I'm in the same boat. My app won't compile because property 'MobileAccessibility' does not exist on type "Window"

How do we use this plugin?

@davidmarcbrown
Copy link

I ended up casting "window" as "any" in TS. Looks like:

(window as any).MobileAccessibility.relevantFunction((result)=>{
    // do something with result
});

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

No branches or pull requests

2 participants