The benefit is that when Angular destroyed the component, Angular will also destroy the service and release the memory that is occupied by him.
ngOnDestroy()
will be called.
Last active
September 14, 2018 01:23
-
-
Save skyler-cs/76456576c01bca5ff3a89b5295f6056d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment