Suppose we have the following code:
@Component(
// ..
providers: [SomeService]
)
export class SomeComponent {
constructor(someService: SomeService) {}
}
Will the someService
instance be destroyed whenever SomeComponent
is destroyed? Or should one manually destroy it through onDestroy()
hook?