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.
Asked
Active
Viewed 329 times
2 Answers
5
Cloudant does not have the library support for Angular 2, so please call HTTP requests to Cloudant database through your Angular 2 web app.

Carthage
- 298
- 2
- 8
1
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)

Adrien Arcuri
- 1,962
- 1
- 16
- 30