SlideShare a Scribd company logo
1 of 13
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

OCTO BOF - How to build Netvibes with AngularJS
OCTO BOF - How to build Netvibes with AngularJSOCTO BOF - How to build Netvibes with AngularJS
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 

What's hot (18)

Angularjs tutorial
Angularjs tutorialAngularjs tutorial
Angularjs tutorial
 
Angular js
Angular jsAngular js
Angular js
 
Wicket And Swing From One Codebase
Wicket And Swing From One CodebaseWicket And Swing From One Codebase
Wicket And Swing From One Codebase
 
Angularjs - lazy loading techniques
Angularjs - lazy loading techniques Angularjs - lazy loading techniques
Angularjs - lazy loading techniques
 
Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013
 
AngularJS
AngularJSAngularJS
AngularJS
 
A Big Picture Of AngularJS
A Big Picture Of AngularJSA Big Picture Of AngularJS
A Big Picture Of AngularJS
 
AngularJS interview questions
AngularJS interview questionsAngularJS interview questions
AngularJS interview questions
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
 
Angular js getting started
Angular js getting startedAngular js getting started
Angular js getting started
 
OCTO BOF - How to build Netvibes with AngularJS
OCTO BOF - How to build Netvibes with AngularJSOCTO BOF - How to build Netvibes with AngularJS
OCTO BOF - How to build Netvibes with AngularJS
 
Angular Lazy Loading and Resolve (Route Resolver)
Angular Lazy Loading and Resolve (Route Resolver)Angular Lazy Loading and Resolve (Route Resolver)
Angular Lazy Loading and Resolve (Route Resolver)
 
Angular%201%20to%20angular%202
Angular%201%20to%20angular%202Angular%201%20to%20angular%202
Angular%201%20to%20angular%202
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | EdurekaAngular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
 
Angular.js interview questions
Angular.js interview questionsAngular.js interview questions
Angular.js interview questions
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJSGettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
 

Similar to Start your journey with angular | Basic Angular

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

Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
 
One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJS
 
Angular
AngularAngular
Angular
 
angularjs_tutorial.docx
angularjs_tutorial.docxangularjs_tutorial.docx
angularjs_tutorial.docx
 
How Does Angular Work?
How Does Angular Work?How Does Angular Work?
How Does Angular Work?
 
Angular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web ApplicationsAngular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web Applications
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdf
 
Intro to AngularJS
Intro to AngularJS Intro to AngularJS
Intro to AngularJS
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha Gadkari
 
Angular IO
Angular IOAngular IO
Angular IO
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
 
AngularJs
AngularJsAngularJs
AngularJs
 
Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01Angularjs 131211063348-phpapp01
Angularjs 131211063348-phpapp01
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
 
Foster - Getting started with Angular
Foster - Getting started with AngularFoster - Getting started with Angular
Foster - Getting started with Angular
 
Angular 7 Firebase5 CRUD Operations with Reactive Forms
Angular 7 Firebase5 CRUD Operations with Reactive FormsAngular 7 Firebase5 CRUD Operations with Reactive Forms
Angular 7 Firebase5 CRUD Operations with Reactive Forms
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

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