Angular Interview : is Angular Service Singleton ?

added by DotNetKicks
4/14/2021 4:43:56 PM

740 Views

One of the most popular Angular interview questions is, whether a service is singleton? By default, when you create a service using the below CLI command, ng g s app AppService is singleton, however it can be re-provided to create more objects of it. Say, you again re provide AppService in one of the components,...


0 comments