angularJS vs angular 2用于新项目 [英] angularJS vs angular 2 for new project

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

问题描述

我正在准备为我的Scala应用程序构建UI.我对Angular 1非常了解,而对Angular 2则了解甚少.

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

我在google上阅读了一些关于我已经知道的有关Angular 2 vs Angular 1的知识的文章,但是我对专家对此主题的看法更感兴趣.我在这里提出问题的原因是,此主题在前两页中没有任何答案.此时我的应用程序并不大,而且不会那么大.

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

解决方案

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

  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.

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.

The question I am asking is whether I should use Angular 2 for my new application instead of 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.

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

解决方案

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

  1. Fast forward. We have very thin deadlines. We must deliver and we have knowledge how do it with Angular 1.
  2. Angular 1 is production ready. Although Angular 2 isn't a problem, but all around Angular 2 it's. ui-router is in alpha, some modules doesn't exists for Angular 2.
  3. Overhead. AMD or SystemJS has huge overhead in comparison to oclazyload. We don't have knowledge out-the-box how to strip weight down with Angular 2. We don't have time to figure every aspect for 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 vs angular 2用于新项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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