SlideShare a Scribd company logo
Angular 2
HELLO!
I am Hiten Pratap Singh
You can find me at
https://github.com/hitenpratap/
https://hprog99.wordpress.com/
hiten@nexthoughts.com
Anguar 2 AngularJS2
It can be used with JS, TypeScript and DART
etc
Angular 1 to Angular 2
What’s actually changed?
Angular 1 to 2 - What’s changed?
✘ Controllers to Components
✘ Unidirectional data flow
✘ Simplified service model
✘ Easier to understand. Easy learning curve
✘ Template syntax is kinda same
✘ Angular Module
✘ $scope
✘ jqLite/jQuery
What is Angular 2?
Why it is so awesome.
Angular 2 Building Blocks
Components
What are they?
Angular 2 Components
✘ Components are directive with template
✘ Angular 2 apps are usually built with
Component
✘ No $scope and no more controller
✘ Functions/Properties are bound directly from
component
How to create component?
✘ Create a class
✘ Import the Component decorator
✘ Add Meta-Data like selector, template,
directives etc
✘ Export class to be used with other class.
Templates
What are they?
Templates in your component
✘ Templates contains the HTML code which
gets rendered on browser
✘ Can be placed inside @Component or
referenced as a separate file
Styles
What are they?
Styling your component
✘ Style declared in @Component will only be
valid for that component only
✘ Can be added directly or referenced as
separate file(s).
Bind Component To Template
What are they?
Ways to bind component to template
✘ Interpolation Expressions
✘ Property Binding
✘ Event Binding
✘ ngModel
Interpolated Expressions
✘ Used {{}} to achieve said task
✘ Put expression inside the brackets
Property Binding
✘ Bind directly to properties on DOM model
using []
✘ Very powerful and convenient
Event Binding
✘ Bind directly to events on DOM model using ()
✘ Again power just can’t be described in words
ngModel
✘ Allows two way data binding
✘ Follows uni-directional data flow concepts
✘ Demo to be followed
Child Components
What are they and how to use them?
Child Components
✘ Exist within another Component called Parent
Component
✘ To make a child component just make it and
tell its parent about it. SIMPLE!!!
Angular 2 - An Introduction
Parent To Child Communication
What is this and how do they accomplish it?
Binding Parent TO Child via @Input
✘ Means binding data from parent to child
✘ Usually involved two steps:
✗Add property to child and decoarte it with @Input
decorator.
✗Bind the parent property to child using [] syntax.
Angular 2 - An Introduction
Child To Parent Communication
What is this and how do they accomplish it?
Event Emitting and @Output
✘ Child to parent communication is achieved by
@Output and Event Emitting together.
Angular 2 - An Introduction
Services In Angular 2
How to use them?
Services
✘ Services are best to perform CRUD opeartions
✘ Keep main processing part separate from
Components.
Angular 2 - An Introduction
THANKS!
Any questions?
You can find me at:
https://github.com/hitenpratap/
https://hprog99.wordpress.com/
hiten@nexthoughts.com

More Related Content

PPTX
Introduction to angular 2
PDF
Angular2 with type script
PDF
Angular2 with TypeScript
PDF
Building Universal Applications with Angular 2
PDF
Introduction to Angular 2
PDF
The evolution of Angular 2 @ AngularJS Munich Meetup #5
PPTX
Angular 2
PDF
Introduction to angular 2
Introduction to angular 2
Angular2 with type script
Angular2 with TypeScript
Building Universal Applications with Angular 2
Introduction to Angular 2
The evolution of Angular 2 @ AngularJS Munich Meetup #5
Angular 2
Introduction to angular 2

What's hot (20)

PDF
Angular 2 Crash Course
ODP
Introduction to Angular 2
PDF
The productive developer guide to Angular 2
PDF
Angular 2... so can I use it now??
PPTX
Angular 2 - Better or worse
PPTX
Angular 4 - quick view
PDF
Introduction to Angular 2
PPTX
Angular1x and Angular 2 for Beginners
PPTX
Angular 2 + TypeScript = true. Let's Play!
PPTX
Angular 1.x vs 2 - In code level
PPTX
Migrating an application from Angular 1 to Angular 2
PDF
What is Angular version 4?
PDF
Angular 2: What's New?
PPTX
Dive into Angular, part 4: Angular 2.0
PDF
Angular 2 - The Next Framework
PPTX
AngularJS2 / TypeScript / CLI
PDF
Angular 2: core concepts
PDF
Angular 2 Essential Training
PDF
Angular 2 - Core Concepts
PDF
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Angular 2 Crash Course
Introduction to Angular 2
The productive developer guide to Angular 2
Angular 2... so can I use it now??
Angular 2 - Better or worse
Angular 4 - quick view
Introduction to Angular 2
Angular1x and Angular 2 for Beginners
Angular 2 + TypeScript = true. Let's Play!
Angular 1.x vs 2 - In code level
Migrating an application from Angular 1 to Angular 2
What is Angular version 4?
Angular 2: What's New?
Dive into Angular, part 4: Angular 2.0
Angular 2 - The Next Framework
AngularJS2 / TypeScript / CLI
Angular 2: core concepts
Angular 2 Essential Training
Angular 2 - Core Concepts
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Ad

Viewers also liked (20)

PPTX
Introduction to node js
PPT
Package.json ( NodeJS )
PPTX
Yarn resource-manager
PPTX
3Camp Tech 2016/11/15 - Front-end tooling: package managers
PDF
JavaScript Fundamentals with Angular and Lodash
PDF
Automation in angular js
PDF
Lodash js
PDF
Angular 2 Seminar_(December 7/12/2015)
PPTX
Advanced criteria queries
PPTX
Grails Custom Plugin
ODP
Elastic search
PDF
Grails audit logging
PPTX
Introduction to redis
PDF
Introduction to NPM and building CLI Tools with Node.js
PPT
Bootcamp linux commands
PDF
Grails internationalization-160524154831
PPTX
Grails custom tag lib
PDF
Getting started with Angular CLI
Introduction to node js
Package.json ( NodeJS )
Yarn resource-manager
3Camp Tech 2016/11/15 - Front-end tooling: package managers
JavaScript Fundamentals with Angular and Lodash
Automation in angular js
Lodash js
Angular 2 Seminar_(December 7/12/2015)
Advanced criteria queries
Grails Custom Plugin
Elastic search
Grails audit logging
Introduction to redis
Introduction to NPM and building CLI Tools with Node.js
Bootcamp linux commands
Grails internationalization-160524154831
Grails custom tag lib
Getting started with Angular CLI
Ad

Similar to Angular 2 - An Introduction (20)

PDF
Everything You Need To Know About AngularJS
PDF
Lightning Web Components- Ep 1 - Decorators, Life Cycle Hooks and Compositions
PPTX
BDD Selenium for Agile Teams - User Stories
PPTX
Angular 2 KTS
PPTX
What's new in Angular 2?
PDF
PDF
Angular Interview Questions-PDF.pdf
PPTX
Fly High With Angular - How to build an app using Angular
PDF
Angular 2 overview in 60 minutes
PDF
Developing for LinkedIn's Application Platform
PDF
"Crafting a Third-Party Banking Library with Web Components and React", Germa...
PPTX
Migrating an Application from Angular 1 to Angular 2
PDF
Itroducing Angular JS
PDF
ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ...
PDF
better-apps-angular-2-day1.pdf and home
PDF
Get rid of controllers in angular 1.5.x start using component directives
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
PPT
17612235.ppt
PPTX
Angularjs Basics
PPTX
angular-concepts-introduction-slides.pptx
Everything You Need To Know About AngularJS
Lightning Web Components- Ep 1 - Decorators, Life Cycle Hooks and Compositions
BDD Selenium for Agile Teams - User Stories
Angular 2 KTS
What's new in Angular 2?
Angular Interview Questions-PDF.pdf
Fly High With Angular - How to build an app using Angular
Angular 2 overview in 60 minutes
Developing for LinkedIn's Application Platform
"Crafting a Third-Party Banking Library with Web Components and React", Germa...
Migrating an Application from Angular 1 to Angular 2
Itroducing Angular JS
ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ...
better-apps-angular-2-day1.pdf and home
Get rid of controllers in angular 1.5.x start using component directives
Lightning web components - Introduction, component Lifecycle, Events, decorat...
17612235.ppt
Angularjs Basics
angular-concepts-introduction-slides.pptx

More from NexThoughts Technologies (20)

PDF
PDF
Docker & kubernetes
PDF
Apache commons
PDF
Microservice Architecture using Spring Boot with React & Redux
PDF
Solid Principles
PDF
Introduction to TypeScript
PDF
Smart Contract samples
PDF
My Doc of geth
PDF
Geth important commands
PDF
Ethereum genesis
PPTX
Springboot Microservices
PDF
An Introduction to Redux
PPTX
Google authentication
Docker & kubernetes
Apache commons
Microservice Architecture using Spring Boot with React & Redux
Solid Principles
Introduction to TypeScript
Smart Contract samples
My Doc of geth
Geth important commands
Ethereum genesis
Springboot Microservices
An Introduction to Redux
Google authentication

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
1. Introduction to Computer Programming.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Electronic commerce courselecture one. Pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Tartificialntelligence_presentation.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
1. Introduction to Computer Programming.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Approach and Philosophy of On baking technology
Electronic commerce courselecture one. Pdf
Group 1 Presentation -Planning and Decision Making .pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25-Week II
Tartificialntelligence_presentation.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
MIND Revenue Release Quarter 2 2025 Press Release

Angular 2 - An Introduction