新项目的 angularJS 与 angular 2 [英] angularJS vs angular 2 for new project

查看:28
本文介绍了新项目的 angularJS 与 angular 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正准备为我的 Scala 应用程序构建一个 UI.我对 Angular 1 有一些非常好的了解,但我对 Angular 2 知之甚少.

I am preparing to build an UI for my scala application. I have some very good knowledge about Angular 1 and I know very little about Angular 2.

我要问的问题是我是否应该在我的新应用程序中使用 Angular 2 而不是 Angular 1.

The question I am asking is whether I should use Angular 2 for my new application instead of Angular 1.

我在谷歌上搜索并阅读了一些关于 Angular 2 vs Angular 1 我已经知道的事情的文章,但我对专家关于这个主题的意见更感兴趣.我把问题放在这里的原因是这个主题在前两页中没有任何答案.我的应用程序在这一点上并不大,也不会那么大.

I googled this and read a few articles about things I already knew regarding Angular 2 vs Angular 1 but I am much more interested in the experts opinion regarding this subject. The reason I put the question here is that this subject didn't have any answer in the first two pages. My application is not big at this point and is not going to be that big.

那么我应该坚持使用 Angular 1 还是选择 Angular 2?为什么?

So should I stick with Angular 1 or go for Angular 2? Why?

推荐答案

对于全新的项目,我们遇到了同样的情况.我们决定坚持使用 Angular 1,因为:

We were in the same situation for the brand new project. We decide to stick with Angular 1, because:

  1. 快进.我们的截止日期很短.我们必须交付,而且我们知道如何使用 Angular 1.
  2. Angular 1 已准备好投入生产.虽然 Angular 2 不是问题,但在 Angular 2 周围都是问题.ui-router 处于 alpha 阶段,Angular 2 不存在某些模块.
  3. 开销.与 oclazyload 相比,AMD 或 SystemJS 有巨大的开销.我们没有现成的知识,即如何使用 Angular 2 减轻重量.我们没有时间计算 Angular 2 的每个方面.

所以,我认为,如果您的项目计划大约是 2 年或更长时间 - 选择 Angular 2.为了快进,请坚持您所知道的.

So, I think, if your poject plan is around 2 years or more - choose Angular 2. For fast forward stick with what you know.

这篇关于新项目的 angularJS 与 angular 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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