SlideShare a Scribd company logo
1 of 30
Download to read offline
Angular
Angular is dead, long live the Angular
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Once upon a time,
2
in a kingdom far far away, there was a soldier…
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Years went by…
3
and the war started
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
The time has come…
4
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Improvements
5
• Performance Improvements
• Mobile Support
• TypeScript
• No $scope in Angular 2
• Component based Programming and…
• Simplicity
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
So, What is Angular?
6
Framework for building client applications
in HTML using JavaScript or TypeScript.
TypeScript?
Typed superset of Javascript that compiles
to plain Javascript
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Architecture
7
Building blocks
• Module
• Component
• Template
• Metadata
• Data Binding
• Service
• Directive
• Dependency Injection
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Architecture
8
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Component Hierarchy
9
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Component Hierarchy
10
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Component Hierarchy
11
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Component Hierarchy
12
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Module or NgModule
13
What is it?
• NgModules help organize an application into cohesive
blocks of functionality.
• A class with a decorator @NgModule decorator
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular vs JavaScript Modules
14
• In JavaScript each file is a module and all objects defined
in the file belong to that module
• Angular ships as a collection of JavaScript modules
Each Angular library name begins with the @angular
prefix.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Components
15
• A component controls a patch
of screen called “view”.
• You define a component's
application inside a class.
• The class interacts with the view
through an API of properties
and methods.
• Angular creates, updates, and
destroys components as the
user moves through the
application.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Templates
16
A template is a form of HTML that tells Angular how to render
the component.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Metadata
17
Metadata tells Angular how to process a class.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Data Binding
18
• A mechanism for coordinating parts of a template with
parts of a component.
• Four forms of data binding — to the DOM, from the DOM,
or in both directions.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Data Binding
19
Two-way
• Combines property and event binding in a
single notation
• A data property value flows to the input box
from the component as with property
binding.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Directives
20
• Appear within an element tag as attributes
• Alter the appearance or behavior of an existing element
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Services
21
• Anything can be a service
a service is typically a class with a narrow, well-defined
purpose
• It should do something specific and do it well
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Dependency Injection
22
• A way to supply a new instance of a class with the
fully-formed dependencies it requires.
• Most dependencies are services.
• Angular uses dependency injection to provide new
components with the services they need.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Dependency Injection
23
Injector
• An injector maintains a container of
service instances that it has
previously created.
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular Architecture
24
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Putting them all together
25
Webpack
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Suddenly the war started…
26
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular CLI
27
to the rescue….
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Angular CLI
28
to the rescue….
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Demo Time
29
Angular - Angular is dead, long live the Angular… Stoiximan NT 2017
Directives
30
Syntactic Sugar
• The asterisk is "syntactic sugar" for something a bit more
complicated. Internally, Angular desugars it in two stages.
• First, it translates the *ngIf="..." into a template attribute,
template="ngIf ...", like this.

More Related Content

Similar to Angular - Angular is dead, long live the Angular

4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
tilejak773
 

Similar to Angular - Angular is dead, long live the Angular (20)

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 IO
Angular IOAngular IO
Angular IO
 
TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)
 
Angular - The Return of The King
Angular - The Return of The KingAngular - The Return of The King
Angular - The Return of The King
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
 
Angular 4 and TypeScript
Angular 4 and TypeScriptAngular 4 and TypeScript
Angular 4 and TypeScript
 
Foster - Getting started with Angular
Foster - Getting started with AngularFoster - Getting started with Angular
Foster - Getting started with Angular
 
Introduction to angular 2
Introduction to angular 2Introduction to angular 2
Introduction to angular 2
 
Integrating AngularJS into the Campus CMS
Integrating AngularJS into the Campus CMSIntegrating AngularJS into the Campus CMS
Integrating AngularJS into the Campus CMS
 
Building blocks of Angular
Building blocks of AngularBuilding blocks of Angular
Building blocks of Angular
 
Angular
AngularAngular
Angular
 
Angular2
Angular2Angular2
Angular2
 
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
 
Cross Platform Angular 2 and TypeScript Development
Cross Platform Angular 2 and TypeScript DevelopmentCross Platform Angular 2 and TypeScript Development
Cross Platform Angular 2 and TypeScript Development
 
Angular 5 presentation for beginners
Angular 5 presentation for beginnersAngular 5 presentation for beginners
Angular 5 presentation for beginners
 
AngularConf2016 - A leap of faith !?
AngularConf2016 - A leap of faith !?AngularConf2016 - A leap of faith !?
AngularConf2016 - A leap of faith !?
 
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
 
The evolution of Angular 2 @ AngularJS Munich Meetup #5
The evolution of Angular 2 @ AngularJS Munich Meetup #5The evolution of Angular 2 @ AngularJS Munich Meetup #5
The evolution of Angular 2 @ AngularJS Munich Meetup #5
 
Angular 9
Angular 9 Angular 9
Angular 9
 
01 introduction to struts2
01 introduction to struts201 introduction to struts2
01 introduction to struts2
 

Recently uploaded

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Recently uploaded (20)

WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 

Angular - Angular is dead, long live the Angular

  • 1. Angular Angular is dead, long live the Angular
  • 2. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Once upon a time, 2 in a kingdom far far away, there was a soldier…
  • 3. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Years went by… 3 and the war started
  • 4. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 The time has come… 4
  • 5. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Improvements 5 • Performance Improvements • Mobile Support • TypeScript • No $scope in Angular 2 • Component based Programming and… • Simplicity
  • 6. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 So, What is Angular? 6 Framework for building client applications in HTML using JavaScript or TypeScript. TypeScript? Typed superset of Javascript that compiles to plain Javascript
  • 7. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Architecture 7 Building blocks • Module • Component • Template • Metadata • Data Binding • Service • Directive • Dependency Injection
  • 8. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Architecture 8
  • 9. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Component Hierarchy 9
  • 10. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Component Hierarchy 10
  • 11. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Component Hierarchy 11
  • 12. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Component Hierarchy 12
  • 13. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Module or NgModule 13 What is it? • NgModules help organize an application into cohesive blocks of functionality. • A class with a decorator @NgModule decorator
  • 14. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular vs JavaScript Modules 14 • In JavaScript each file is a module and all objects defined in the file belong to that module • Angular ships as a collection of JavaScript modules Each Angular library name begins with the @angular prefix.
  • 15. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Components 15 • A component controls a patch of screen called “view”. • You define a component's application inside a class. • The class interacts with the view through an API of properties and methods. • Angular creates, updates, and destroys components as the user moves through the application.
  • 16. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Templates 16 A template is a form of HTML that tells Angular how to render the component.
  • 17. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Metadata 17 Metadata tells Angular how to process a class.
  • 18. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Data Binding 18 • A mechanism for coordinating parts of a template with parts of a component. • Four forms of data binding — to the DOM, from the DOM, or in both directions.
  • 19. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Data Binding 19 Two-way • Combines property and event binding in a single notation • A data property value flows to the input box from the component as with property binding.
  • 20. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Directives 20 • Appear within an element tag as attributes • Alter the appearance or behavior of an existing element
  • 21. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Services 21 • Anything can be a service a service is typically a class with a narrow, well-defined purpose • It should do something specific and do it well
  • 22. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Dependency Injection 22 • A way to supply a new instance of a class with the fully-formed dependencies it requires. • Most dependencies are services. • Angular uses dependency injection to provide new components with the services they need.
  • 23. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Dependency Injection 23 Injector • An injector maintains a container of service instances that it has previously created.
  • 24. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular Architecture 24
  • 25. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Putting them all together 25 Webpack
  • 26. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Suddenly the war started… 26
  • 27. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular CLI 27 to the rescue….
  • 28. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Angular CLI 28 to the rescue….
  • 29. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Demo Time 29
  • 30. Angular - Angular is dead, long live the Angular… Stoiximan NT 2017 Directives 30 Syntactic Sugar • The asterisk is "syntactic sugar" for something a bit more complicated. Internally, Angular desugars it in two stages. • First, it translates the *ngIf="..." into a template attribute, template="ngIf ...", like this.