Computer Science, asked by joshipavan01, 3 months ago

Which decorator is optional if the class has any other decorator?​

Answers

Answered by Anonymous
1

\large\mathcal{\red {\underline {\overline {\mid {\purple {Answer}}\mid}}}}

To define a class as a service in Angular, use the @Injectable() decorator to provide the metadata that allows Angular to inject it into a component as a dependency. Similarly, use the @Injectable() decorator to indicate that a component or other class (such as another service, a pipe, or an NgModule) has a dependency.

Answered by freedarajesh2003
0

Answer:

Explanation:

To define a class as a service in Angular, use the @Injectable() decorator to provide the metadata that allows Angular to inject it into a component as a dependency. Similarly, use the @Injectable() decorator to indicate that a component or other class (such as another service, a pipe, or an NgModule) has a dependency.

Similar questions