Support Topics Documentation Slack YouTube Blog

JS Code Generation

How can I use my generated code in a Ionic 2 app (typescript, angular 2)?
(I already connect the JS-SDK)

The generated code is in JavaScript, while Angular2 uses Typescript. I believe you’d be better of if you do not rely on the codegen in this case since there are some important differences between TS and the generated JS. Have you seen the quick start guide for Angular 2?


Yeah, I’ve seen it. In fact I have already used the js-sdk with ionic2 perfectly. In the tutorial you give me I saw that you created the class there (I wanted to avoid that).

Thank you.