+1 vote
in Angular 2 Routes and Forms by
@Service decorator is used to create a new service.

Question from Angular 2 Routes. Select the correct answer from below options:

a) True

b) False

1 Answer

0 votes
by
Correct answer is :--b) False

@Service decorator is not used to create a new service. @service injects an instance of a given service from a binding matching the service interface.

Syntax: @service(serviceInterface: ServiceInterface, metadata?: InjectionMetadata)

Related questions

+1 vote
asked Jan 2, 2022 in Angular 2 Routes and Forms by rajeshsharma
+2 votes
asked Jan 25, 2022 in Azure Essentials by sharadyadav1986
...