Does anyone have any example code for using an Angular 2 web app to CRUD data from a Cloudant database on IBM Bluemix? I have had some success developing an Ionic 2 application to do so. However, I am not sure how I can do the same for a standard Angular 2 Web App. I have been unable to find any good tutorials online.
Cloudant does not have the library support for Angular 2, so please call HTTP requests to Cloudant database through your Angular 2 web app.
There is no Cloudant library for Angular yet.
To develop a Cloudant communication in Angular, there are at least 2 options :
Code an HTTP service in Angular with the HttpClient. Exemple : How to code a Cloudant service with Angular (Link to Medium)
Use Cloudant NodeJS Client and adapt it to TypeScript. Exemple : See this article on Cloudant Blog (link to Cloudant Blog)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With