SlideShare a Scribd company logo
Introduction to Angular JS
Agenda
Features of AngularJS Angular App Fundamentals
What are SPAs?
2
Introduction to AngularJS?
3
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
4 10
Versions and Transitions
6
Environmental setup
7
AngularJS IDE’s
8
Introduction to Visual studio code
9
MVC Architecture
5
Prerequisites
1
Companies using AngularJS
11
Advantages of AngularJS
12
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Prerequisites
Adds Design/Structure to the
webpage
HTML
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is HTML?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
● Stands for HyperText Markup Language
● HyperText: Link between web pages.
● Markup Language: Text between tags which defines structure.
● It is a language to create web pages
● HTML defines how the web page looks and how to display content with the help
of elements
● It forms or defines the structure of our Web Page
● Need to save your file with .html extension
HTML Skeleton
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Adds Style/Colors to the webpage
CSS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is CSS?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
● Stands for Cascading Style Sheet.
● It’s a stylesheet language used for styling the HTML pages.
● It describes how the page will appear on the screen.
● It can control the layout of multiple webpages at all once.
● It adds styles like fonts, colors, layout to the webpages.
● CSS benefits accessibility primarily by separating document structure from
presentation.
● CSS allows precise control over spacing, alignment and positioning.
CSS Syntax
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
selector1{
property1:value;
property2:value;
}
selector2{
property1:value;
}
</style>
</head>
<body>
</body>
</html>
Adds Behaviour/Interactivity to the
webpage
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is JS?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
● Stands for JavaScript.
● It’s a scripting language used for adding behavior to the webpages.
● It is a verb of the webpage that defines all the actions to be performed on a webpage.
● Its an object oriented programming language that uses JIT compiler.
● It is everywhere and all web browsers are installed with it.
● JS application ranges from web development, mobile development etc.
● JS is easy, simple and very compatible with HTML-CSS
JS Syntax
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
…..
…..
<script>
document.write(“Hello World”);
console.log(“Great Learning”);
</script>
</body>
</html>
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What are SPA’s?
What are SPAs?
Client Server Client Server
Request for www.amazon.com
Homepage for www.amazon.com in response
Request for Page X
Response for Page X
Request for an item in search box
Request page with that item results
 Multiple page request sent to Server every time we click
 Client page getting loaded again and again.
 Hence, such pages are low on speed
Request for www.gmail.com
Entire app package for www.gmail.com in response
Request for Data
Data in Response
 Single request sent to Server to load the whole
application
 Multiple data Requests going to the server, not page.
 Client page doesn’t get load again and again.
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Introduction to
AngularJS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why AngularJS?
• Framework is the basic structure
• It helps in easy development
• It provides basic configuration
Is JS ideal for SPAs? - “No, only JS is not ideal for SPAs. We have variety of Frameworks and Libraries
instead which will make it possible for JS to create SPAs”
What is a Framework?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is AngularJS?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Angular JS is an open source
JavaScript Framework
Maintained by Google
It uses HTML’s syntax to
express your applications
component clearly
It is designed for web,
desktop and mobile
platforms
It is completely written in
Typescript
Primarily aimed to develop
Single Page Applications
Features of AngularJS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Data Binding
Architecture
Directives
Not browser specific
Code Less
Speed and
Performance
Dependency Injection
Deep Linking
Routing
Productivity
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
MVC Architecture
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Customer
Waiter
Chef
Ingredients:
Milk
Tea Leaves
Water
Sugar
Cardamom
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
View
Controller
Model
DATA
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Versions and Transition
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Angular JS/Angular 1.X
– aimed to simplify both
the development and
the testing phase of
applications.
Angular 2 – Mobile
oriented, It provided
more choices for
languages from ES5,
ES6, TS.
Angular 4 – Reduce the
size of the code for the
components with faster
compilation, better bug
fixes alert.
Angular 5,6 – Angular
CLI got updated, New
commands added like
ng-update and ng-add.
Angular 7 – Prompts
were introduced which
provide tips in CLI. It
help discover inbuilt
SCSS support, routing.
Angular 8 – Ivy
Compiler introduced,
Differential loading of
modern JS, Dynamic
imports for lazy routes
Angular 9 – This came
with new and improved
Ivy compiler and
runtime, faster testing,
better debugging.
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Environmental setup
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Installing Angular
1) Install node.js and npm - https://nodejs.org/en/
Verify that you are running at least Node.js version 13.x or greater and npm version 5.x or greater
by running node -v and npm -v in a terminal/console window. Newer versions are fine.
Why node js ?
2) Install angular-cli - https://cli.angular.io/
Run command npm install -g @angular/cli
TypeScript Transpiler JavaScript
Node js
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
AngularJS IDEs
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
AngularJS IDEs
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
● Web storm
● Atom
● Sublime
● Best editor: Visual Studio
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Web storm
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Atom
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Sublime Text
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Visual studio code
Introduction to
Visual studio code
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Angular App Fundamentals
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Create Angular App
Once angular-cli is installed, create a new app
run command - ng new <name of the app>
Once the application is created, go to the application folder and run command - ng serve to serve the
application.
Serve/Run Angular App :-
The angular is by default served at http://localhost:4200
Open this link in your browser
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Angular Project Structure
Root project folder, all components
reside here
Assets folder, all images, stylesheets,
JavaScript or third party libraries
reside in assets
main.ts, index.html - entry point of
application
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
How Angular App Starts?
main.ts
app.module.ts
app.component.ts
app.component.html
Main.ts file is entry point of our application.
Main.ts file bootstrap app.module.ts file
This file bootstrap our first component i.e
app.component.ts
This file render app.component.html file.
Final HTML template
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Bootstraping the AppModule
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Bootstraping the AppComponent
Simple AngularJS App
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Companies using AngularJS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Flipkart
Gmail
UpWork
PayPal
Samsung
YouTube
Nike
SONY
HBO
Microsoft Office
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Advantages of AngularJS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Advantages of AngularJS
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
• Number of errors or issues will be minimal as it’s an open source framework
• Two-way binding – we used to write extra JS code to keep the data in HTML code and data later in sync.
Now, Angular will do this automatically
• Routing – Moving from one view to another is pretty easy here as it will be a SPA.
• It supports both Unit testing and Integration testing.
• Directives – It provides its own libraries and directives which makes it more easy to use and code.
Thank You
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited

More Related Content

PDF
Web Application Development – Top 8 Frameworks in 2025.pdf
PPTX
Angular Js
PPTX
Angular 6 Training with project in hyderabad india
PPTX
Flask and Introduction to web frameworks
PPTX
Angular Best Practices To Build Clean and Performant Web Applications
DOC
Krishnagopal Thogiti_Java
PDF
Introduction to Selenium Webdriver - SpringPeople
PPTX
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
Web Application Development – Top 8 Frameworks in 2025.pdf
Angular Js
Angular 6 Training with project in hyderabad india
Flask and Introduction to web frameworks
Angular Best Practices To Build Clean and Performant Web Applications
Krishnagopal Thogiti_Java
Introduction to Selenium Webdriver - SpringPeople
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx

Similar to Introduction+to+AngularJS+with+logo+from+digital+ocean.pdf (20)

PPTX
Module 1.pptx Angular JS FRAMEWORK WEBDEVELOPMENT
PPTX
PPTX
Angular.js vs React.js vs Vue.js _ Elsner.pptx
PPTX
Angular vs react
PDF
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
PDF
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
PPTX
Top 10 Front End Development Technologies to Focus in 2018
PPTX
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
PDF
Why Angular It's Still a Top Choice for Developers in 2025.pdf
PDF
Introduction To Angular.js - SpringPeople
PDF
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
PPTX
Anjular js
DOCX
15 Best AngularJS Development Tools in 2024.docx
PDF
Angular 4 Tutorial For Beginners | Angular 4 Introduction | Angular 4 Trainin...
DOCX
angularjs_tutorial.docx
DOCX
DOCX
DOCX
DOCX
angular content
DOCX
Module 1.pptx Angular JS FRAMEWORK WEBDEVELOPMENT
Angular.js vs React.js vs Vue.js _ Elsner.pptx
Angular vs react
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
Top 10 Front End Development Technologies to Focus in 2018
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
Why Angular It's Still a Top Choice for Developers in 2025.pdf
Introduction To Angular.js - SpringPeople
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
Anjular js
15 Best AngularJS Development Tools in 2024.docx
Angular 4 Tutorial For Beginners | Angular 4 Introduction | Angular 4 Trainin...
angularjs_tutorial.docx
angular content
Ad

More from ahmadfaisal744721 (20)

PPTX
Intoduction to Graph.pptx
PPT
Introduction to Android.ppt
PPT
Topics-Ch4Ch5.ppt
PPTX
db design and maintenance part 1.pptx
PPTX
Chapter 4v4 Network protocols and standards 2.pptx
PPTX
Chapter 4v4 Network protocols and standards 1.pptx
PPTX
Chapter 3v3 Mobile communication systems.pptx
PPTX
Chapter 2v4 Pervasive Computing systems, design and infrastructure 2.pptx
PPTX
Chapter 2v4 Pervasive Computing systems, design and infrastructure 1.pptx
PPT
Sec.0a--Intro to pervasive computing 9.ppt
PPT
Sec.0a--Intro to pervasive computing 8.ppt
PPT
Sec.0a--Intro to pervasive computing 7.ppt
PPT
Sec.0a--Intro to pervasive computing 6.ppt
PPT
Sec.0a--Intro to pervasive computing 5.ppt
PPT
Sec.0a--Intro to pervasive computing 4.ppt
PPT
Sec.0a--Intro to pervasive computing 3.ppt
PPT
Sec.0a--Intro to pervasive computing 2.ppt
PPT
Sec.0a--Intro to pervasive computing 1.ppt
PPTX
write no image.pptx
PPT
Topics-Ch4Ch5.ppt
Intoduction to Graph.pptx
Introduction to Android.ppt
Topics-Ch4Ch5.ppt
db design and maintenance part 1.pptx
Chapter 4v4 Network protocols and standards 2.pptx
Chapter 4v4 Network protocols and standards 1.pptx
Chapter 3v3 Mobile communication systems.pptx
Chapter 2v4 Pervasive Computing systems, design and infrastructure 2.pptx
Chapter 2v4 Pervasive Computing systems, design and infrastructure 1.pptx
Sec.0a--Intro to pervasive computing 9.ppt
Sec.0a--Intro to pervasive computing 8.ppt
Sec.0a--Intro to pervasive computing 7.ppt
Sec.0a--Intro to pervasive computing 6.ppt
Sec.0a--Intro to pervasive computing 5.ppt
Sec.0a--Intro to pervasive computing 4.ppt
Sec.0a--Intro to pervasive computing 3.ppt
Sec.0a--Intro to pervasive computing 2.ppt
Sec.0a--Intro to pervasive computing 1.ppt
write no image.pptx
Topics-Ch4Ch5.ppt
Ad

Recently uploaded (20)

PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PDF
ART & DESIGN HISTORY OF VEDIC CIVILISATION.pdf
PDF
Pongal 2026 Sponsorship Presentation - Bhopal Tamil Sangam
PPTX
Special finishes, classification and types, explanation
PPT
Machine printing techniques and plangi dyeing
PDF
SOUND-NOTE-ARCHITECT-MOHIUDDIN AKHAND SMUCT
PDF
Urban Design Final Project-Site Analysis
PDF
intro_to_rust.pptx_123456789012446789.pdf
PPTX
NEW EIA PART B - Group 5 (Section 50).pptx
PPTX
Acoustics new for. Sound insulation and absorber
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PPTX
Evolution_of_Computing_Presentation (1).pptx
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
Test slideshare presentation for blog post
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPTX
EDP Competencies-types, process, explanation
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPTX
Orthtotics presentation regarding physcial therapy
PDF
Chalkpiece Annual Report from 2019 To 2025
YOW2022-BNE-MinimalViableArchitecture.pdf
ART & DESIGN HISTORY OF VEDIC CIVILISATION.pdf
Pongal 2026 Sponsorship Presentation - Bhopal Tamil Sangam
Special finishes, classification and types, explanation
Machine printing techniques and plangi dyeing
SOUND-NOTE-ARCHITECT-MOHIUDDIN AKHAND SMUCT
Urban Design Final Project-Site Analysis
intro_to_rust.pptx_123456789012446789.pdf
NEW EIA PART B - Group 5 (Section 50).pptx
Acoustics new for. Sound insulation and absorber
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
Evolution_of_Computing_Presentation (1).pptx
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Test slideshare presentation for blog post
Tenders & Contracts Works _ Services Afzal.pptx
EDP Competencies-types, process, explanation
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
Orthtotics presentation regarding physcial therapy
Chalkpiece Annual Report from 2019 To 2025

Introduction+to+AngularJS+with+logo+from+digital+ocean.pdf

  • 2. Agenda Features of AngularJS Angular App Fundamentals What are SPAs? 2 Introduction to AngularJS? 3 Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited 4 10 Versions and Transitions 6 Environmental setup 7 AngularJS IDE’s 8 Introduction to Visual studio code 9 MVC Architecture 5 Prerequisites 1 Companies using AngularJS 11 Advantages of AngularJS 12
  • 3. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Prerequisites
  • 4. Adds Design/Structure to the webpage HTML Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 5. What is HTML? Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited ● Stands for HyperText Markup Language ● HyperText: Link between web pages. ● Markup Language: Text between tags which defines structure. ● It is a language to create web pages ● HTML defines how the web page looks and how to display content with the help of elements ● It forms or defines the structure of our Web Page ● Need to save your file with .html extension
  • 6. HTML Skeleton Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited <!DOCTYPE html> <html> <head> <title></title> </head> <body> </body> </html>
  • 7. Adds Style/Colors to the webpage CSS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 8. What is CSS? Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited ● Stands for Cascading Style Sheet. ● It’s a stylesheet language used for styling the HTML pages. ● It describes how the page will appear on the screen. ● It can control the layout of multiple webpages at all once. ● It adds styles like fonts, colors, layout to the webpages. ● CSS benefits accessibility primarily by separating document structure from presentation. ● CSS allows precise control over spacing, alignment and positioning.
  • 9. CSS Syntax Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited <!DOCTYPE html> <html> <head> <title></title> <style> selector1{ property1:value; property2:value; } selector2{ property1:value; } </style> </head> <body> </body> </html>
  • 10. Adds Behaviour/Interactivity to the webpage Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 11. What is JS? Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited ● Stands for JavaScript. ● It’s a scripting language used for adding behavior to the webpages. ● It is a verb of the webpage that defines all the actions to be performed on a webpage. ● Its an object oriented programming language that uses JIT compiler. ● It is everywhere and all web browsers are installed with it. ● JS application ranges from web development, mobile development etc. ● JS is easy, simple and very compatible with HTML-CSS
  • 12. JS Syntax Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited <!DOCTYPE html> <html> <head> <title></title> </head> <body> ….. ….. <script> document.write(“Hello World”); console.log(“Great Learning”); </script> </body> </html>
  • 13. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited What are SPA’s?
  • 14. What are SPAs? Client Server Client Server Request for www.amazon.com Homepage for www.amazon.com in response Request for Page X Response for Page X Request for an item in search box Request page with that item results  Multiple page request sent to Server every time we click  Client page getting loaded again and again.  Hence, such pages are low on speed Request for www.gmail.com Entire app package for www.gmail.com in response Request for Data Data in Response  Single request sent to Server to load the whole application  Multiple data Requests going to the server, not page.  Client page doesn’t get load again and again. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 15. Introduction to AngularJS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 16. Why AngularJS? • Framework is the basic structure • It helps in easy development • It provides basic configuration Is JS ideal for SPAs? - “No, only JS is not ideal for SPAs. We have variety of Frameworks and Libraries instead which will make it possible for JS to create SPAs” What is a Framework? Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 17. What is AngularJS? Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Angular JS is an open source JavaScript Framework Maintained by Google It uses HTML’s syntax to express your applications component clearly It is designed for web, desktop and mobile platforms It is completely written in Typescript Primarily aimed to develop Single Page Applications
  • 18. Features of AngularJS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 19. Data Binding Architecture Directives Not browser specific Code Less Speed and Performance Dependency Injection Deep Linking Routing Productivity Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 20. MVC Architecture Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 21. Customer Waiter Chef Ingredients: Milk Tea Leaves Water Sugar Cardamom Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 22. View Controller Model DATA Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 23. Versions and Transition Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 24. Angular JS/Angular 1.X – aimed to simplify both the development and the testing phase of applications. Angular 2 – Mobile oriented, It provided more choices for languages from ES5, ES6, TS. Angular 4 – Reduce the size of the code for the components with faster compilation, better bug fixes alert. Angular 5,6 – Angular CLI got updated, New commands added like ng-update and ng-add. Angular 7 – Prompts were introduced which provide tips in CLI. It help discover inbuilt SCSS support, routing. Angular 8 – Ivy Compiler introduced, Differential loading of modern JS, Dynamic imports for lazy routes Angular 9 – This came with new and improved Ivy compiler and runtime, faster testing, better debugging. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 25. Environmental setup Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 26. Installing Angular 1) Install node.js and npm - https://nodejs.org/en/ Verify that you are running at least Node.js version 13.x or greater and npm version 5.x or greater by running node -v and npm -v in a terminal/console window. Newer versions are fine. Why node js ? 2) Install angular-cli - https://cli.angular.io/ Run command npm install -g @angular/cli TypeScript Transpiler JavaScript Node js Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 27. AngularJS IDEs Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 28. AngularJS IDEs Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited ● Web storm ● Atom ● Sublime ● Best editor: Visual Studio
  • 29. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Web storm
  • 30. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Atom
  • 31. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Sublime Text
  • 32. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Visual studio code
  • 33. Introduction to Visual studio code Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 34. Angular App Fundamentals Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 35. Create Angular App Once angular-cli is installed, create a new app run command - ng new <name of the app> Once the application is created, go to the application folder and run command - ng serve to serve the application. Serve/Run Angular App :- The angular is by default served at http://localhost:4200 Open this link in your browser Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 36. Angular Project Structure Root project folder, all components reside here Assets folder, all images, stylesheets, JavaScript or third party libraries reside in assets main.ts, index.html - entry point of application Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 37. How Angular App Starts? main.ts app.module.ts app.component.ts app.component.html Main.ts file is entry point of our application. Main.ts file bootstrap app.module.ts file This file bootstrap our first component i.e app.component.ts This file render app.component.html file. Final HTML template Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 38. Bootstraping the AppModule Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 39. Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited Bootstraping the AppComponent
  • 40. Simple AngularJS App Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 41. Companies using AngularJS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 42. Flipkart Gmail UpWork PayPal Samsung YouTube Nike SONY HBO Microsoft Office Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 43. Advantages of AngularJS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
  • 44. Advantages of AngularJS Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited • Number of errors or issues will be minimal as it’s an open source framework • Two-way binding – we used to write extra JS code to keep the data in HTML code and data later in sync. Now, Angular will do this automatically • Routing – Moving from one view to another is pretty easy here as it will be a SPA. • It supports both Unit testing and Integration testing. • Directives – It provides its own libraries and directives which makes it more easy to use and code.
  • 45. Thank You Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited