Echo - the best Angular developers
How Angular works: components.
Angular applications consist of independent elements. These elements are called components, and each component has its own behavior.
For example, a news feed is one component. Responsible for displaying the news list on the page. The "Read" button is another component. Responsible for navigating from the news list page to the selected news.
Usually a component is programmed so that it displays an element on the screen and performs some action. The component can react to a click, collapse, expand, hide, transfer to another page, and so on.
Custom Angular Development Services with Echo - click here
Components obey life cycles - they change and work according to several programmed scenarios. Let's take a situation when we go from a news list page to one news item. In this case, the News Feed component is destroyed and re-created if necessary. Life cycles unload memory and speed up the application.
How Angular works: modules.
All components are connected to the main or additional modules. Modules control components. The main module controls the entire application, and additional modules monitor the operation of individual elements.
There are a lot of additional modules. They perform a narrow task, obey the main module and are needed to unload it - they are responsible for navigation, animation, component storage, interaction with the browser and other actions.
