你可以使用AngularJS与Parse.com吗? [英] Can you use AngularJS with Parse.com?

查看:163
本文介绍了你可以使用AngularJS与Parse.com吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的phonegap开发&我试图选择一个框架来使用。我想使用AngularJS,因为我已经阅读好的东西,但我想它与Parse.com作为后端。我注意到一个Parse.com他们没有指定与Angular的任何兼容性,所有他们的文档和Javascript API需要Backbone。

I am new to phonegap development & I am trying to pick a framework to use. I'd like to use AngularJS as I've read good things about it, but I'd like it to work with Parse.com as a backend. I noticed that one Parse.com they don't specify any compatibility with Angular, and all their documentation and Javascript API requires Backbone.

我知道AngularJS支持http,所以我可以使用REST API与Parse进行通信。但这是最终会是一个混乱&我会挽救自己的时间&如果我使用Backbone与Parse.com Javascript API而不是?

I know AngularJS supports http, so I can communicate with Parse using the REST API. But is this going to end up being a mess & will I save myself time & stress if I use Backbone with the Parse.com Javascript API instead?

推荐答案

我没有在Parse工作, long有一个REST API可用AngularJS可以很好地与Parse.com集成。这些链接证实了这一事实

I have not worked on Parse, but I believe as long there is a REST API available AngularJS can very well integrate with Parse.com. These links substantiate that fact

https://parse.com/questions/does-any-know-of-any-angularjs-sites-that-分别是开放原始码

http://brandid.github.io/parse-angular-demo/#/

说,AngularJS是一个非常有能力的框架,具有陡峭的学习曲线。简单的东西很简单,但是你需要把一个头朝下,开始学习不那么简单的东西,如指令一旦开始构建任何体面的应用程序。你投资学习AngularJS的越多,它变得越有收获。

Said that, AngularJS is a very capable framework with a steep learning curve. The simple stuff is simple but one needs to put ones head down and start learning the not so simple stuff like directives once one starts building any decent size application. The more you invest in learning AngularJS the more rewarding it becomes.

它在视图和代码方面有一个非常干净的分离。代码进一步组织成模块,工厂,服务,控制器,指令,过滤器等。

It has a very clean separation in terms of view and code. The code is further organized into modules, factories, services, controllers, directive, filters etc.

但仍然没有什么阻止你创建一个混乱的实现:)什么我已经意识到,即使你在AngularJS中创建混乱,效果是本地化的,而不是影响整个应用程序,由于Angular的模块化性质。

But still nothing stops you from creating a mess with the implementation :) What I have realized over the time is even if you create mess within AngularJS the effects are localized rather than affecting the complete application, due to the modular nature of Angular.

我建议您尝试使用AngularJS创建或查看一些示例(例如 TodoMVC

I suggest you try creating or looking at some samples with AngularJS (such as TodoMVC)

This is how i felt learning and implementing AngularJS solutions

这篇关于你可以使用AngularJS与Parse.com吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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