简体   繁体   中英

How to import/integrate amazon aws-sdk to ionic2?

Ionic2 is Typescript based, and Amazon is providing javascript only version of its library.

Is it possible to integrate the Amazon aws-sdk into an Ionic2 app?

I have tried multiple methods including creating a typings file (and tsd), and trying to work out aws-cognito-angular2-quickstart but no luck so far...

Is creating an external javascript library and integrating it into the typescript code my only option?

Has anyone succeeded using Amazon Cognito from Ionic2 app?

You need to add typescript definitions of the AWS-SDK in your ionic2 and/or angular2 app. This will allow you to use all build-in functionalities provided in the AWS-SDK including Cognito. Look at here to get started.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM