SlideShare a Scribd company logo
3
Most read
6
Most read
15
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

PPTX
Angular 14.pptx
PPTX
Angular 9
PPTX
Angular Basics.pptx
PPTX
What is Angular?
PPTX
Angular 2.0 forms
DOCX
Angular Interview Questions & Answers
PPT
Angular Introduction By Surekha Gadkari
PDF
Angular - Chapter 3 - Components
Angular 14.pptx
Angular 9
Angular Basics.pptx
What is Angular?
Angular 2.0 forms
Angular Interview Questions & Answers
Angular Introduction By Surekha Gadkari
Angular - Chapter 3 - Components

What's hot (20)

PPTX
Sharing Data Between Angular Components
PDF
Angular Dependency Injection
PPTX
ODP
Angular 6 - The Complete Guide
ODP
Routing & Navigating Pages in Angular 2
PDF
Unit Testing in Angular
PPTX
Angular Data Binding
PPTX
Angularjs PPT
PDF
Angular 10 course_content
PPTX
Angular modules in depth
PPTX
Angular 18 course for begineers and experienced
PDF
Angular Interview Questions-PDF.pdf
PPTX
Angular Directives
PPTX
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
PPT
Vue.js Getting Started
PPTX
Angular 5 presentation for beginners
PDF
Angular
PPTX
Angular overview
PDF
Angular - Chapter 2 - TypeScript Programming
PDF
Angular components
Sharing Data Between Angular Components
Angular Dependency Injection
Angular 6 - The Complete Guide
Routing & Navigating Pages in Angular 2
Unit Testing in Angular
Angular Data Binding
Angularjs PPT
Angular 10 course_content
Angular modules in depth
Angular 18 course for begineers and experienced
Angular Interview Questions-PDF.pdf
Angular Directives
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
Vue.js Getting Started
Angular 5 presentation for beginners
Angular
Angular overview
Angular - Chapter 2 - TypeScript Programming
Angular components
Ad

Similar to Building blocks of Angular (20)

PPTX
Angular kickstart slideshare
PPTX
Angularjs2 presentation
PDF
What is Angular and some of the terms used
PPTX
Angularj2.0
PPTX
Angular Framework ppt for beginners and advanced
PPTX
Foster - Getting started with Angular
PDF
Introduction To Angular 4 - J2I
PDF
Angular Notes.pdf
PPTX
Introduction to angular | Concepts and Environment setup
PPTX
Angular Course.pptx
PPTX
PDF
Angular Meetup 1 - Angular Basics and Workshop
PPTX
mean stack
PPTX
How Does Angular Work?
PPTX
mobile development using node js and java
ODP
Angular2
PPTX
Angular4 kickstart
PPT
17612235.ppt
PPTX
Angular IO
Angular kickstart slideshare
Angularjs2 presentation
What is Angular and some of the terms used
Angularj2.0
Angular Framework ppt for beginners and advanced
Foster - Getting started with Angular
Introduction To Angular 4 - J2I
Angular Notes.pdf
Introduction to angular | Concepts and Environment setup
Angular Course.pptx
Angular Meetup 1 - Angular Basics and Workshop
mean stack
How Does Angular Work?
mobile development using node js and java
Angular2
Angular4 kickstart
17612235.ppt
Angular IO
Ad

More from Knoldus Inc. (20)

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

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Modernizing your data center with Dell and AMD
PPTX
A Presentation on Artificial Intelligence
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Empathic Computing: Creating Shared Understanding
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Modernizing your data center with Dell and AMD
A Presentation on Artificial Intelligence
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

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