Introduction to Google AngularJS
Long time has passed since Google released an open-source web application framework which is aimed to help developers in web design, whether it is a mobile friendly website or any other. There are many pros and cons of using Angular in web development, so let us have a detailed look at some attributes of AngularJS and see if it is really such a good option for using it as a FrontEnd MVC. Angular follows a very intentional pattern of being data driven. Everything is declarative from the beginning.
Its advantages are:
- two-way binding
- full functional MVC pattern
- great community
- Google support :)
Still there are some disadvantages that make us reconsider using Angular in some projects:
- the performance is extremely fallen on big data lists
- there are a lot of ways to write a bad code style.
Factories are used to maintain one single instance of something for entire application. It performs the model role in the MVC pattern.
Controllers provide a scope for us to connect data/model and a view, but they are used just for data connections and the logical restraints around them.
Angular also provides us with filters to implement transformations of the data as it moves between the model and view.