Intro to angular js

Главная » Tutorials » JavaScript » Intro to angular js

In this lesson we will begin to learn angular javascript framework. In our time there are a lot of javascript frameworks. Now there are three major frameworks: angular js, react js and vue js

Now angular is supported by Google. React js is facebook product.

Now let’s discuss some basics of angular js. Angluar extends HTML with its own directives. Also angular makes your code compact and smaller in volume. For example, form validation with jquery and angluar are different if we will consider code volume. Jquery gives your functions and you describe validation process. Angular already has got mechanism of validation and activate it when user initializes this event. You need not to describe logics of validation.
Next feature is directives. We considered two:
ng-app – initializes angular app.
ng-model – model designation.
It is important to notice, angular uses MVC pattern (Model-View-Controller). Model in angular is data. Controller is “link” between model and view. It realizes business logics.

In this lesson we created skeleton of our future app. We used sport application, which we had written in php and mysql.
In next lessons we will continue to build it with angular.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This