0% found this document useful (0 votes)
15 views6 pages

Angular Inter Ques

Angular questions

Uploaded by

alimomin661
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Angular Inter Ques

Angular questions

Uploaded by

alimomin661
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Angular components are the fundamental building blocks for crea ng websites

Angular modules are like containers that help you organize, separate, and share
different parts of your website, making it easier to manage and build.
What Are Angular Services?
Angular services are objects that get instantiated just once during the lifetime of an
application. They contain methods that maintain data throughout the life of an
application, i.e., data is available all the time.

The main objective of a service is to organize and share business logic, models, or
data and functions with different components of an Angular application. They are
usually implemented through dependency injection.
Dependency Injection
Dependency injection is what makes a class independent of its
dependencies. Dependency injection enables the creation of dependent
objects outside of a class while providing those very objects to a class in
numerous ways. Using DI, we move the creation and binding of the
dependent objects outside of the class that depend on them. Typically,
there are three types of classes, they are:
Client Class - This is the dependent class, which depends on the service
class.
Service Class - Class that provides the service to the client class.
Injector Class - Injects the service class object into the client class.

You might also like