问题描述
如果我们可以直接将couchDB与angular.js框架连接起来
I have searched for this but did not get proper answer if we can connect couchDB directly with angular.js framework
或
我们必须得到node.js的帮助。
We have to take help of node.js for that.
推荐答案
虽然我没有角度的经验.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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!