新项目的角度1对角度2 [英] angular 1 vs angular 2 for new project

查看:112
本文介绍了新项目的角度1对角度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.

我用Google搜索了这篇文章,并阅读了一些关于Angular 2与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.

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

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