问题描述
我搜索了这一点,但没有得到适当的答案
天气,我们能够使用CouchDB与angular.js框架直接连接
i search for this but not get proper answerweather 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调用。该看起来是合适的人选。
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连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!