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

What's hot (20)

PDF
Angular 2 Crash Course
Elisha Kramer
 
ODP
Introduction to Angular 2
Knoldus Inc.
 
PDF
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
PDF
Angular 2... so can I use it now??
Laurent Duveau
 
PPTX
Angular 2 - Better or worse
Vladimir Georgiev
 
PPTX
Angular 4 - quick view
Michael Haberman
 
PDF
Introduction to Angular 2
Dawid Myslak
 
PPTX
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
PPTX
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
PPTX
Angular 1.x vs 2 - In code level
Anuradha Bandara
 
PPTX
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
PDF
What is Angular version 4?
Troy Miles
 
PDF
Angular 2: What's New?
jbandi
 
PPTX
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
PDF
Angular 2 - The Next Framework
Commit University
 
PPTX
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
PDF
Angular 2: core concepts
Codemotion
 
PDF
Angular 2 Essential Training
Patrick Schroeder
 
PDF
Angular 2 - Core Concepts
Fabio Biondi
 
PDF
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Codemotion
 
Angular 2 Crash Course
Elisha Kramer
 
Introduction to Angular 2
Knoldus Inc.
 
The productive developer guide to Angular 2
Maurice De Beijer [MVP]
 
Angular 2... so can I use it now??
Laurent Duveau
 
Angular 2 - Better or worse
Vladimir Georgiev
 
Angular 4 - quick view
Michael Haberman
 
Introduction to Angular 2
Dawid Myslak
 
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
Angular 1.x vs 2 - In code level
Anuradha Bandara
 
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
What is Angular version 4?
Troy Miles
 
Angular 2: What's New?
jbandi
 
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
Angular 2 - The Next Framework
Commit University
 
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
Angular 2: core concepts
Codemotion
 
Angular 2 Essential Training
Patrick Schroeder
 
Angular 2 - Core Concepts
Fabio Biondi
 
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Codemotion
 

Viewers also liked (20)

PPTX
Introduction to node js
Amit Thakkar
 
PPT
Package.json ( NodeJS )
Vivek Garg
 
PPTX
Yarn resource-manager
Seiya Mizuno
 
PPTX
3Camp Tech 2016/11/15 - Front-end tooling: package managers
Michał Michalczuk
 
PDF
JavaScript Fundamentals with Angular and Lodash
Bret Little
 
PDF
Automation in angular js
Marcin Wosinek
 
PDF
Lodash js
LearningTech
 
PDF
Angular 2 Seminar_(December 7/12/2015)
Haim Michael
 
PPTX
Advanced criteria queries
NexThoughts Technologies
 
PPTX
Grails Custom Plugin
NexThoughts Technologies
 
ODP
Elastic search
NexThoughts Technologies
 
PDF
Grails audit logging
NexThoughts Technologies
 
PPTX
Introduction to redis
NexThoughts Technologies
 
PDF
Introduction to NPM and building CLI Tools with Node.js
Suroor Wijdan
 
PPT
Bootcamp linux commands
NexThoughts Technologies
 
PDF
Grails internationalization-160524154831
NexThoughts Technologies
 
PPTX
Grails custom tag lib
NexThoughts Technologies
 
PDF
Getting started with Angular CLI
Sasha Vinčić
 
Introduction to node js
Amit Thakkar
 
Package.json ( NodeJS )
Vivek Garg
 
Yarn resource-manager
Seiya Mizuno
 
3Camp Tech 2016/11/15 - Front-end tooling: package managers
Michał Michalczuk
 
JavaScript Fundamentals with Angular and Lodash
Bret Little
 
Automation in angular js
Marcin Wosinek
 
Lodash js
LearningTech
 
Angular 2 Seminar_(December 7/12/2015)
Haim Michael
 
Advanced criteria queries
NexThoughts Technologies
 
Grails Custom Plugin
NexThoughts Technologies
 
Elastic search
NexThoughts Technologies
 
Grails audit logging
NexThoughts Technologies
 
Introduction to redis
NexThoughts Technologies
 
Introduction to NPM and building CLI Tools with Node.js
Suroor Wijdan
 
Bootcamp linux commands
NexThoughts Technologies
 
Grails internationalization-160524154831
NexThoughts Technologies
 
Grails custom tag lib
NexThoughts Technologies
 
Getting started with Angular CLI
Sasha Vinčić
 
Ad

Similar to Angular 2 - An Introduction (20)

PPTX
Angular 2 KTS
John Vall
 
PPTX
Moving From AngularJS to Angular 2
Exilesoft
 
PPTX
An afternoon with angular 2
Mike Melusky
 
PPTX
An evening with Angular 2
Mike Melusky
 
PDF
Instant download Angular 2 Cookbook Frisbie pdf all chapter
ikraanfalan
 
PPTX
Angular js 2
Ran Wahle
 
PPTX
What's new in Angular 2?
Alfred Jett Grandeza
 
PPTX
Angular2 + rxjs
Christoffer Noring
 
PDF
Commit University - Exploring Angular 2
Commit University
 
PPTX
Angular 2
Travis van der Font
 
PDF
Angular2
SitaPrajapati
 
PPTX
Angular 2 in-1
GlobalLogic Ukraine
 
PDF
Exploring Angular 2 - Episode 1
Ahmed Moawad
 
DOCX
Angular Interview Questions & Answers
Ratnala Charan kumar
 
PDF
Angular 2 overview in 60 minutes
Loiane Groner
 
PPTX
Angular 2 with typescript
Tayseer_Emam
 
PDF
Building an Angular 2 App
Felix Gessert
 
PPTX
Angular 2 at solutions.hamburg
Baqend
 
PPTX
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
PPTX
Angular 18 course for begineers and experienced
tejaswinimysoola
 
Angular 2 KTS
John Vall
 
Moving From AngularJS to Angular 2
Exilesoft
 
An afternoon with angular 2
Mike Melusky
 
An evening with Angular 2
Mike Melusky
 
Instant download Angular 2 Cookbook Frisbie pdf all chapter
ikraanfalan
 
Angular js 2
Ran Wahle
 
What's new in Angular 2?
Alfred Jett Grandeza
 
Angular2 + rxjs
Christoffer Noring
 
Commit University - Exploring Angular 2
Commit University
 
Angular2
SitaPrajapati
 
Angular 2 in-1
GlobalLogic Ukraine
 
Exploring Angular 2 - Episode 1
Ahmed Moawad
 
Angular Interview Questions & Answers
Ratnala Charan kumar
 
Angular 2 overview in 60 minutes
Loiane Groner
 
Angular 2 with typescript
Tayseer_Emam
 
Building an Angular 2 App
Felix Gessert
 
Angular 2 at solutions.hamburg
Baqend
 
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
Angular 18 course for begineers and experienced
tejaswinimysoola
 
Ad

More from NexThoughts Technologies (20)

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

Recently uploaded (20)

PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
July Patch Tuesday
Ivanti
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
July Patch Tuesday
Ivanti
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 

Angular 2 - An Introduction