SlideShare a Scribd company logo
1 of 12
Angular
Javascript Web Framework
URL: https://angular.io/
Erik Lienhard
Khoa Do
What is Angular
• TypeScript-based front-end web application platform
• Open source
• Maintained mainly by Angular Team at Google
• Uses MVC Framework
• Service Based Architecture
• Install with npm install –g @angular/cli
Version History
• 2009 – AngularJS 1.0 released
• September 14, 2016 – Angular 2.0
• March 23, 2017 – Angular 4.0
• November 1, 2017 – Angular 5.0
Typescript
• Typescript is a typed superset of JavaScript that compiles to plain
JavaScript
• Open Source
• Contains interfaces. Example: interface IPerson { firstName: string; …
• Typed means that you can declare types. Example: fullName: string;
• Compile with tsc example.ts
• Install with npm install –g typescript@latest
Components
• Fundamental building blocks of Angular applications
• Display data on the screen, Listen for user input, and Take action based
on that input
• Typescript file that contains a class that has a @Component attribute
• Typescript file converted to Javascript during compilation
• Optional template html or in-lined
• Selector property is the markup. Example: selector: myele =>
<myele></myele>
• Can be generated by: ng generate component mycomponent
Dependency Injection
• A technique in software engineering whereby one object supplies the
dependencies of another object.
• Dependency is the object to be that can be used as a service.
• Injection is passing the dependency to the object that requires it
• Angular makes heavy use of dependency injection
• Example: constructor( myService: MyService) …
Services
• Components should be focused on managing views.
• Services should be the construct used to fetch or save data.
• Can be used to handle business logic.
• Can be used to share information among classes.
• Services are created by dependency injected and used by components or
other services.
• Can be created using a typescript class with @Injectable attribute.
• Can be generated: ng generate service myservice.
Routing
• Takes care of navigation in Angular
• Can be generated: generate module app-routing –flat –module=myapp
• Looks like the following:
• const routes: Routes = [{ path: ‘mypath', component: MyComponent }];
• Path is: /mypath
• RouterOutlet tells Angular where to display the output of the
component. Example: <router-outlet></router-outlet>
Calling a Remote Service
• Angular can call remote services
• Restrictions are not as strict as Ember
• import { HttpClient, HttpHeaders } from '@angular/common/http’;
• Returns Observable<MyObject>
• Call: this.http.get<MyObjecty>(“/myservice”)
Built with Angular
Notable Angular projects include:
Sources: http://www.mobiloitte.com/blog/top-10-apps-websites-developed-angularjs and https://www.eduonix.com/blog/web-programming-
tutorials/top-15-websites-and-apps-built-with-angularjs/
References
• http://angular.io - Main site
• http://angular.io/docs - documentation
 http://www.mobiloitte.com/blog/top-10-apps-websites-developed-
angularjs – Top 10 Angular Apps
Thank you!
Image source: http://wecoloringpage.com/emoticon-bowing-coloring-page/

More Related Content

What's hot

What's hot (20)

Angular 5 presentation for beginners
Angular 5 presentation for beginnersAngular 5 presentation for beginners
Angular 5 presentation for beginners
 
Swagger
SwaggerSwagger
Swagger
 
Angular introduction students
Angular introduction studentsAngular introduction students
Angular introduction students
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP Services
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
 
Angular components
Angular componentsAngular components
Angular components
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdf
 
Angular material
Angular materialAngular material
Angular material
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha Gadkari
 
Developing Faster with Swagger
Developing Faster with SwaggerDeveloping Faster with Swagger
Developing Faster with Swagger
 
Angular 14.pptx
Angular 14.pptxAngular 14.pptx
Angular 14.pptx
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - Introduction
 
Routing & Navigating Pages in Angular 2
Routing & Navigating Pages in Angular 2Routing & Navigating Pages in Angular 2
Routing & Navigating Pages in Angular 2
 
Basic overview of Angular
Basic overview of AngularBasic overview of Angular
Basic overview of Angular
 
Introduction to Swagger
Introduction to SwaggerIntroduction to Swagger
Introduction to Swagger
 
Rxjs ppt
Rxjs pptRxjs ppt
Rxjs ppt
 
Angular directives and pipes
Angular directives and pipesAngular directives and pipes
Angular directives and pipes
 
What is Angular?
What is Angular?What is Angular?
What is Angular?
 
Angular modules in depth
Angular modules in depthAngular modules in depth
Angular modules in depth
 

Similar to Angular

4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
tilejak773
 
Unlimited training using Angular p_p_t
Unlimited training  using Angular   p_p_tUnlimited training  using Angular   p_p_t
Unlimited training using Angular p_p_t
NeelaSaiKiran
 

Similar to Angular (20)

Angular IO
Angular IOAngular IO
Angular IO
 
Angular
AngularAngular
Angular
 
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
 
Angular js
Angular jsAngular js
Angular js
 
End to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJSEnd to-End SPA Development Using ASP.NET and AngularJS
End to-End SPA Development Using ASP.NET and AngularJS
 
Foster - Getting started with Angular
Foster - Getting started with AngularFoster - Getting started with Angular
Foster - Getting started with Angular
 
Building Blocks of Angular 2 and ASP.NET Core
Building Blocks of Angular 2 and ASP.NET CoreBuilding Blocks of Angular 2 and ASP.NET Core
Building Blocks of Angular 2 and ASP.NET Core
 
Angular js 2
Angular js 2Angular js 2
Angular js 2
 
Angular Live training basic to Advance
Angular Live training basic to Advance Angular Live training basic to Advance
Angular Live training basic to Advance
 
Best Angular Training Online: Angular tutorial | Learn Angular 2 to 10 |
Best Angular Training Online: Angular tutorial | Learn Angular 2 to 10 | Best Angular Training Online: Angular tutorial | Learn Angular 2 to 10 |
Best Angular Training Online: Angular tutorial | Learn Angular 2 to 10 |
 
Unlimited training using Angular p_p_t
Unlimited training  using Angular   p_p_tUnlimited training  using Angular   p_p_t
Unlimited training using Angular p_p_t
 
Angular js
Angular jsAngular js
Angular js
 
02 - Angular Structural Elements - 1.pdf
02 - Angular Structural Elements - 1.pdf02 - Angular Structural Elements - 1.pdf
02 - Angular Structural Elements - 1.pdf
 
Angular meetup 2 2019-08-29
Angular meetup 2   2019-08-29Angular meetup 2   2019-08-29
Angular meetup 2 2019-08-29
 
Angular - Chapter 3 - Components
Angular - Chapter 3 - ComponentsAngular - Chapter 3 - Components
Angular - Chapter 3 - Components
 
Angular 4
Angular 4Angular 4
Angular 4
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners Workshop
 
Angular js for Beginnners
Angular js for BeginnnersAngular js for Beginnners
Angular js for Beginnners
 
Introduction to AngularJs
Introduction to AngularJsIntroduction to AngularJs
Introduction to AngularJs
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 

Recently uploaded (20)

Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Angular

  • 1. Angular Javascript Web Framework URL: https://angular.io/ Erik Lienhard Khoa Do
  • 2. What is Angular • TypeScript-based front-end web application platform • Open source • Maintained mainly by Angular Team at Google • Uses MVC Framework • Service Based Architecture • Install with npm install –g @angular/cli
  • 3. Version History • 2009 – AngularJS 1.0 released • September 14, 2016 – Angular 2.0 • March 23, 2017 – Angular 4.0 • November 1, 2017 – Angular 5.0
  • 4. Typescript • Typescript is a typed superset of JavaScript that compiles to plain JavaScript • Open Source • Contains interfaces. Example: interface IPerson { firstName: string; … • Typed means that you can declare types. Example: fullName: string; • Compile with tsc example.ts • Install with npm install –g typescript@latest
  • 5. Components • Fundamental building blocks of Angular applications • Display data on the screen, Listen for user input, and Take action based on that input • Typescript file that contains a class that has a @Component attribute • Typescript file converted to Javascript during compilation • Optional template html or in-lined • Selector property is the markup. Example: selector: myele => <myele></myele> • Can be generated by: ng generate component mycomponent
  • 6. Dependency Injection • A technique in software engineering whereby one object supplies the dependencies of another object. • Dependency is the object to be that can be used as a service. • Injection is passing the dependency to the object that requires it • Angular makes heavy use of dependency injection • Example: constructor( myService: MyService) …
  • 7. Services • Components should be focused on managing views. • Services should be the construct used to fetch or save data. • Can be used to handle business logic. • Can be used to share information among classes. • Services are created by dependency injected and used by components or other services. • Can be created using a typescript class with @Injectable attribute. • Can be generated: ng generate service myservice.
  • 8. Routing • Takes care of navigation in Angular • Can be generated: generate module app-routing –flat –module=myapp • Looks like the following: • const routes: Routes = [{ path: ‘mypath', component: MyComponent }]; • Path is: /mypath • RouterOutlet tells Angular where to display the output of the component. Example: <router-outlet></router-outlet>
  • 9. Calling a Remote Service • Angular can call remote services • Restrictions are not as strict as Ember • import { HttpClient, HttpHeaders } from '@angular/common/http’; • Returns Observable<MyObject> • Call: this.http.get<MyObjecty>(“/myservice”)
  • 10. Built with Angular Notable Angular projects include: Sources: http://www.mobiloitte.com/blog/top-10-apps-websites-developed-angularjs and https://www.eduonix.com/blog/web-programming- tutorials/top-15-websites-and-apps-built-with-angularjs/
  • 11. References • http://angular.io - Main site • http://angular.io/docs - documentation  http://www.mobiloitte.com/blog/top-10-apps-websites-developed- angularjs – Top 10 Angular Apps
  • 12. Thank you! Image source: http://wecoloringpage.com/emoticon-bowing-coloring-page/

Editor's Notes

  1. 1