SlideShare a Scribd company logo
3
Most read
4
Most read
6
Most read
Presented By:
Shubhrank Rastogi & Kiran Jeet Kaur
Building Blocks of
Angular
Lack of etiquette and manners is a huge turn off.
KnolX Etiquettes
Punctuality
Respect Knolx session timings, you
are requested not to join sessions
after a 5 minutes threshold post
the session start time.
Feedback
Make sure to submit a constructive
feedback for all sessions as it is
very helpful for the presenter.
Silent Mode
Keep your mobile devices in silent
mode, feel free to move out of
session in case you need to attend
an urgent call.
Avoid Disturbance
Avoid unwanted chit chat during
the session.
Our Agenda
01 Angular App architecture
02 App Bootstrapping
03
Angular Modules and
Components
04 Angular Services
05 Angular Router Module
The architecture of an Angular application relies on certain fundamental concepts.
Architecture
Bootstrapping is a technique of initializing or loading our Angular application.The Angular takes the
following steps to load our first view.
1. Index.html loads
2. Angular, Third-party libraries & Application loads
3. Main.ts the application entry point
4. Root Module
5. Root Component
6. Template
Bootstrapping an App
● Angular applications are modular and Angular has its own modularity system called NgModules.
● Module in Angular refers to a place where you can group the components, directives, pipes, and
services, which are related to the application.
● They can import functionality that is exported from other NgModules, and export selected
functionality for use by other NgModules.
● Every Angular application has at least one NgModule class, the root module, which is conventionally
named AppModule.
Modules
Let us take a look at how the root module (i.e. src/app/app.module.ts) looks like initially:
….Cont. Modules
….Cont. Modules
Angular CLI commands to generate a module -
● A component controls a patch of screen called a
view.
● A component's application logic is inside a class,
which supports the view.
● This class is decorated with @Component
decorator.
● These components are bundled together to
create the web application.
● They make your complex application into
reusable parts which you can reuse very easily.
Components
….Cont. Components
Each component in angular has the following files:
1. HTML File : This file defines how it will be rendered.
2. CSS file : It defines all the CSS styles which will be applied to your component.
3. Spec file : This file is used for unit testing purpose.
4. Typescript file : It defines the behavior.
….Cont. Components
Angular CLI commands to generate a component -
● You define a component's view with its companion template.
● A template is a form of HTML that tells Angular how to render the
component.
● A template looks like regular HTML, except that it also contains
Angular template syntax, which alters the HTML based on your
application's logic and the state of application and DOM data.
….Cont. Component’s
Template
● The metadata for a component tells Angular where to
get the major building blocks that it needs to create
and present the component and its view.
● The @Component decorator identifies the class
immediately below it as a component class, and
provides the template and related component-specific
metadata.
● Decorators are used for attaching metadata to classes,
it knows the configuration of those classes and how
they should work.
….Cont. Component’s
Decorator
● A service is typically a class with a narrow, well-defined purpose. It should do something specific and
do it well.
● To define a class as a service in Angular, use the @Injectable() decorator.
● Angular distinguishes components from services to increase modularity and reusability.
● This makes our angular app more modular, means instead of writing same code in different
components we will inject the service and calls the method in the service that triggers HTTP requests.
Services
● Dependency Injection is wired into the Angular framework and is used to provide components with
the services they need.
● You can inject a service into a component, giving the component access to that service class.
● Angular, use the @Injectable() decorator to provide the metadata that allows Angular to inject it into
a component as a dependency.
….Cont. Service’s DI
….Cont. Services
Angular CLI commands to generate a service -
● Routing in Angular helps us navigate from one view to another as users perform tasks in the
app.
● To add Routing in the application, we use the RouterModule.
● Here is the app-routing.module.ts file which is created by default:
Router Module
...Cont. Router Module
DEMO
References
● https://angular.io/guide/architecture
● https://angular.io/guide/ngmodule-vs-jsmodule
● https://medium.com/bycodegarage/building-blocks-of-angular-eafbb289b6d6
● https://www.tektutorialshub.com/angular/angular-bootstrapping-application/
● https://www.codeproject.com/Articles/1255334/Building-Blocks-of-Angular
● https://www.edureka.co/blog/angular-tutorial/#BuildingBlocksOfAngular
Thank You !
Get in touch with us:
Lorem Studio, Lord Building
D4456, LA, USA

More Related Content

What's hot (20)

PPT
Angular 8
Sunil OS
 
PPTX
Angular 14.pptx
MohaNedGhawar
 
PPTX
Angular introduction students
Christian John Felix
 
PPTX
Angular Data Binding
Jennifer Estrada
 
PDF
TypeScript Introduction
Dmitry Sheiko
 
PDF
Angular Directives
iFour Technolab Pvt. Ltd.
 
PPTX
Angular 9
Raja Vishnu
 
PDF
Angular Advanced Routing
Laurent Duveau
 
ODP
Routing & Navigating Pages in Angular 2
Knoldus Inc.
 
PPTX
Angular kickstart slideshare
SaleemMalik52
 
PDF
JavaScript Programming
Sehwan Noh
 
PDF
Angular
Lilia Sfaxi
 
PDF
TypeScript - An Introduction
NexThoughts Technologies
 
PPTX
React hooks
Ramy ElBasyouni
 
PPTX
Typescript in 30mins
Udaya Kumar
 
PPTX
Getting started with typescript
C...L, NESPRESSO, WAFAASSURANCE, SOFRECOM ORANGE
 
PPTX
What’s New in Angular 14?
Albiorix Technology
 
PPT
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
PPTX
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
PPTX
React + Redux Introduction
Nikolaus Graf
 
Angular 8
Sunil OS
 
Angular 14.pptx
MohaNedGhawar
 
Angular introduction students
Christian John Felix
 
Angular Data Binding
Jennifer Estrada
 
TypeScript Introduction
Dmitry Sheiko
 
Angular Directives
iFour Technolab Pvt. Ltd.
 
Angular 9
Raja Vishnu
 
Angular Advanced Routing
Laurent Duveau
 
Routing & Navigating Pages in Angular 2
Knoldus Inc.
 
Angular kickstart slideshare
SaleemMalik52
 
JavaScript Programming
Sehwan Noh
 
Angular
Lilia Sfaxi
 
TypeScript - An Introduction
NexThoughts Technologies
 
React hooks
Ramy ElBasyouni
 
Typescript in 30mins
Udaya Kumar
 
Getting started with typescript
C...L, NESPRESSO, WAFAASSURANCE, SOFRECOM ORANGE
 
What’s New in Angular 14?
Albiorix Technology
 
Angular Introduction By Surekha Gadkari
Surekha Gadkari
 
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
React + Redux Introduction
Nikolaus Graf
 

Similar to Building blocks of Angular (20)

PPTX
Angularjs2 presentation
dharisk
 
PDF
What is Angular and some of the terms used
Your Study_Buddy
 
PPTX
Angularj2.0
Mallikarjuna G D
 
PPTX
Angular Framework ppt for beginners and advanced
Preetha Ganapathi
 
PPTX
Foster - Getting started with Angular
MukundSonaiya1
 
PDF
Introduction To Angular 4 - J2I
Nader Debbabi
 
PDF
Angular Notes.pdf
sagarpal60
 
PPTX
Introduction to angular | Concepts and Environment setup
Ansley Rodrigues
 
PPTX
Angular Course.pptx
Imdad Ullah
 
PPTX
An Overview of Angular 4
Cynoteck Technology Solutions Private Limited
 
PPTX
Angular Basics.pptx
AshokKumar616995
 
PPTX
Angular 5 presentation for beginners
Imran Qasim
 
PDF
Angular Meetup 1 - Angular Basics and Workshop
Nitin Bhojwani
 
PPTX
mean stack
michaelaaron25322
 
PPTX
How Does Angular Work?
Albiorix Technology
 
ODP
Angular2
kunalkumar376
 
PPTX
Angular4 kickstart
Foyzul Karim
 
PPT
17612235.ppt
yovixi5669
 
PPTX
Angular IO
Jennifer Estrada
 
Angularjs2 presentation
dharisk
 
What is Angular and some of the terms used
Your Study_Buddy
 
Angularj2.0
Mallikarjuna G D
 
Angular Framework ppt for beginners and advanced
Preetha Ganapathi
 
Foster - Getting started with Angular
MukundSonaiya1
 
Introduction To Angular 4 - J2I
Nader Debbabi
 
Angular Notes.pdf
sagarpal60
 
Introduction to angular | Concepts and Environment setup
Ansley Rodrigues
 
Angular Course.pptx
Imdad Ullah
 
Angular Basics.pptx
AshokKumar616995
 
Angular 5 presentation for beginners
Imran Qasim
 
Angular Meetup 1 - Angular Basics and Workshop
Nitin Bhojwani
 
mean stack
michaelaaron25322
 
How Does Angular Work?
Albiorix Technology
 
Angular2
kunalkumar376
 
Angular4 kickstart
Foyzul Karim
 
17612235.ppt
yovixi5669
 
Angular IO
Jennifer Estrada
 
Ad

More from Knoldus Inc. (20)

PPTX
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
PPTX
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
PPTX
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
PPTX
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
PPTX
Java 17 features and implementation.pptx
Knoldus Inc.
 
PPTX
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
PPTX
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
PPTX
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
PPTX
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
PPTX
Intro to Azure Container App Presentation
Knoldus Inc.
 
PPTX
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
PPTX
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
PPTX
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
PPTX
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
PPTX
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
PPTX
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
PPTX
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
Java 17 features and implementation.pptx
Knoldus Inc.
 
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
Intro to Azure Container App Presentation
Knoldus Inc.
 
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Ad

Recently uploaded (20)

PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
July Patch Tuesday
Ivanti
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 

Building blocks of Angular

  • 1. Presented By: Shubhrank Rastogi & Kiran Jeet Kaur Building Blocks of Angular
  • 2. Lack of etiquette and manners is a huge turn off. KnolX Etiquettes Punctuality Respect Knolx session timings, you are requested not to join sessions after a 5 minutes threshold post the session start time. Feedback Make sure to submit a constructive feedback for all sessions as it is very helpful for the presenter. Silent Mode Keep your mobile devices in silent mode, feel free to move out of session in case you need to attend an urgent call. Avoid Disturbance Avoid unwanted chit chat during the session.
  • 3. Our Agenda 01 Angular App architecture 02 App Bootstrapping 03 Angular Modules and Components 04 Angular Services 05 Angular Router Module
  • 4. The architecture of an Angular application relies on certain fundamental concepts. Architecture
  • 5. Bootstrapping is a technique of initializing or loading our Angular application.The Angular takes the following steps to load our first view. 1. Index.html loads 2. Angular, Third-party libraries & Application loads 3. Main.ts the application entry point 4. Root Module 5. Root Component 6. Template Bootstrapping an App
  • 6. ● Angular applications are modular and Angular has its own modularity system called NgModules. ● Module in Angular refers to a place where you can group the components, directives, pipes, and services, which are related to the application. ● They can import functionality that is exported from other NgModules, and export selected functionality for use by other NgModules. ● Every Angular application has at least one NgModule class, the root module, which is conventionally named AppModule. Modules
  • 7. Let us take a look at how the root module (i.e. src/app/app.module.ts) looks like initially: ….Cont. Modules
  • 8. ….Cont. Modules Angular CLI commands to generate a module -
  • 9. ● A component controls a patch of screen called a view. ● A component's application logic is inside a class, which supports the view. ● This class is decorated with @Component decorator. ● These components are bundled together to create the web application. ● They make your complex application into reusable parts which you can reuse very easily. Components
  • 11. Each component in angular has the following files: 1. HTML File : This file defines how it will be rendered. 2. CSS file : It defines all the CSS styles which will be applied to your component. 3. Spec file : This file is used for unit testing purpose. 4. Typescript file : It defines the behavior. ….Cont. Components Angular CLI commands to generate a component -
  • 12. ● You define a component's view with its companion template. ● A template is a form of HTML that tells Angular how to render the component. ● A template looks like regular HTML, except that it also contains Angular template syntax, which alters the HTML based on your application's logic and the state of application and DOM data. ….Cont. Component’s Template
  • 13. ● The metadata for a component tells Angular where to get the major building blocks that it needs to create and present the component and its view. ● The @Component decorator identifies the class immediately below it as a component class, and provides the template and related component-specific metadata. ● Decorators are used for attaching metadata to classes, it knows the configuration of those classes and how they should work. ….Cont. Component’s Decorator
  • 14. ● A service is typically a class with a narrow, well-defined purpose. It should do something specific and do it well. ● To define a class as a service in Angular, use the @Injectable() decorator. ● Angular distinguishes components from services to increase modularity and reusability. ● This makes our angular app more modular, means instead of writing same code in different components we will inject the service and calls the method in the service that triggers HTTP requests. Services
  • 15. ● Dependency Injection is wired into the Angular framework and is used to provide components with the services they need. ● You can inject a service into a component, giving the component access to that service class. ● Angular, use the @Injectable() decorator to provide the metadata that allows Angular to inject it into a component as a dependency. ….Cont. Service’s DI
  • 16. ….Cont. Services Angular CLI commands to generate a service -
  • 17. ● Routing in Angular helps us navigate from one view to another as users perform tasks in the app. ● To add Routing in the application, we use the RouterModule. ● Here is the app-routing.module.ts file which is created by default: Router Module
  • 19. DEMO
  • 20. References ● https://angular.io/guide/architecture ● https://angular.io/guide/ngmodule-vs-jsmodule ● https://medium.com/bycodegarage/building-blocks-of-angular-eafbb289b6d6 ● https://www.tektutorialshub.com/angular/angular-bootstrapping-application/ ● https://www.codeproject.com/Articles/1255334/Building-Blocks-of-Angular ● https://www.edureka.co/blog/angular-tutorial/#BuildingBlocksOfAngular
  • 21. Thank You ! Get in touch with us: Lorem Studio, Lord Building D4456, LA, USA