[英]Building a Web-Based Facebook application using SPA / Angular
i'm about to start building a new Web-Based Facebook Application (it's an entertainment application with more than 20 screens - it's large App). 我将要开始构建一个新的基于Web的Facebook应用程序 (这是一个具有20多个屏幕的娱乐应用程序-它是大型应用程序)。
My question is: Which is better using a SPA framework such as Angular ? 我的问题是:使用Angular这样的SPA框架哪个更好? or building the Application using the straight forward web technique? 还是使用简单的Web技术构建应用程序?
i mean by "straight forward web technique: every screen is in a separate page and navigation is done by links and passing URL parameters" 我的意思是“直截了当的网络技术:每个屏幕都在单独的页面中,并且导航是通过链接和传递的URL参数来完成的”
thanks in advance for your help, and i'd like to add the below notes to be considered in your answers 预先感谢您的帮助,我想在您的回答中添加以下注意事项
thanks a million 太感谢了
First you need to read this awesome answer then you'll have to decide , and I also recommend you do a great research regarding the use of RESTful APIs , because this is what you'll be using instead of the traditional HTTP page requests. 首先,您需要阅读这个很棒的答案,然后您必须做出决定,并且我还建议您对RESTful API的使用进行深入研究,因为这是您将要使用的,而不是传统的HTTP页面请求。
UPDATE 更新
After creating your RESTful API back-end you'll have to choose your framework for building SPA like AngularJS
or Backbone.js
or knockout.js
创建完RESTful API后端后,您必须选择用于构建SPA的框架,例如AngularJS
或Backbone.js
或knockout.js
AngularJS
In my opinion, Angular is a way to go, especially for large web applications with many sites. 我认为,Angular是一种解决之道,特别是对于具有许多站点的大型Web应用程序而言。 It enables you to modularize and reuse your code, but definetly requires some learning. 它使您可以模块化和重用代码,但是绝对需要一些学习。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.