Follow by Email

Angular 2 - Usage


Why use Angular 2 ?

- Building a static content site allows you to use HTML and CSS and possibly some server-side code, but as soon as you want to add interactivity and data collection or modification, you find the need to jump into using some JavaScript, and when you start using JavaScript, you can quickly find yourself wanting some type of standard framework for managing common functionality you start writing throughout your site. 

Angular provides a base for building rich client-side applications with a specialization on data binding, so when your web app needs to update content in your UI as a user enters or modifies it, you can easily do that with Angular. 

Angular has a component architecture inspired by web components, so when your web app has a common UI element and elements with complex functionality, you can write them in Angular and get ease of reuse as well as modularity.

The Angular framework is not just about making the UI shine in this functionality. A clean dependency injection architecture is baked into the framework. So when you want to write business logic in your client-side code and keep it decoupled from your view logic, Angular dependency injection model makes it easy. And if you want to go beyond just a couple of forms and craft complex client-side single-page applications, Angular is primed with a router module that will allow you to create parent and child routes to components.As provided in the below architecture :




In short, Angular provides you the ability to build client-side web applications, even native applications, and manage their complexity over time.