SlideShare a Scribd company logo
DIVE INTO ANGULAR,
PART 4: ANGULAR 2.0
_by Oleksii Prohonnyi
AGENDA
 What’s new
 Build Angular 2 app in 6 steps
 ES6 vs TypeScript
 Architecture
 Module
 Component
 Template
 Data binding
 Service
 1.x vs 2.0 comparison
 References
WHAT’S NEW
WHAT’S NEW
 Component-based
 Simplified directives
 Dependency injection
 TypeScript (ES6 + Types + Annotations)
 Generics
 Lambdas with TypeScript
 Forms and Validations
 See more: dzone.com
BUILD ANGULAR 2 APP
IN 6 STEPS
BUILD ANGULAR 2 APP
0. Install Node.js and npm.
1. Create and configure the project.
2. Create your application.
3. Create a component and add it to your application.
4. Start up your application.
5. Define the web page that hosts the application.
6. Build and run the application.
 Download example: github.com
 See more: angular.io
ES6 VS TYPESCRIPT
ES6 VS TYPESCRIPT
ES6 VS TYPESCRIPT
See more:
 EcmaScript 6/2015
 TypeScript
ARCHITECTURE
ARCHITECTURE
 The framework consists of several cooperating libraries, some of
them core and some optional.
 The eight main building blocks of an Angular 2 application:
– Modules
– Components
– Templates
– Metadata
– Data binding
– Directives
– Services
– Dependency injection
 See more: angular.io
ARCHITECTURE
MODULE
MODULE
 Every Angular app has at least one module, the root module,
conventionally named AppModule.
 An Angular module, whether a root or feature, is a class with an
@NgModule decorator.
 NgModule is a decorator function that takes a single metadata
object whose properties describe the module (declarations,
exports, imports, providers, bootstrap).
MODULE
COMPONENT
COMPONENT
 A component controls a patch of screen real estate that we could
call a view.
 We define a component's application logic — what it does to
support the view — inside a class.
 The class interacts with the view through an API of properties
and methods.
COMPONENT
COMPONENT
 In TypeScript, we attach metadata by using a decorator:
TEMPLATE
TEMPLATE
 We define a component's view with its companion template.
 A template is a form of HTML that tells Angular how to render the
component.
DATA BINDING
DATA BINDING
 Angular supports data binding, a mechanism for coordinating
parts of a template with parts of a component.
 There are four forms of data binding syntax. Each form has a
direction — to the DOM, from the DOM, or in both directions:
DATA BINDING
 Two-way data binding is an important fourth form that combines
property and event binding in a single notation, using the
ngModel directive.
SERVICE
SERVICE
 Service is a broad category encompassing any value, function, or
feature that our application needs.
 Almost 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.
1.X VS 2.0 COMPARISON
1.X VS 2.0: Data binding
1.X VS 2.0: Filters
1.X VS 2.0: Local variables
1.X VS 2.0: Ng-App
1.X VS 2.0: Ng-Class
1.X VS 2.0: Ng-Click
1.X VS 2.0: Ng-Controller
1.X VS 2.0: Ng-Href
1.X VS 2.0: Ng-If
1.X VS 2.0: Ng-Model
1.X VS 2.0: Ng-Repeat
1.X VS 2.0: Ng-Show
1.X VS 2.0: Ng-Src
1.X VS 2.0: Ng-Style
1.X VS 2.0: Ng-Switch
1.X VS 2.0: Controllers
1.X VS 2.0: Dependency injection
SEE MORE
SEE MORE
 Directive
 Dependency injection
 Wrapping
 Filters
 Input & output
 Forms
 Style guide
REFERENCES
REFERENCES
 https://angular.io/
 http://www.angular2.com/
 https://angular.io/docs/ts/latest/tutorial/
 http://eisenbergeffect.bluespire.com/all-about-angular-2-0/
 https://www.lynda.com/AngularJS-tutorials/Learn-AngularJS-2-
Basics/428058-2.html
 https://egghead.io/courses/angular-2-fundamentals
 http://learnangular2.com/
Dive into Angular, part 4: Angular 2.0
HOME TASK
HOME TASK
 Main idea: migrate existing application on a new version of
Angular.js framework.
 Technical details:
– Component structure
– Component router
– TypeScript/EcmaScript 6
– Readme with installation instructions
Oleksii Prohonnyi
facebook.com/oprohonnyi
linkedin.com/in/oprohonnyi

More Related Content

PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
PPTX
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
PPTX
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
PPSX
Angular 4 fronts
badal dubla
 
PPTX
Angular 4 and TypeScript
Ahmed El-Kady
 
PPTX
Angular 4 - quick view
Michael Haberman
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
Angular 4 fronts
badal dubla
 
Angular 4 and TypeScript
Ahmed El-Kady
 
Angular 4 - quick view
Michael Haberman
 

What's hot (20)

PPTX
Dive into Angular, part 2: Architecture
Oleksii Prohonnyi
 
PDF
Introduction to angular 2
Dhyego Fernando
 
PDF
Angular 2 - An Introduction
NexThoughts Technologies
 
PPTX
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
PDF
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
PPTX
Angular 5
Bartłomiej Narożnik
 
PPTX
An Overview of Angular 4
Cynoteck Technology Solutions Private Limited
 
PPTX
Angular 9 New features
Ahmed Bouchefra
 
ODP
Angular 6 - The Complete Guide
Sam Dias
 
PDF
Introduction to Angular 2
Naveen Pete
 
PPTX
Angular 9
Raja Vishnu
 
PDF
Introduction To Angular 4 - J2I
Nader Debbabi
 
ODP
Introduction to Angular 2
Knoldus Inc.
 
PDF
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
PPTX
Angular 4 Introduction Tutorial
Scott Lee
 
PDF
What is Angular version 4?
Troy Miles
 
PDF
Angular2 with TypeScript
Rohit Bishnoi
 
PPTX
Introduction to angular 2
Dor Moshe
 
PDF
Building Universal Applications with Angular 2
Minko Gechev
 
PDF
Angular 2... so can I use it now??
Laurent Duveau
 
Dive into Angular, part 2: Architecture
Oleksii Prohonnyi
 
Introduction to angular 2
Dhyego Fernando
 
Angular 2 - An Introduction
NexThoughts Technologies
 
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
Angular 9 New features
Ahmed Bouchefra
 
Angular 6 - The Complete Guide
Sam Dias
 
Introduction to Angular 2
Naveen Pete
 
Angular 9
Raja Vishnu
 
Introduction To Angular 4 - J2I
Nader Debbabi
 
Introduction to Angular 2
Knoldus Inc.
 
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
Angular 4 Introduction Tutorial
Scott Lee
 
What is Angular version 4?
Troy Miles
 
Angular2 with TypeScript
Rohit Bishnoi
 
Introduction to angular 2
Dor Moshe
 
Building Universal Applications with Angular 2
Minko Gechev
 
Angular 2... so can I use it now??
Laurent Duveau
 
Ad

Viewers also liked (20)

PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
Paweł Żurowski
 
PPTX
Conference DotJS 2015 Paris review
Oleksii Prohonnyi
 
PPTX
Как создать сайт за 2 часа? (Wordpress)
Oleksii Prohonnyi
 
PPTX
Exploradores.caroes
maryespitia
 
PPTX
Cycle.js overview
Oleksii Prohonnyi
 
PPTX
Front-end rich JavaScript application creation (Backbone.js)
Oleksii Prohonnyi
 
PPT
Разработка веб-сайта. Сайт. Зачем он?
Oleksii Prohonnyi
 
PPTX
Asm.js introduction
Oleksii Prohonnyi
 
PPTX
Chorme devtools
傑倫 鍾
 
PPTX
Moment.js overview
Oleksii Prohonnyi
 
PPTX
Utility libraries to make your life easier
Oleksii Prohonnyi
 
PPTX
D3.JS Tips & Tricks (export to svg, crossfilter, maps etc.)
Oleksii Prohonnyi
 
PPTX
OpenLayer's basics
Oleksii Prohonnyi
 
PDF
Chrome DevTools Awesome 10 Features +1
yoshikawa_t
 
PPTX
Bower introduction
Oleksii Prohonnyi
 
PPTX
Google Chrome DevTools features overview
Oleksii Prohonnyi
 
PDF
20 reasons why we don't need architects (@pavlobaron)
Pavlo Baron
 
KEY
Winning the Erlang Edit•Build•Test Cycle
Rusty Klophaus
 
PDF
High Performance Erlang
PerconaPerformance
 
PDF
What can be done with Java, but should better be done with Erlang (@pavlobaron)
Pavlo Baron
 
Quick introduction to Angular 4 for AngularJS 1.5 developers
Paweł Żurowski
 
Conference DotJS 2015 Paris review
Oleksii Prohonnyi
 
Как создать сайт за 2 часа? (Wordpress)
Oleksii Prohonnyi
 
Exploradores.caroes
maryespitia
 
Cycle.js overview
Oleksii Prohonnyi
 
Front-end rich JavaScript application creation (Backbone.js)
Oleksii Prohonnyi
 
Разработка веб-сайта. Сайт. Зачем он?
Oleksii Prohonnyi
 
Asm.js introduction
Oleksii Prohonnyi
 
Chorme devtools
傑倫 鍾
 
Moment.js overview
Oleksii Prohonnyi
 
Utility libraries to make your life easier
Oleksii Prohonnyi
 
D3.JS Tips & Tricks (export to svg, crossfilter, maps etc.)
Oleksii Prohonnyi
 
OpenLayer's basics
Oleksii Prohonnyi
 
Chrome DevTools Awesome 10 Features +1
yoshikawa_t
 
Bower introduction
Oleksii Prohonnyi
 
Google Chrome DevTools features overview
Oleksii Prohonnyi
 
20 reasons why we don't need architects (@pavlobaron)
Pavlo Baron
 
Winning the Erlang Edit•Build•Test Cycle
Rusty Klophaus
 
High Performance Erlang
PerconaPerformance
 
What can be done with Java, but should better be done with Erlang (@pavlobaron)
Pavlo Baron
 
Ad

Similar to Dive into Angular, part 4: Angular 2.0 (20)

PPTX
Introduction to Angular2
Knoldus Inc.
 
PPTX
Angularjs2 presentation
dharisk
 
PPTX
Angularj2.0
Mallikarjuna G D
 
PDF
Angular2
SitaPrajapati
 
PPTX
Angular 2
Nigam Goyal
 
PPTX
Angular 2 with typescript
Tayseer_Emam
 
PDF
Angular2 with type script
Ravi Mone
 
PPTX
Moving From AngularJS to Angular 2
Exilesoft
 
PPTX
Angular 2
Travis van der Font
 
PPTX
An afternoon with angular 2
Mike Melusky
 
PPT
Angular.ppt
Mytrux1
 
PPTX
What's new in Angular 2?
Alfred Jett Grandeza
 
PPTX
Angular 5 presentation for beginners
Imran Qasim
 
PPTX
An evening with Angular 2
Mike Melusky
 
PDF
better-apps-angular-2-day1.pdf and home
ChethanGowda886434
 
PPTX
Foster - Getting started with Angular
MukundSonaiya1
 
PPTX
Angular Basics.pptx
AshokKumar616995
 
PPT
17612235.ppt
yovixi5669
 
PPTX
Angular 2.0
Mallikarjuna G D
 
PPTX
Angular Course.pptx
Imdad Ullah
 
Introduction to Angular2
Knoldus Inc.
 
Angularjs2 presentation
dharisk
 
Angularj2.0
Mallikarjuna G D
 
Angular2
SitaPrajapati
 
Angular 2
Nigam Goyal
 
Angular 2 with typescript
Tayseer_Emam
 
Angular2 with type script
Ravi Mone
 
Moving From AngularJS to Angular 2
Exilesoft
 
An afternoon with angular 2
Mike Melusky
 
Angular.ppt
Mytrux1
 
What's new in Angular 2?
Alfred Jett Grandeza
 
Angular 5 presentation for beginners
Imran Qasim
 
An evening with Angular 2
Mike Melusky
 
better-apps-angular-2-day1.pdf and home
ChethanGowda886434
 
Foster - Getting started with Angular
MukundSonaiya1
 
Angular Basics.pptx
AshokKumar616995
 
17612235.ppt
yovixi5669
 
Angular 2.0
Mallikarjuna G D
 
Angular Course.pptx
Imdad Ullah
 

More from Oleksii Prohonnyi (11)

PPTX
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 
PPTX
Introduction to D3.js
Oleksii Prohonnyi
 
PPTX
Code review process with JetBrains UpSource
Oleksii Prohonnyi
 
PPTX
BEM methodology overview
Oleksii Prohonnyi
 
PPTX
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
PPTX
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
PPTX
Test-driven development & Behavior-driven development basics
Oleksii Prohonnyi
 
PPTX
JavaScript Coding Guidelines
Oleksii Prohonnyi
 
PPTX
Database Optimization (MySQL)
Oleksii Prohonnyi
 
PPTX
PHPCS (PHP Code Sniffer)
Oleksii Prohonnyi
 
PPTX
Usability of UI Design (motivation, heuristics, tools)
Oleksii Prohonnyi
 
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 
Introduction to D3.js
Oleksii Prohonnyi
 
Code review process with JetBrains UpSource
Oleksii Prohonnyi
 
BEM methodology overview
Oleksii Prohonnyi
 
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
Test-driven development & Behavior-driven development basics
Oleksii Prohonnyi
 
JavaScript Coding Guidelines
Oleksii Prohonnyi
 
Database Optimization (MySQL)
Oleksii Prohonnyi
 
PHPCS (PHP Code Sniffer)
Oleksii Prohonnyi
 
Usability of UI Design (motivation, heuristics, tools)
Oleksii Prohonnyi
 

Recently uploaded (20)

PPTX
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
PPTX
Services offered by Dynamic Solutions in Pakistan
DaniyaalAdeemShibli1
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
PDF
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PDF
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPTX
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Q-Advise
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
oapresentation.pptx
mehatdhavalrajubhai
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
Services offered by Dynamic Solutions in Pakistan
DaniyaalAdeemShibli1
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Q-Advise
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
Exploring AI Agents in Process Industries
amoreira6
 
oapresentation.pptx
mehatdhavalrajubhai
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 

Dive into Angular, part 4: Angular 2.0