Angular
Angular
PRESENTED BY
SUNANDA GHOSH
&
ARPAN ADHIKARI
SOFTWARE DEVELOPER
2
WHAT IS ANGULAR?
Angular is open source javascript framework
written in typescript its main purpose to develop
single page applications. Angular is popular
framework for building dynamic ,responsive web
applications. It provides several functionalities ,
such as routing, HTTP request, and form handling
saving developers much time and effort.
3
• FormGroup Track the value and validate the state of the group
of ‘FormControl’.
• Form Array That can hold infinite form control, this helps to
create dynamic forms.
11
SERVICES
12
Introduction to Services:
Simply put, services in Angular let you define code or functionalities that are
then accessible and reusable in many other components in your Angular
project. Services help you with the abstraction of logic and data that is
hosted independently but can be shared across other components.
The service class has a single, well-defined function, helping you make your
application structure very modular. It is different from other classes in
Angular because of the injection process. Dependency injection is the
concept that makes it possible for you to receive dependencies from one
class to another.
13
Creating the Service:
To create a service in Angular, you need to run the generate
service command:
Two new files will be created. Navigate to the data service.ts file.
14
numbers$.subscribe(
value => console.log(value), // onNext
error => console.error(error), // onError
() => console.log('Complete') // onComplete );
20
LAZY LOADING
22
What is Lazy Loading?
Lazy loading is the process of loading components, modules, or other
assets of a website as they're required.