+1 vote
in Angular by

How will you make sure that a single instance of any Service is available throughout the app?

(a)Register the service using 'imports' and add it to the Root Component

(b)Register the service using 'providers' and add it to the Root Module

(c)Declare the service in the Root Component

(d)None of the options

1 Answer

0 votes
by

(b)Register the service using 'providers' and add it to the Root Module

Related questions

0 votes
asked Sep 18, 2019 in Angular by john ganales
0 votes
asked Nov 13, 2020 in Testing by sharadyadav1986
...