
When I’ve started working on projects with Angular 2 in beta version, I’ve been making common mistakes at the beginning liken trying to use ng-repeat or ngModel only in square brackets when I wanted two-way binding. In Angular, some directives have changed their names like ng-repeat to ngFor. We have to write it this way because of the fact that “” is used to property binding and “( )” is used to event binding. If you want to create two-way binding you must write it in: “”. Angular occurs only ngModel, but if you would write it only in: “”, you’ll get one-way binding. If you want to create one-way binding, you should use ng-bind. For example: ng-model in AngularJS means that you want to create two-way binding. Angular also has standard directives, but they are used in a bit different way. Angular in 4th version is backward compatible with Angular 2.ĪngularJS has many directives and every developer can also specify custom new directive. Creators purposely skipped number 3 to avoid a confusion due to the misalignment of the router package’s version, which was already distributed. Higher, because Angular 4 was announced on December 2016. Now, when people want to find some pieces of AngularJS code, they may find stuff connected with Angular 2 or higher. It sometimes may cause understatements, because after time, beta version was renamed to Angular. At first, the new framework was named Angular 2. More and more things were added to the core, so the Angular team decided to create a completely new framework. They’ve created a lot of useful packages that made coding even faster.

Over time it has gained support from many developers.

I must say that I was really fascinated in Angular. It made a step forward in testing front-end applications, because of its dependency injection mechanism which helps mock dependencies. Generally it allows us, programmers, to write applications in MVC or MVVM architecture (sometimes called MVW architecture (Model-View-Whatever) in simpler way.
ANGULARJS VERSIONS AND CHANGES CODE
Furthermore, AngularJS has directives that let us create more separated and reusable code than ever before. It brings us two‑way data binding and lets us see data changes in JavaScript automatically shown on the UI. AngularJS – or as some may prefer: Angular 1 – was created in 2009. If we want to use Angular in our project, we have to choose one of its versions – AngularJS or other. Probably, for most of front-end developers, Angular is a well known framework made for building web applications.
