Introduction to Angular
Introduction to Angular
to Angular
Bhushan Jawage
What is Angular ?
Angular is a JavaScript framework, which makes you able to create reactive
single Page Application (SPA’s).
It consists of serval components which forms a tree structure with Parent and
child components.
Version beyond 2+ are generally known as Angular Only. The very first version
angular 1.0 is known as AngularJS.
Angular is oriented to develop the front end uncoupled of the
backend.
Components
Templates
Metadata
Data Binding
Directives
Services
Modules :-
Modules are reusable, One Module’s components and services can be used
by another Modules
Components In Angular :-
An Angular component represents a portion of a view.
Class :-
a component class is a Typescript class that includes properties and methods.
Eventually, this class will be complied into JavaScript.
Metadata :-
It is some extra data for a component used by Angular to execute the component , such
as location of HTML and CSS files of the component.
Components :-
When you create new component, using Angular CLI Command
Each component consists of:
String Interpolation.
Property Binding
Event Binding
1. Component Directive – They are special directives in Angular. They are the directive
with a own template. e.g. <my-grid></my grid>
2. Structural Directive – Change the HTML DOM layout by adding and removing
elements. e.g. ngIf, ngFor ngSwitch etc.
This decorator tells angular that the class is a service and can be
injected into components that need that service.