如何通过angular.js使用CouchDB连接? [英] how to connect with couchDB by angular.js?

查看:182
本文介绍了如何通过angular.js使用CouchDB连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了这一点,但没有得到适当的答案
天气,我们能够使用CouchDB与angular.js框架直接连接

i search for this but not get proper answer weather we able to connect directly with couchDB with angular.js framework

我们必须使用Node.js的帮助这一点。

we have to use node.js help for that.

推荐答案

虽然我没有angular.js的经验,看的谷歌巴兹例如的它似乎有一个方法来处理JSON-提供资源。由于这是CouchDB是什么,我不认为有任何需要参与Node.js的。

While I have no experience of angular.js, looking at the Google Buzz example it appears to have a way to deal with JSON-providing resources. Since this is exactly what CouchDB is, I don't think there is any need for node.js to be involved.

所有CouchDB的功能可以通过HTTP请求进行访问,所以它应该适合权,如果有必要做AJAX调用。该 angular.service。$资源看起来是合适的人选。

All CouchDB functionality can be accessed via HTTP requests, so it should fit right in, if necessary by doing AJAX calls. The angular.service.$resource looks to be the appropriate candidate.

这篇关于如何通过angular.js使用CouchDB连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆