Add an error if a forRoot method is used not in a root module
Closed this issue ยท 1 comments
ddubrava commented
๐ Feature Request
โ๏ธ Description
forRoot
must be used only in a root module, check this article - https://angular.io/guide/singleton-services#the-forroot-pattern. So we should add an error if it's imported in children modules.