Reputation: 83
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.
Upvotes: 3
Views: 342
Reputation: 2400
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)
Upvotes: 1
Reputation: 298
Cloudant does not have the library support for Angular 2, so please call HTTP requests to Cloudant database through your Angular 2 web app.
Upvotes: 5