SlideShare a Scribd company logo
Start your journey with
Angular
Prerequisites
● HTML
● CSS/SCSS/SASS
● JavaScript
VS Code
There are couple of extensions you must have if you are
using vscode as your code editor
1. Angular Language Services
2. Angular Snippets
What is Angular
● Angular is a JavaScript (actually a TypeScript based open-source full-
stack web application) framework which makes you able to create
reactive Single Page Applications (SPAs).
● Angular is completely based on components.
● It consists of several components which forms a tree structure with
parent and child components.
● Versions beyond 2+ are generally known as Angular only. The very first
version Angular 1.0 is known as AngularJS.
Key features
● Angular supports multiple platforms
● High Speed, Ultimate Performance
● Productivity
Installation
1. First we need to install nodejs in our PC:
( Download link: https://nodejs.org/en/ )
1. Then we have to install Angular CLI
2. Then start our new application
3. Finally serve the app
Generate component
1. You can generate a component
by Angular CLI:
ng g c user
Four different files will be created
in src/app directory:
user.component.ts
user.component.html
user.component.scss
user.component.spec.ts
Displaying Data
There are three different files when you
generate a component. The one is main
file another is view file and the other for
styling the component. Now we have
to display data in our view file.
https://angular.io/guide/displaying-data
You can declare a property
named title in your
app.component.ts file If you want
to show value of title property then
your app.component.html file will
be like:
Events
In JavaScript we have onClick, onHover
etc. events for user interaction with the
app. We have a bunch of events in
Angular.
https://angular.io/guide/user-input
You can define the onClickMe()
method in your
app.component.ts file
Directive
1. You need directive to show your data
conditionally.
2. There are couple of directives Angular
such as: ngClass, ngStyle, ngFor and so
on.
3. You can create your custom directive
to modify element
https://angular.io/guide/structural-directives
https://www.javatpoint.com/angular-7-directives
https://angular.io/guide/attribute-directives
Lifecycle Hooks
● A component has a lifecycle managed by
Angular.
● Angular creates and renders components
along with their children, checks when
their data-bound properties change, and
destroys them before removing them from
the DOM.
● Angular offers lifecycle hooks that provide
visibility into these key life moments and
the ability to act when they occur.
https://angular.io/guide/lifecycle-hooks
Generally, you cannot run a
method or change value of
property in class but when you
use ngOnInit() method you
can do that
Pipes
Using pipe you can transform a value.
Suppose, you have a value welcome. But you
need to capitalize the value at user-end. Now
you can use uppercase pipe to get your
desired result.
There are some common pipe in angular:
https://angular.io/api?type=pipe
Thank you

More Related Content

What's hot (18)

PDF
Angularjs tutorial
HarikaReddy115
 
PDF
Angular js
Knoldus Inc.
 
ODP
Wicket And Swing From One Codebase
jcompagner
 
PDF
Angularjs - lazy loading techniques
Nir Kaufman
 
PDF
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
PPTX
A Big Picture Of AngularJS
Nitin Pandit
 
PDF
AngularJS interview questions
Uri Lukach
 
PPTX
Introduction to AngularJS Framework
Raveendra R
 
DOCX
Angular js getting started
Hemant Mali
 
PPTX
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
PPTX
Angular Lazy Loading and Resolve (Route Resolver)
Squash Apps Pvt Ltd
 
PPTX
Angular%201%20to%20angular%202
Ran Wahle
 
PPTX
Introduction to AngularJS
David Parsons
 
PDF
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Edureka!
 
PPTX
Introduction to Android Programming
Raveendra R
 
DOCX
Angular.js interview questions
codeandyou forums
 
PDF
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
Angularjs tutorial
HarikaReddy115
 
Angular js
Knoldus Inc.
 
Wicket And Swing From One Codebase
jcompagner
 
Angularjs - lazy loading techniques
Nir Kaufman
 
Angular.js - JS Camp UKraine 2013
Max Klymyshyn
 
A Big Picture Of AngularJS
Nitin Pandit
 
AngularJS interview questions
Uri Lukach
 
Introduction to AngularJS Framework
Raveendra R
 
Angular js getting started
Hemant Mali
 
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
Angular Lazy Loading and Resolve (Route Resolver)
Squash Apps Pvt Ltd
 
Angular%201%20to%20angular%202
Ran Wahle
 
Introduction to AngularJS
David Parsons
 
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Edureka!
 
Introduction to Android Programming
Raveendra R
 
Angular.js interview questions
codeandyou forums
 
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 

Similar to Start your journey with angular | Basic Angular (20)

PPTX
Angular kickstart slideshare
SaleemMalik52
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PPTX
Angular
TejinderMakkar
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PPTX
How Does Angular Work?
Albiorix Technology
 
PPTX
Angular Best Practices To Build Clean and Performant Web Applications
Albiorix Technology
 
PPTX
Training On Angular Js
Mahima Radhakrishnan
 
DOCX
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
PDF
Angular Interview Questions-PDF.pdf
JohnLeo57
 
PPTX
Intro to AngularJS
Sparkhound Inc.
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PPT
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
PPTX
Angular IO
Jennifer Estrada
 
PPTX
Angular 6 Training with project in hyderabad india
php2ranjan
 
PPTX
UQ21CA642BA1-Unit-3-WAF-Class18-Introduction to Angular Routing.pptx
TamalDey28
 
PDF
AngularJs
Abdhesh Kumar
 
PDF
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
PPTX
Angular interview questions
Goa App
 
PPTX
Angular Javascript Tutorial with command
ssuser42b933
 
PPTX
Foster - Getting started with Angular
MukundSonaiya1
 
Angular kickstart slideshare
SaleemMalik52
 
One Weekend With AngularJS
Yashobanta Bai
 
angularjs_tutorial.docx
telegramvip
 
How Does Angular Work?
Albiorix Technology
 
Angular Best Practices To Build Clean and Performant Web Applications
Albiorix Technology
 
Training On Angular Js
Mahima Radhakrishnan
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
Angular Interview Questions-PDF.pdf
JohnLeo57
 
Intro to AngularJS
Sparkhound Inc.
 
Intoduction to Angularjs
Gaurav Agrawal
 
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
Angular IO
Jennifer Estrada
 
Angular 6 Training with project in hyderabad india
php2ranjan
 
UQ21CA642BA1-Unit-3-WAF-Class18-Introduction to Angular Routing.pptx
TamalDey28
 
AngularJs
Abdhesh Kumar
 
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
Angular interview questions
Goa App
 
Angular Javascript Tutorial with command
ssuser42b933
 
Foster - Getting started with Angular
MukundSonaiya1
 
Ad

Recently uploaded (20)

PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PPTX
reInforce 2025 Lightning Talk - Scott Francis.pptx
ScottFrancis51
 
PDF
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PPTX
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PDF
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Python Conference Singapore - 19 Jun 2025
ninefyi
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
reInforce 2025 Lightning Talk - Scott Francis.pptx
ScottFrancis51
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Practical Applications of AI in Local Government
OnBoard
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Python Conference Singapore - 19 Jun 2025
ninefyi
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Ad

Start your journey with angular | Basic Angular

  • 1. Start your journey with Angular
  • 3. VS Code There are couple of extensions you must have if you are using vscode as your code editor 1. Angular Language Services 2. Angular Snippets
  • 4. What is Angular ● Angular is a JavaScript (actually a TypeScript based open-source full- stack web application) framework which makes you able to create reactive Single Page Applications (SPAs). ● Angular is completely based on components. ● It consists of several components which forms a tree structure with parent and child components. ● Versions beyond 2+ are generally known as Angular only. The very first version Angular 1.0 is known as AngularJS.
  • 5. Key features ● Angular supports multiple platforms ● High Speed, Ultimate Performance ● Productivity
  • 6. Installation 1. First we need to install nodejs in our PC: ( Download link: https://nodejs.org/en/ ) 1. Then we have to install Angular CLI 2. Then start our new application 3. Finally serve the app
  • 7. Generate component 1. You can generate a component by Angular CLI: ng g c user Four different files will be created in src/app directory: user.component.ts user.component.html user.component.scss user.component.spec.ts
  • 8. Displaying Data There are three different files when you generate a component. The one is main file another is view file and the other for styling the component. Now we have to display data in our view file. https://angular.io/guide/displaying-data You can declare a property named title in your app.component.ts file If you want to show value of title property then your app.component.html file will be like:
  • 9. Events In JavaScript we have onClick, onHover etc. events for user interaction with the app. We have a bunch of events in Angular. https://angular.io/guide/user-input You can define the onClickMe() method in your app.component.ts file
  • 10. Directive 1. You need directive to show your data conditionally. 2. There are couple of directives Angular such as: ngClass, ngStyle, ngFor and so on. 3. You can create your custom directive to modify element https://angular.io/guide/structural-directives https://www.javatpoint.com/angular-7-directives https://angular.io/guide/attribute-directives
  • 11. Lifecycle Hooks ● A component has a lifecycle managed by Angular. ● Angular creates and renders components along with their children, checks when their data-bound properties change, and destroys them before removing them from the DOM. ● Angular offers lifecycle hooks that provide visibility into these key life moments and the ability to act when they occur. https://angular.io/guide/lifecycle-hooks Generally, you cannot run a method or change value of property in class but when you use ngOnInit() method you can do that
  • 12. Pipes Using pipe you can transform a value. Suppose, you have a value welcome. But you need to capitalize the value at user-end. Now you can use uppercase pipe to get your desired result. There are some common pipe in angular: https://angular.io/api?type=pipe