SlideShare a Scribd company logo
1 of 33
Download to read offline
ANGULARANGULAR
WHAT IS ANGULARWHAT IS ANGULAR
Angular is a platform that makes it easy to build applications with the web.
WHAT IS ANGULARWHAT IS ANGULAR
Angular is a platform that makes it easy to build applications with the web.
Developed by Google
WHAT IS ANGULARWHAT IS ANGULAR
Angular is a platform that makes it easy to build applications with the web.
Developed by Google
Uses languageTypeScript
WHY TYPESCRIPTWHY TYPESCRIPT
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
Catch a lot of errors/bugs in compile time
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
Catch a lot of errors/bugs in compile time
More clear inheritance
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
Catch a lot of errors/bugs in compile time
More clear inheritance
Annotations/Decorator
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
Catch a lot of errors/bugs in compile time
More clear inheritance
Annotations/Decorator
Advanced autocompletion
TYPESCRIPT (*.TS)TYPESCRIPT (*.TS)
Developed by Microso
Superset of JavaScript
Statically typed
Catch a lot of errors/bugs in compile time
More clear inheritance
Annotations/Decorator
Advanced autocompletion
Navigation
ARCHITECTUREARCHITECTURE
INITIALISATIONINITIALISATION
import { platformBrowserDynamic } from '@angular/platform-brow
import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
NGMODULENGMODULE
The basic building blocks of an Angular application are NgModules
Every Angular app has at least one NgModule class, the root module, which
is conventionally named AppModule
An NgModule is defined by a class decorated with @NgModule().
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@NgModule({
imports: [ BrowserModule ],
providers: [ Logger ],
declarations: [ AppComponent ],
exports: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
BUILD-IN NGMODULESBUILD-IN NGMODULES
COMPONENTSCOMPONENTS
@COMPONENT@COMPONENT
A component controls a patch of screen called a view
<root-template>
<header-component></header-component>
<list-component>
<item-component></item-component>
<item-component></item-component>
<item-component></item-component>
</list-component>
<footer-component></footer-component>
</root-template>
@COMPONENT@COMPONENT
@Component({
selector: 'app-tag',
templateUrl: './app-tag.component.html',
template: 'inline template'
providers: [ RssInfoService ]
})
export class RssDataComponent implements OnInit {
/* . . . */
}
TEMPLATETEMPLATE
<p><i>Some text</i></p>
<ul>
<li *ngfor="let padawan of padawans" (click)="selectPa
{{padawan.githubAccount}}
</li>
</ul>
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-
TEMPLATETEMPLATE
Regular HTML with additional template syntax
<p><i>Some text</i></p>
<ul>
<li *ngfor="let padawan of padawans" (click)="selectPa
{{padawan.githubAccount}}
</li>
</ul>
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-
TEMPLATETEMPLATE
Regular HTML with additional template syntax
Can use data binding to coordinate the app and DOM data
<p><i>Some text</i></p>
<ul>
<li *ngfor="let padawan of padawans" (click)="selectPa
{{padawan.githubAccount}}
</li>
</ul>
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-
TEMPLATETEMPLATE
Regular HTML with additional template syntax
Can use data binding to coordinate the app and DOM data
Can use pipes to transform data before it is displayed
<p><i>Some text</i></p>
<ul>
<li *ngfor="let padawan of padawans" (click)="selectPa
{{padawan.githubAccount}}
</li>
</ul>
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-
TEMPLATETEMPLATE
Regular HTML with additional template syntax
Can use data binding to coordinate the app and DOM data
Can use pipes to transform data before it is displayed
Can use directives to apply app logic to what gets displayed.
<p><i>Some text</i></p>
<ul>
<li *ngfor="let padawan of padawans" (click)="selectPa
{{padawan.githubAccount}}
</li>
</ul>
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-
@DIRECTIVE@DIRECTIVE
Transform DOM based on some conditions/rules
Structural directives
Attribute directives
<li *ngfor="let padawan of padawan
/* . . . */
</li>
<input [(ngmodel)]="hero.name">
DATA BINDINGDATA BINDING
Angular supports two-way data binding,
a mechanism for coordinating the parts
of a template with the parts of a
component.
1. Interpolation:
2. Property binding:
3. Event binding:
{{padawan.githubAccount}}
<app-padawan-detail [padawan]="selectedPadawan"></app-padawan-d
<li (click)="selectPadawan(padawan)">...</li>
SERVICE/@INJECTABLE()SERVICE/@INJECTABLE()
@Injectable()
export class Logger {
log(msg: any) { console.log(msg); }
error(msg: any) { console.error(msg); }
warn(msg: any) { console.warn(msg); }
}
Dependency Injection
Autowire/Inject dependencies
@Injectable({
providedIn: 'root'|ModuleName,
})
Autowire/Inject dependencies
@Injectable({
providedIn: 'root'|ModuleName,
})
@NgModule({
providers: [
BackendService,
Logger
],
...
})
Autowire/Inject dependencies
@Injectable({
providedIn: 'root'|ModuleName,
})
@NgModule({
providers: [
BackendService,
Logger
],
...
})
@Component({
providers: [
BackendService,
Logger
],
...
})
THANKSTHANKS

More Related Content

What's hot

What's hot (20)

Ngrx slides
Ngrx slidesNgrx slides
Ngrx slides
 
Getting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) AngularGetting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) Angular
 
Angular overview
Angular overviewAngular overview
Angular overview
 
Angular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web ApplicationsAngular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web Applications
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
 
angular fundamentals.pdf
angular fundamentals.pdfangular fundamentals.pdf
angular fundamentals.pdf
 
Angular 2.0 forms
Angular 2.0 formsAngular 2.0 forms
Angular 2.0 forms
 
Angular Interview Questions & Answers
Angular Interview Questions & AnswersAngular Interview Questions & Answers
Angular Interview Questions & Answers
 
NestJS
NestJSNestJS
NestJS
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular Components
 
What’s New in Angular 14?
What’s New in Angular 14?What’s New in Angular 14?
What’s New in Angular 14?
 
Angular
AngularAngular
Angular
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP Services
 
Angular 6 - The Complete Guide
Angular 6 - The Complete GuideAngular 6 - The Complete Guide
Angular 6 - The Complete Guide
 
Angular Basics.pptx
Angular Basics.pptxAngular Basics.pptx
Angular Basics.pptx
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - Introduction
 
Angular modules in depth
Angular modules in depthAngular modules in depth
Angular modules in depth
 
AngularJS Architecture
AngularJS ArchitectureAngularJS Architecture
AngularJS Architecture
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha Gadkari
 

Similar to Basic overview of Angular

Similar to Basic overview of Angular (20)

Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
 
An Overview of Angular 4
An Overview of Angular 4 An Overview of Angular 4
An Overview of Angular 4
 
Itsjustangular
ItsjustangularItsjustangular
Itsjustangular
 
Front End Development for Back End Developers - vJUG24 2017
Front End Development for Back End Developers - vJUG24 2017Front End Development for Back End Developers - vJUG24 2017
Front End Development for Back End Developers - vJUG24 2017
 
Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2
 
WCMTL 15 - Create your own shortcode (Fr)
WCMTL 15 - Create your own shortcode (Fr)WCMTL 15 - Create your own shortcode (Fr)
WCMTL 15 - Create your own shortcode (Fr)
 
Front End Development for Back End Developers - Devoxx UK 2017
 Front End Development for Back End Developers - Devoxx UK 2017 Front End Development for Back End Developers - Devoxx UK 2017
Front End Development for Back End Developers - Devoxx UK 2017
 
Front End performance as a Continuous Integration - Part1
Front End performance as a Continuous Integration - Part1Front End performance as a Continuous Integration - Part1
Front End performance as a Continuous Integration - Part1
 
Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...
Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...
Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...
 
Building an angular application -1 ( API: Golang, Database: Postgres) v1.0
Building an angular application -1 ( API: Golang, Database: Postgres) v1.0Building an angular application -1 ( API: Golang, Database: Postgres) v1.0
Building an angular application -1 ( API: Golang, Database: Postgres) v1.0
 
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
 
mean stack
mean stackmean stack
mean stack
 
Beyond AngularJS: Best practices and more
Beyond AngularJS: Best practices and moreBeyond AngularJS: Best practices and more
Beyond AngularJS: Best practices and more
 
Extending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native ModulesExtending Appcelerator Titanium Mobile through Native Modules
Extending Appcelerator Titanium Mobile through Native Modules
 
Google Web Toolkits
Google Web ToolkitsGoogle Web Toolkits
Google Web Toolkits
 
Maciej Treder "Server-side rendering with Angular—be faster and more SEO, CDN...
Maciej Treder "Server-side rendering with Angular—be faster and more SEO, CDN...Maciej Treder "Server-side rendering with Angular—be faster and more SEO, CDN...
Maciej Treder "Server-side rendering with Angular—be faster and more SEO, CDN...
 
Annotation Processing
Annotation ProcessingAnnotation Processing
Annotation Processing
 
Nativescript with angular 2
Nativescript with angular 2Nativescript with angular 2
Nativescript with angular 2
 
Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 

Basic overview of Angular