T
T
Think With Your Head2015-10-07 16:51:59
JavaScript
Think With Your Head, 2015-10-07 16:51:59

Should I learn Angular.js from version 2 or start from version 1?

Hello!
There was a similar question here somewhere.
But since Angular-2 is generally rewritten in typescript, it turns out that it will still be necessary to enter this topic.
In addition, there are a lot of applications written on the first angular, but it is not clear how long they will exist. It may be necessary to rewrite the application for some clients from the first to the second, and it will be useful to know both versions.
So score on the first and teach the second right away, or, as I wrote above, will both come in handy?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-10-07
@Vyad

Angular 1.5 was conceived by the authors as a transition point, which would make it easier for people to migrate from the first to the second. So learn angular 1.x and follow the style guide . Well, read about MVC, about the component approach to development on Angularjs. (rejection of two-way data binding, data should go only in one direction, emphasis on the classic MVC scheme).

N
Nikita Lavrenko, 2015-10-15
@Nikita_Lavrenko

I recommend starting with the first one, but without going too deep into the smallest details.
Just understand how it works, how it works, look at application examples. Deal with entities like controller, view, directive, service, read the guidelines (without fanaticism, because there are differences in different guidelines.
Another important point, angularjs is extremely rarely used without additional libraries. You
should look at what is used. For example ui-router is used in 80% of cases.Next,
I would recommend to file a simple project for yourself or if there is a customer, using all the entities and following some kind of guideline.
And then move to the second version. I will not recommend here on what to write, because. I haven't decided myself yet. Hands do not reach. I think we should wait for ng-conf 2015 - there may be a release and they will talk about how best to choose: TS or ES6. ES5 is not considered, because. really outdated.
Good luck with your study. Angular is cool! :)

A
Alexander, 2015-10-15
@StGeass

Look at what your goal is.
If for new projects - the second angular, and if you are a freelancer and you need the greatest coverage of clients - the first version.
Old customers will most likely not want to switch to the new version, it makes no sense for them, so the demand for 1.x will be stable for a long time.
I myself have been using the first version for 3 years, and would recommend starting immediately with the second if you are doing something for yourself. The documentation there will soon be ready and the release is just around the corner.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question