Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angularJS vs angular 2 for new project [closed]

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?

like image 480
tzortzik Avatar asked Jul 06 '16 17:07

tzortzik


People also ask

Is Angular 2 better than AngularJS?

Angular 2 is a newer version of AngularJS, released in 2016. This version of the framework using TypeScript, which is an open-sourced programming language maintained by Microsoft. Angular 2 is more useful for developing mobile applications and includes higher performance speeds than AngularJS.

What is the difference between AngularJS and angular 2?

AngularJS had features like controllers, $scope, $scope variables, etc. However, in Angular 2, these features were replaced by new features namely components and directives. AngularJS Features: MVC Framework: The 'Model View Control' architecture of AngularJS is dynamic in nature.

Is Angular 2 still supported?

Support policy and schedule It is then followed by 12 months of long-term support (LTS), during which only critical fixes and security patches are released. Angular versions v2 to v11 are no longer under support.

Is AngularJS better than Angular?

Each version of Angular has significant benefits, but there is much to gain in being up-to-date with the latest version. Angular is decidedly faster than AngularJS, has a mobile-driven approach, executes better with components, and enables smoother migration from earlier versions.


1 Answers

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.

like image 162
Anton Bessonov Avatar answered Sep 20 '22 06:09

Anton Bessonov