Intro to angular 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.