SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Angular
Introduction
Angular is open-source and front-end based web development platform, which
performs best when used for building dynamic, SPA (Single Page Application),
developed and maintained by GOOGLE.
First pointTraditional Web Application vs.
SPA
Traditional Web Application runs from the server’s end. We have a User of the system, who
requests Client (let us say our browser), which in turn requests Server. The server simply holds our
business logic, data and renders our website.
When the user clicks on our link, Client will send a request to the server. The server will handle this
request and will send back a response which contains HTML code which browser will render and
final response is shown to the user.
The problem with this approach is that we spend a lot of time sending the request to the server and
getting the response.
SPA
In SPA, the user still clicks on the link and requests the client but, the request is handled by the client
on its own and, renders the HTML page through JavaScript. So, naturally, it raises one more question
that, now where is the role of the server?
Server will play its role when the user needs some data that must be processed by the server (say,
for example, database operations) or some business logic that must be stored at server side, and of
course, at the time of initial loading. In only these cases, we will send the request and wait for the
response. In short, much of data will not traverse through the internet, which will make application to
run faster.
Angular Version History
Angular is in the market for almost 8 years. The version which you are using
currently is not the first version launched. Then which one was the first one?
Let’s quickly move to the Version History for Angular.
Initially, the Angular team came up with one single name “Angular2” for two
different approaches. But this bottleneck had put developers in dilemma. So
team bifurcated this name into two. “AngularJS” refers to the version 1.x and
“Angular” refers to the version 2 and above.
AngularJS
Firstly, it was released in October 2010 on GitHub. Version 1.0 was launched in June 2012. It is referred to as
“AngularJS” or “Angular 1.x”. It is based on javascript. It uses the client-side Model-View-Controller(MVC) and
Model-View-ViewModel(MVVM) to make development and testing much easier.
Angular 2.x.x
Angular 2 is the complete rewrite of Angular 1.x. It was announced in September 2014. Angular2 is Typescript
based framework. Typescript is a superset of JavaScript, Microsoft planted seeds and Angular team adopted it
for development purpose. It is based on service and component concept.
Angular 4.x.x
After skipping the version 3, yes, to avoid confusion with the Angular’s router version (3.0.0), the team came up
with one higher version in March 2017. Angular 4 is compatible with Angular 2 because the team did not want to
break the whole ecosystem. Angular 4.3 was the minor release, which means it does not contain any drastic
changes.
Angular 5.x.x
Angular 5 was released in November 2017 to support Progressive Web Apps and material design.
Angular Version History
Angular 6.x.x
Angular 6 was the major release in May 2018. It focused less on the framework but more on making it easier to
move ahead with Angular in future.
Major difference in Angular 1.x (AngularJS) and Angular (version 2+)?
- The major difference between these two frameworks is that AngularJS is a popular JavaScript Framework and
Angular is TypeScript Framework.
- Whereas, AngularJS was not mobile-oriented, but Angular was developed keeping mobile phase in mind.
- Angular has more language choice than AngularJS.
- With AngularJS does not support SPAs whereas, Angular does incorporate this phenomenon.
- The controller concept of AngularJS was replaced by component in Angular v2.
Angular Version History
Advantages of Angular
Component Based
The whole architecture of Angular is component based, which allows reusability and modularity.
Cross Platform
Ionic, React native and Nativescript are such examples of mobile application support given by Angular.
TypeScript writes JavaScript
TypeScript plays a vital role in the place where you don’t know javascript. Here you write a simple program in typescript and it
automatically gets converted to JavaScript i.e. (.ts) file is converted to (.js).
Services
They are sets of code which can be shared by different Components of an Angular 2 application. So if we have data component
which gets data from a database this can be shared so that it could be used by other components when required. Which brings
consistency.
Productivity
With greater consistency, you get the added benefit of productivity. When you learn how to write one component you can write code
in all other components with the same guidelines keeping in mind.
Debugging Easy
Typescript code can be debugged easily in the browser as long as proper file binding is done at the compile time. But still, we are not
satisfied with this. Right!? Let us take a tour to its real-life feasibility.
Who are using Angular?
Google, Paypal, Tata Consultancy Service careers are some of the well-known
companies who have used AngularJS as a development platform, CVS shop,
Onefootball, Microsoft customers, Citibank Customer Service have used
Angular as their development platform.
Getting Started with Angular?
1 IDE : You can use any editor of your choice Like Sublime Text, Visual Studio Code etc. But I prefer using Visual Studio Code
developing the app because it is free, it has various extension availability, moreover, typescript snippets are there which will add
frequently used code snippets. Once the choice regarding IDE is done.
2. Next step is Node and NPM. If Node.js is not there on your machine, Install Node.js Version >= 5.0. You can get Node from
following site https://nodejs.org/en/
NPM comes along with Node, so installing node will install Node and NPM at once. After performing this step just check the version
of Node and Npm to ensure proper installation by firing following command :
node –v
npm –v
If your command prompt answers the versions for npm and node. Then you are good to go to the next step which is to Install
angular CLI(Command Line Interface)
Angular-cli command line utility responsible for quick project generation and setting up required components and much more. Type
following command at your command prompt to install angular CLI.
npm install –g @angular/cli (-g stands for Global).
Once you are done with this step, angular-cli is installed at your machine. Now you can create a new project for angular by firing:
ng new (yourAppName)
After this, go to the working directory and issue the following commands one by one run your application.
cd (yourAppNameFolder)
ng serve –o
Understanding
Angular App Folder
Structure
e2e. stands for end to end testing. It is
the way to ensure correct working of
components together to provide
desired functionality.
node_modules is the place where our
all third party library resides, which can
be used for development purpose.
Understanding
Angular App Folder
Structure
Src folder contains the actual source
code for development. As you can see
in the picture, src folder has 3
subfolders: App, Assets, Environment.
App folder is the prominent part of
Angular. It has all the components and
modules of the application.
Assets folder is the place where we
can store our images and icons.
Understanding
Angular App Folder
Structure
Environment folder has two files:
environment.prod.ts stores configuration
for production environment and
environment.ts stores configuration for
development environment.
favicon.ico. is the icon file which is
displayed on the browser when you run
the application.
index.html is the first html file that is
loaded when your application is run on
browser.
Main.ts is doorway for our application. It
is the typescript file. Here we can
bootstrap(load) our main module using
methods.
Understanding
Angular App Folder
Structure
Pollyfills.ts is the scripts which
eliminates the need to set up
everything. In the other words, it
makes our application compatible with
different browsers. It bridges the gap
between our Angular app and browser.
style.css is the file where global styles
for our application resides.
test.ts is used for testing purpose.
tsconfig.app.json has the root files
and the compiler options.
angular-cli-json is standard
configuration file.
Understanding
Angular App Folder
Structure
.editorconfig is used to define standard and
consistence coding patterns for team
development purpose.
.gitignore is used when exporting your files and
folders to github.
karma.conf.js is the file which is used for unit
test.
package.json is the file which holds metadata
for projects such as project name, version and
handle dependencies of the project.
tsonfig.json file has setting to convert your
typescript code into javascript code to make the
browser understand our code.
tslint.json file checks your code for errors. It
can be customised according to your own rules.
Thanks

Weitere ähnliche Inhalte

Was ist angesagt?

Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event HandlingWebStackAcademy
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariSurekha Gadkari
 
Building blocks of Angular
Building blocks of AngularBuilding blocks of Angular
Building blocks of AngularKnoldus Inc.
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular ComponentsSquash Apps Pvt Ltd
 
Angular tutorial
Angular tutorialAngular tutorial
Angular tutorialRohit Gupta
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesWebStackAcademy
 
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...Edureka!
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014JWORKS powered by Ordina
 
Angular Interview Questions & Answers
Angular Interview Questions & AnswersAngular Interview Questions & Answers
Angular Interview Questions & AnswersRatnala Charan kumar
 
Angular 2.0 forms
Angular 2.0 formsAngular 2.0 forms
Angular 2.0 formsEyal Vardi
 
Angular directives and pipes
Angular directives and pipesAngular directives and pipes
Angular directives and pipesKnoldus Inc.
 
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...Edureka!
 

Was ist angesagt? (20)

Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha Gadkari
 
Angular Basics.pptx
Angular Basics.pptxAngular Basics.pptx
Angular Basics.pptx
 
Building blocks of Angular
Building blocks of AngularBuilding blocks of Angular
Building blocks of Angular
 
Angular
AngularAngular
Angular
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular Components
 
Angular 14.pptx
Angular 14.pptxAngular 14.pptx
Angular 14.pptx
 
Angular
AngularAngular
Angular
 
Angular tutorial
Angular tutorialAngular tutorial
Angular tutorial
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP Services
 
Angular introduction students
Angular introduction studentsAngular introduction students
Angular introduction students
 
Angular modules in depth
Angular modules in depthAngular modules in depth
Angular modules in depth
 
Angular Directives
Angular DirectivesAngular Directives
Angular Directives
 
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
 
Angular Data Binding
Angular Data BindingAngular Data Binding
Angular Data Binding
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
Angular Interview Questions & Answers
Angular Interview Questions & AnswersAngular Interview Questions & Answers
Angular Interview Questions & Answers
 
Angular 2.0 forms
Angular 2.0 formsAngular 2.0 forms
Angular 2.0 forms
 
Angular directives and pipes
Angular directives and pipesAngular directives and pipes
Angular directives and pipes
 
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
 

Ähnlich wie Angular

Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
Big Improvement_ New AngularJS Tools Changing How We Develop.pptxBig Improvement_ New AngularJS Tools Changing How We Develop.pptx
Big Improvement_ New AngularJS Tools Changing How We Develop.pptxsarah david
 
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
quantum_leap_angularjs_tools_redefining_development_in_2023.pdfquantum_leap_angularjs_tools_redefining_development_in_2023.pdf
quantum_leap_angularjs_tools_redefining_development_in_2023.pdfsarah david
 
Big Improvement_ New AngularJS Tools Changing How We Develop.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pdfBig Improvement_ New AngularJS Tools Changing How We Develop.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pdfsarah david
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshareSaleemMalik52
 
Detailed Guide of Angular Development 2022.pptx
Detailed Guide of Angular Development 2022.pptxDetailed Guide of Angular Development 2022.pptx
Detailed Guide of Angular Development 2022.pptx75waytechnologies
 
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
quantum_leap_angularjs_tools_redefining_development_in_2023.pptxquantum_leap_angularjs_tools_redefining_development_in_2023.pptx
quantum_leap_angularjs_tools_redefining_development_in_2023.pptxsarah david
 
What’s new in angular 13 and why should you use it for web app development pr...
What’s new in angular 13 and why should you use it for web app development pr...What’s new in angular 13 and why should you use it for web app development pr...
What’s new in angular 13 and why should you use it for web app development pr...Moon Technolabs Pvt. Ltd.
 
Top Reasons to use the Angular Framework for developing Applications!
Top Reasons to use the Angular Framework for developing Applications!Top Reasons to use the Angular Framework for developing Applications!
Top Reasons to use the Angular Framework for developing Applications!Shelly Megan
 
Top 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For DevelopersTop 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For DevelopersAlbiorix Technology
 
Where and Why Use Angular for Web Development?
Where and Why Use Angular for Web Development?Where and Why Use Angular for Web Development?
Where and Why Use Angular for Web Development?John Metthew
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceEPAM Systems
 
Top Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowTop Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowAndolasoft Inc
 
Angular 12 brought several new features to the table
Angular 12 brought several new features to the tableAngular 12 brought several new features to the table
Angular 12 brought several new features to the tableMoon Technolabs Pvt. Ltd.
 
Heading towards the great release of angular 8.0 development observe the uno...
Heading towards the great release of angular 8.0 development  observe the uno...Heading towards the great release of angular 8.0 development  observe the uno...
Heading towards the great release of angular 8.0 development observe the uno...Concetto Labs
 
Start your journey with angular | Basic Angular
Start your journey with angular | Basic AngularStart your journey with angular | Basic Angular
Start your journey with angular | Basic AngularAnwarul Islam
 
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 ApplicationsAlbiorix Technology
 
Top 20 AngularJS Development Tools That Developers Should Know In 2022
Top 20 AngularJS Development Tools That Developers Should Know In 2022Top 20 AngularJS Development Tools That Developers Should Know In 2022
Top 20 AngularJS Development Tools That Developers Should Know In 2022simonedaniels3
 
Angular vs. angular js know the key differences
Angular vs. angular js   know the key differencesAngular vs. angular js   know the key differences
Angular vs. angular js know the key differences75waytechnologies
 

Ähnlich wie Angular (20)

Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
Big Improvement_ New AngularJS Tools Changing How We Develop.pptxBig Improvement_ New AngularJS Tools Changing How We Develop.pptx
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
 
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
quantum_leap_angularjs_tools_redefining_development_in_2023.pdfquantum_leap_angularjs_tools_redefining_development_in_2023.pdf
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
 
Big Improvement_ New AngularJS Tools Changing How We Develop.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pdfBig Improvement_ New AngularJS Tools Changing How We Develop.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pdf
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
 
Detailed Guide of Angular Development 2022.pptx
Detailed Guide of Angular Development 2022.pptxDetailed Guide of Angular Development 2022.pptx
Detailed Guide of Angular Development 2022.pptx
 
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
quantum_leap_angularjs_tools_redefining_development_in_2023.pptxquantum_leap_angularjs_tools_redefining_development_in_2023.pptx
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
 
What’s new in angular 13 and why should you use it for web app development pr...
What’s new in angular 13 and why should you use it for web app development pr...What’s new in angular 13 and why should you use it for web app development pr...
What’s new in angular 13 and why should you use it for web app development pr...
 
Top Reasons to use the Angular Framework for developing Applications!
Top Reasons to use the Angular Framework for developing Applications!Top Reasons to use the Angular Framework for developing Applications!
Top Reasons to use the Angular Framework for developing Applications!
 
Angular Js
Angular JsAngular Js
Angular Js
 
Top 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For DevelopersTop 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For Developers
 
Where and Why Use Angular for Web Development?
Where and Why Use Angular for Web Development?Where and Why Use Angular for Web Development?
Where and Why Use Angular for Web Development?
 
How Does Angular Work?
How Does Angular Work?How Does Angular Work?
How Does Angular Work?
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete Reference
 
Top Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowTop Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must Know
 
Angular 12 brought several new features to the table
Angular 12 brought several new features to the tableAngular 12 brought several new features to the table
Angular 12 brought several new features to the table
 
Heading towards the great release of angular 8.0 development observe the uno...
Heading towards the great release of angular 8.0 development  observe the uno...Heading towards the great release of angular 8.0 development  observe the uno...
Heading towards the great release of angular 8.0 development observe the uno...
 
Start your journey with angular | Basic Angular
Start your journey with angular | Basic AngularStart your journey with angular | Basic Angular
Start your journey with angular | Basic Angular
 
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
 
Top 20 AngularJS Development Tools That Developers Should Know In 2022
Top 20 AngularJS Development Tools That Developers Should Know In 2022Top 20 AngularJS Development Tools That Developers Should Know In 2022
Top 20 AngularJS Development Tools That Developers Should Know In 2022
 
Angular vs. angular js know the key differences
Angular vs. angular js   know the key differencesAngular vs. angular js   know the key differences
Angular vs. angular js know the key differences
 

Kürzlich hochgeladen

%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburgmasabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsBert Jan Schrijver
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durbanmasabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 

Kürzlich hochgeladen (20)

%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 

Angular

  • 2. Introduction Angular is open-source and front-end based web development platform, which performs best when used for building dynamic, SPA (Single Page Application), developed and maintained by GOOGLE.
  • 3. First pointTraditional Web Application vs. SPA Traditional Web Application runs from the server’s end. We have a User of the system, who requests Client (let us say our browser), which in turn requests Server. The server simply holds our business logic, data and renders our website. When the user clicks on our link, Client will send a request to the server. The server will handle this request and will send back a response which contains HTML code which browser will render and final response is shown to the user. The problem with this approach is that we spend a lot of time sending the request to the server and getting the response.
  • 4. SPA In SPA, the user still clicks on the link and requests the client but, the request is handled by the client on its own and, renders the HTML page through JavaScript. So, naturally, it raises one more question that, now where is the role of the server? Server will play its role when the user needs some data that must be processed by the server (say, for example, database operations) or some business logic that must be stored at server side, and of course, at the time of initial loading. In only these cases, we will send the request and wait for the response. In short, much of data will not traverse through the internet, which will make application to run faster.
  • 5. Angular Version History Angular is in the market for almost 8 years. The version which you are using currently is not the first version launched. Then which one was the first one? Let’s quickly move to the Version History for Angular. Initially, the Angular team came up with one single name “Angular2” for two different approaches. But this bottleneck had put developers in dilemma. So team bifurcated this name into two. “AngularJS” refers to the version 1.x and “Angular” refers to the version 2 and above.
  • 6. AngularJS Firstly, it was released in October 2010 on GitHub. Version 1.0 was launched in June 2012. It is referred to as “AngularJS” or “Angular 1.x”. It is based on javascript. It uses the client-side Model-View-Controller(MVC) and Model-View-ViewModel(MVVM) to make development and testing much easier. Angular 2.x.x Angular 2 is the complete rewrite of Angular 1.x. It was announced in September 2014. Angular2 is Typescript based framework. Typescript is a superset of JavaScript, Microsoft planted seeds and Angular team adopted it for development purpose. It is based on service and component concept. Angular 4.x.x After skipping the version 3, yes, to avoid confusion with the Angular’s router version (3.0.0), the team came up with one higher version in March 2017. Angular 4 is compatible with Angular 2 because the team did not want to break the whole ecosystem. Angular 4.3 was the minor release, which means it does not contain any drastic changes. Angular 5.x.x Angular 5 was released in November 2017 to support Progressive Web Apps and material design. Angular Version History
  • 7. Angular 6.x.x Angular 6 was the major release in May 2018. It focused less on the framework but more on making it easier to move ahead with Angular in future. Major difference in Angular 1.x (AngularJS) and Angular (version 2+)? - The major difference between these two frameworks is that AngularJS is a popular JavaScript Framework and Angular is TypeScript Framework. - Whereas, AngularJS was not mobile-oriented, but Angular was developed keeping mobile phase in mind. - Angular has more language choice than AngularJS. - With AngularJS does not support SPAs whereas, Angular does incorporate this phenomenon. - The controller concept of AngularJS was replaced by component in Angular v2. Angular Version History
  • 8. Advantages of Angular Component Based The whole architecture of Angular is component based, which allows reusability and modularity. Cross Platform Ionic, React native and Nativescript are such examples of mobile application support given by Angular. TypeScript writes JavaScript TypeScript plays a vital role in the place where you don’t know javascript. Here you write a simple program in typescript and it automatically gets converted to JavaScript i.e. (.ts) file is converted to (.js). Services They are sets of code which can be shared by different Components of an Angular 2 application. So if we have data component which gets data from a database this can be shared so that it could be used by other components when required. Which brings consistency. Productivity With greater consistency, you get the added benefit of productivity. When you learn how to write one component you can write code in all other components with the same guidelines keeping in mind. Debugging Easy Typescript code can be debugged easily in the browser as long as proper file binding is done at the compile time. But still, we are not satisfied with this. Right!? Let us take a tour to its real-life feasibility.
  • 9. Who are using Angular? Google, Paypal, Tata Consultancy Service careers are some of the well-known companies who have used AngularJS as a development platform, CVS shop, Onefootball, Microsoft customers, Citibank Customer Service have used Angular as their development platform.
  • 10. Getting Started with Angular? 1 IDE : You can use any editor of your choice Like Sublime Text, Visual Studio Code etc. But I prefer using Visual Studio Code developing the app because it is free, it has various extension availability, moreover, typescript snippets are there which will add frequently used code snippets. Once the choice regarding IDE is done. 2. Next step is Node and NPM. If Node.js is not there on your machine, Install Node.js Version >= 5.0. You can get Node from following site https://nodejs.org/en/ NPM comes along with Node, so installing node will install Node and NPM at once. After performing this step just check the version of Node and Npm to ensure proper installation by firing following command : node –v npm –v If your command prompt answers the versions for npm and node. Then you are good to go to the next step which is to Install angular CLI(Command Line Interface) Angular-cli command line utility responsible for quick project generation and setting up required components and much more. Type following command at your command prompt to install angular CLI. npm install –g @angular/cli (-g stands for Global). Once you are done with this step, angular-cli is installed at your machine. Now you can create a new project for angular by firing: ng new (yourAppName) After this, go to the working directory and issue the following commands one by one run your application. cd (yourAppNameFolder) ng serve –o
  • 11. Understanding Angular App Folder Structure e2e. stands for end to end testing. It is the way to ensure correct working of components together to provide desired functionality. node_modules is the place where our all third party library resides, which can be used for development purpose.
  • 12. Understanding Angular App Folder Structure Src folder contains the actual source code for development. As you can see in the picture, src folder has 3 subfolders: App, Assets, Environment. App folder is the prominent part of Angular. It has all the components and modules of the application. Assets folder is the place where we can store our images and icons.
  • 13. Understanding Angular App Folder Structure Environment folder has two files: environment.prod.ts stores configuration for production environment and environment.ts stores configuration for development environment. favicon.ico. is the icon file which is displayed on the browser when you run the application. index.html is the first html file that is loaded when your application is run on browser. Main.ts is doorway for our application. It is the typescript file. Here we can bootstrap(load) our main module using methods.
  • 14. Understanding Angular App Folder Structure Pollyfills.ts is the scripts which eliminates the need to set up everything. In the other words, it makes our application compatible with different browsers. It bridges the gap between our Angular app and browser. style.css is the file where global styles for our application resides. test.ts is used for testing purpose. tsconfig.app.json has the root files and the compiler options. angular-cli-json is standard configuration file.
  • 15. Understanding Angular App Folder Structure .editorconfig is used to define standard and consistence coding patterns for team development purpose. .gitignore is used when exporting your files and folders to github. karma.conf.js is the file which is used for unit test. package.json is the file which holds metadata for projects such as project name, version and handle dependencies of the project. tsonfig.json file has setting to convert your typescript code into javascript code to make the browser understand our code. tslint.json file checks your code for errors. It can be customised according to your own rules.