Angular Introduction

By | | Updated : 2019-11-23 | Viewed : 653 times

Angular Introduction

Every web application in modern days is designing as a Responsive Web Application. Here Web Technologies like HTML, CSS, and JavaScript are highly required to make applications as Responsive. Using Javascript is not that much to easy in Web Application implementation So the choice is Javascript framework which contains tools to implement the application easily. One of the best Javascript frameworks is Angular maintained by Google Inc. Angular is implemented as the MVVM framework is used in the implementation of Single Page Application.

JavaScript Framework

A JavaScript framework that helps us to implement the Web Application easily. Here JavaScript contains implemented in form of JS files for common web features so web developer is not required to implement Web Application from scratch level. Moreover, it provides some useful tools which are very helpful for implementation. It contains some of the Design Patterns which are not required to develop. For instance, the MVVM is a Design Pattern that is designed for Web Applications that is easy to help in coding and maintaining the application. MVVM is mainly designed for Single Page Application. So, the next question is what is a Single Page Application

Single Page Application

In Single Page Applications, the response will be reloaded dynamically on the current page rather than loading a new page. Applicatioin implemented in Web technoliges without bothering about the back end part. Unit testing also becomes very easy as it is providing good facilities to test. Page load will be very very fast as it has JSON as payload.

Angular JS Framework

It is implemented with Design pattern MVVM. So MVVM is the main feature of Angular Framework which talks about Two-way data binding. And moreover, it has implemented in Typescript which makes coding is very easy. It has come with so many features in Angular which makes coding and maintaining is very easy in the implementation of Single Page Application.

    Angular Advantages:

  • Angular application will reduce loading time means it will reload the response on the same page rather than loading on the new page.

  • Implementation of the unit test case will be very easy by mocking the service classes In Angular.

  • Angular is implemented in Typescript. So, the development of web applications will be easy.

    Angular Disadvantages:

  • To execute the angular application, browser needs to be enable JavaScript.

  • Angular application has less secure when compare to traditional application.

Angular Features:

Model View Controller: Angular is built upon the MVVM design pattern. It will be very useful to write the code neat and clean. MVVM is mainly described the data communication between Model to View.

Dependency Injection: It allows making a Class (Components and Services) as injectable. So Class can be injected anywhere which makes an application with loosely coupled Components / Services.

Directives: It contains the logic about rendering. Angular will use the directives before rendering the HTML view. The built-in directive is very useful to implement the view.

Two-Way Data Binding: Two-Way Data Binding means Property binding and Event binding. In Property Binding, the Data/Property value will be sent from the component to the template. In the Event binding, data will be sent from template to component. Two-Way Data Binding is a combination of Property binding and Event binding.

Components: To display application data as the dynamic view in HTML, Components will be used. Here Entire application is making with decoupled Components. So the organization of application is very easy.

Templates: The template contains the html code which is to be displayed as view.

Apart from the mentioned above features, it has many more features which will help us in implementation.

Expressions: It is an expression that is placed in {{}} of the HTML template. when encountering the expression for compilation then It is evaluated and executed by the Angular in rendering phase of the HTML Template. The {{}} is called Interpolation.

Module: The combination of different types of code blocks (Services, Components) is called Module.

Controller and Services: Which are the core part of the Angular application that will helpful for data manipulation.

Filters: These are the data formats using which we can display the formatted data in the DOM.

Routing: it is one of the heart features of the Angular for routing the tabs in the Html page.

Leave A Reply